Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(MEV.Simulations.OnOffControl.Scenario3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario3") translateModel(MEV.Simulations.OnOffControl.Scenario3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 114.6 kB / 16.42 MB, free: 6.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 189.5 kB / 17.35 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.182/1.182, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007601/0.007601, allocations: 1.939 MB / 272.5 MB, free: 10.05 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 70.81 kB / 379 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0596/0.06101, allocations: 47.13 MB / 426.1 MB, free: 19.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario3): time 0.004564/0.0656, allocations: 6.25 MB / 432.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.06719, allocations: 1.481 MB / 433.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.06746, allocations: 12 kB / 433.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.0677, allocations: 146.5 kB / 434 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004457/0.06815, allocations: 349.1 kB / 434.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.06866, allocations: 335.4 kB / 434.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.07222, allocations: 7.676 MB / 442.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.07396, allocations: 2.421 MB / 444.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002137/0.07611, allocations: 2.925 MB / 447.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002977/0.0791, allocations: 3.167 MB / 450.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008202/0.07993, allocations: 0.625 MB / 451.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001173/0.08111, allocations: 0.6718 MB / 452.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.08223, allocations: 1.421 MB / 453.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002887/0.08513, allocations: 3.174 MB / 456.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005836/0.09097, allocations: 7.517 MB / 464.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.09099, allocations: 0 / 464.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.091, allocations: 0 / 464.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.226e-05/0.09109, allocations: 0 / 464.3 MB, free: 13.5 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1114 * Number of variables: 1114 Notification: Performance of Generate backend data structure: time 0.01396/0.1051, allocations: 7.332 MB / 471.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1051, allocations: 11.89 kB / 471.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008742/0.106, allocations: 0.6027 MB / 472.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003578/0.1096, allocations: 2.647 MB / 474.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/0.11, allocations: 0.6396 MB / 475.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006919/0.1107, allocations: 479.8 kB / 476 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008684/0.1194, allocations: 5.974 MB / 481.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.399e-05/0.1195, allocations: 0 / 481.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003919/0.1199, allocations: 176 kB / 482.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.277e-05/0.12, allocations: 112 kB / 482.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009059/0.129, allocations: 5.873 MB / 488.1 MB, free: 5.355 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02593/0.155, allocations: 17.19 MB / 0.4934 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009568/0.1645, allocations: 6.785 MB / 0.5001 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004481/0.169, allocations: 3.31 MB / 0.5033 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002234/0.1693, allocations: 71.83 kB / 0.5034 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004871/0.1742, allocations: 3.536 MB / 0.5068 GB, free: 6.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 5.891e-06/0.1742, allocations: 0 / 0.5068 GB, free: 6.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2384/0.4126, allocations: 35.57 MB / 0.5416 GB, free: 93.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.4127, allocations: 162.4 kB / 0.5417 GB, free: 93.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003198/0.4159, allocations: 3.726 MB / 0.5453 GB, free: 92.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.4161, allocations: 151.1 kB / 0.5455 GB, free: 92.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000834/0.417, allocations: 1.687 MB / 0.5471 GB, free: 91.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007347/0.4177, allocations: 1.736 MB / 0.5488 GB, free: 90.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/0.4188, allocations: 0.9213 MB / 0.5497 GB, free: 89.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 2.833e-05/0.4188, allocations: 301.1 kB / 0.55 GB, free: 89.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003431/0.4222, allocations: 2.778 MB / 0.5527 GB, free: 86.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003663/0.4259, allocations: 3.476 MB / 0.5561 GB, free: 82.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007406/0.4333, allocations: 6.41 MB / 0.5624 GB, free: 75.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.4333, allocations: 4 kB / 0.5624 GB, free: 75.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01141/0.4448, allocations: 8.955 MB / 0.5711 GB, free: 66.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.4448, allocations: 12 kB / 0.5711 GB, free: 66.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.4448, allocations: 17.03 kB / 0.5712 GB, free: 66.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02848/0.4733, allocations: 7.143 MB / 0.5781 GB, free: 59.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/0.4763, allocations: 0.8541 MB / 0.579 GB, free: 58.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.4867, allocations: 12.51 MB / 0.5912 GB, free: 46.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/0.49, allocations: 460.8 kB / 0.5916 GB, free: 45.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/0.4904, allocations: 172 kB / 0.5918 GB, free: 45.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004722/0.4951, allocations: 3.921 MB / 0.5956 GB, free: 41.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003431/0.4985, allocations: 3.234 MB / 0.5988 GB, free: 38.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006576/0.5051, allocations: 5.909 MB / 0.6046 GB, free: 31.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.749e-06/0.5051, allocations: 4 kB / 0.6046 GB, free: 31.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01473/0.5199, allocations: 9.466 MB / 0.6138 GB, free: 22.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5199, allocations: 15.84 kB / 0.6138 GB, free: 22.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.5199, allocations: 16 kB / 0.6138 GB, free: 22.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00908/0.529, allocations: 3.746 MB / 0.6175 GB, free: 18.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.5319, allocations: 0.8581 MB / 0.6183 GB, free: 17.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04089/0.5728, allocations: 36.83 MB / 0.6543 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/0.5763, allocations: 439.4 kB / 0.6547 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/0.5766, allocations: 164 kB / 0.6549 GB, free: 10.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 95 (linearController.useOnOffControl.y,patientControllers[10].active,$PRE.patientControllers[10].active,patientControllers[10].t_off,$PRE.patientControllers[10].t_off,patientControllers[10].t_on,$PRE.patientControllers[10].t_on,patientControllers[9].active,$PRE.patientControllers[9].active,patientControllers[9].t_off,$PRE.patientControllers[9].t_off,patientControllers[9].t_on,$PRE.patientControllers[9].t_on,patientControllers[8].active,$PRE.patientControllers[8].active,patientControllers[8].t_off,$PRE.patientControllers[8].t_off,patientControllers[8].t_on,$PRE.patientControllers[8].t_on,patientControllers[7].active,$PRE.patientControllers[7].active,patientControllers[7].t_off,$PRE.patientControllers[7].t_off,patientControllers[7].t_on,$PRE.patientControllers[7].t_on,patientControllers[6].active,$PRE.patientControllers[6].active,patientControllers[6].t_off,$PRE.patientControllers[6].t_off,patientControllers[6].t_on,$PRE.patientControllers[6].t_on,patientControllers[5].active,$PRE.patientControllers[5].active,patientControllers[5].t_off,$PRE.patientControllers[5].t_off,patientControllers[5].t_on,$PRE.patientControllers[5].t_on,patientControllers[4].active,$PRE.patientControllers[4].active,patientControllers[4].t_off,$PRE.patientControllers[4].t_off,patientControllers[4].t_on,$PRE.patientControllers[4].t_on,patientControllers[3].active,$PRE.patientControllers[3].active,patientControllers[3].t_off,$PRE.patientControllers[3].t_off,patientControllers[3].t_on,$PRE.patientControllers[3].t_on,patientControllers[2].active,$PRE.patientControllers[2].active,patientControllers[2].t_off,$PRE.patientControllers[2].t_off,patientControllers[2].t_on,$PRE.patientControllers[2].t_on,patientControllers[1].active,$PRE.patientControllers[1].active,patientControllers[1].t_off,$PRE.patientControllers[1].t_off,patientControllers[1].t_on,$PRE.patientControllers[1].t_on,onOffControllerWithHysteresis.on,$PRE.onOffControllerWithHysteresis.on,$whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition9,$whenCondition8,$whenCondition10,$whenCondition12,$whenCondition11,$whenCondition13,$whenCondition15,$whenCondition14,$whenCondition16,$whenCondition18,$whenCondition17,$whenCondition19,$whenCondition21,$whenCondition20,$whenCondition22,$whenCondition24,$whenCondition23,$whenCondition25,$whenCondition27,$whenCondition26,$whenCondition28,$whenCondition30,$whenCondition29,$whenCondition32,$whenCondition31) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 10 systems {(3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0009298/0.5776, allocations: 497.3 kB / 0.6553 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005736/0.5782, allocations: 472.9 kB / 0.6558 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/0.5922, allocations: 8.371 MB / 0.664 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.976e-05/0.5923, allocations: 29.41 kB / 0.664 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.5923, allocations: 0 / 0.664 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/0.5943, allocations: 1.283 MB / 0.6652 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006465/0.5949, allocations: 149.5 kB / 0.6654 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002488/0.5974, allocations: 383.5 kB / 0.6658 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/0.5986, allocations: 0.6515 MB / 0.6664 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02302/0.6216, allocations: 11.21 MB / 0.6773 GB, free: 3.617 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01448/0.6361, allocations: 10.6 MB / 0.6877 GB, free: 8.859 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004232/0.6404, allocations: 3.202 MB / 0.6908 GB, free: 5.625 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00322/0.6436, allocations: 2.587 MB / 0.6933 GB, free: 3.055 MB / 478.1 MB Notification: Performance of Backend: time 3.31e-07/0.6436, allocations: 0 / 0.6933 GB, free: 3.055 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02291/0.6665, allocations: 12.03 MB / 0.7051 GB, free: 6.875 MB / 494.1 MB Notification: Performance of SimCode: time 0.1587/0.8253, allocations: 14.33 MB / 0.7191 GB, free: 156.8 MB / 494.1 MB Notification: Performance of Templates: time 0.1055/0.9308, allocations: 107.1 MB / 0.8237 GB, free: 67.6 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario3.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario3.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario3.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario3.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario3.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario3.pipe 2>&1)