Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario2.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.Scenario2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario2") translateModel(MEV.Simulations.OnOffControl.Scenario2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 110.3 kB / 16.42 MB, free: 6.023 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.0012/0.0012, allocations: 190 kB / 17.35 MB, free: 5.633 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.21/1.21, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008105/0.008105, allocations: 1.939 MB / 272.5 MB, free: 10.07 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.001428/0.001428, allocations: 64.16 kB / 379 MB, free: 51.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05929/0.06073, allocations: 47.13 MB / 426.1 MB, free: 19.89 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario2): time 0.004688/0.06544, allocations: 6.261 MB / 432.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.06759, allocations: 1.481 MB / 433.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.06807, allocations: 12 kB / 433.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.06839, allocations: 138.5 kB / 434 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005956/0.06901, allocations: 337.1 kB / 434.3 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.06961, allocations: 335.4 kB / 434.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003947/0.07357, allocations: 7.672 MB / 442.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001963/0.07554, allocations: 2.429 MB / 444.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.0783, allocations: 2.929 MB / 447.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004265/0.08257, allocations: 3.171 MB / 450.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002168/0.08475, allocations: 0.625 MB / 451.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002618/0.08738, allocations: 0.6756 MB / 452.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001781/0.08917, allocations: 1.413 MB / 453.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004475/0.09365, allocations: 3.162 MB / 456.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006557/0.1002, allocations: 7.494 MB / 464.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1002, allocations: 0 / 464.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1003, allocations: 4 kB / 464.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001391/0.1004, allocations: 0 / 464.2 MB, free: 13.57 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.01483/0.1152, allocations: 7.174 MB / 471.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1153, allocations: 11.89 kB / 471.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008866/0.1162, allocations: 0.5762 MB / 472 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003723/0.1199, allocations: 2.629 MB / 474.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.1204, allocations: 0.6357 MB / 475.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007135/0.1211, allocations: 483.7 kB / 475.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008972/0.1301, allocations: 5.978 MB / 481.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.691e-05/0.1301, allocations: 0 / 481.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000405/0.1306, allocations: 180 kB / 481.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.696e-05/0.1306, allocations: 107.9 kB / 482 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009001/0.1396, allocations: 5.869 MB / 487.8 MB, free: 5.637 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.02781/0.1675, allocations: 17.15 MB / 0.4932 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009848/0.1773, allocations: 6.786 MB / 0.4998 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004552/0.1819, allocations: 3.31 MB / 0.503 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.1821, allocations: 75.44 kB / 0.5031 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00506/0.1872, allocations: 3.543 MB / 0.5065 GB, free: 6.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 7.104e-06/0.1872, allocations: 0 / 0.5065 GB, free: 6.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2487/0.436, allocations: 35.42 MB / 0.5411 GB, free: 94.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.4361, allocations: 160.2 kB / 0.5413 GB, free: 94.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0035/0.4396, allocations: 3.722 MB / 0.5449 GB, free: 93.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003928/0.44, allocations: 153.3 kB / 0.5451 GB, free: 93.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008969/0.4409, allocations: 1.651 MB / 0.5467 GB, free: 92.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008726/0.4417, allocations: 1.663 MB / 0.5483 GB, free: 91.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/0.4428, allocations: 0.919 MB / 0.5492 GB, free: 90.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.079e-05/0.4428, allocations: 301.1 kB / 0.5495 GB, free: 90.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/0.4462, allocations: 2.773 MB / 0.5522 GB, free: 87.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003595/0.4498, allocations: 3.479 MB / 0.5556 GB, free: 84.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007082/0.4569, allocations: 6.408 MB / 0.5619 GB, free: 77.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.457, allocations: 7.969 kB / 0.5619 GB, free: 77.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01136/0.4683, allocations: 8.93 MB / 0.5706 GB, free: 68.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.4684, allocations: 12.94 kB / 0.5706 GB, free: 68.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.4684, allocations: 20.81 kB / 0.5706 GB, free: 68.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02822/0.4966, allocations: 7.14 MB / 0.5776 GB, free: 61.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00328/0.4999, allocations: 0.858 MB / 0.5784 GB, free: 60.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.5106, allocations: 12.5 MB / 0.5906 GB, free: 47.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/0.5142, allocations: 456.6 kB / 0.5911 GB, free: 47.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000313/0.5145, allocations: 176 kB / 0.5912 GB, free: 46.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004836/0.5194, allocations: 3.921 MB / 0.5951 GB, free: 42.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003382/0.5228, allocations: 3.23 MB / 0.5982 GB, free: 39.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006469/0.5293, allocations: 5.92 MB / 0.604 GB, free: 33.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.014e-05/0.5293, allocations: 4 kB / 0.604 GB, free: 33.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01491/0.5442, allocations: 9.437 MB / 0.6132 GB, free: 23.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.5442, allocations: 12 kB / 0.6132 GB, free: 23.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.5443, allocations: 16 kB / 0.6133 GB, free: 23.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009045/0.5533, allocations: 3.754 MB / 0.6169 GB, free: 19.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003173/0.5565, allocations: 0.8581 MB / 0.6178 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04109/0.5976, allocations: 36.81 MB / 0.6537 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003738/0.6014, allocations: 435.3 kB / 0.6541 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006225/0.602, allocations: 164 kB / 0.6543 GB, free: 12.36 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.001333/0.6033, allocations: 0.489 MB / 0.6547 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/0.6044, allocations: 450.4 kB / 0.6552 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/0.6195, allocations: 8.365 MB / 0.6633 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-05/0.6195, allocations: 26.31 kB / 0.6634 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.6195, allocations: 3.984 kB / 0.6634 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/0.622, allocations: 1.26 MB / 0.6646 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008801/0.6229, allocations: 143.9 kB / 0.6647 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002835/0.6257, allocations: 387.5 kB / 0.6651 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/0.6269, allocations: 0.6514 MB / 0.6657 GB, free: 436 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02371/0.6506, allocations: 11.18 MB / 0.6767 GB, free: 5.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01522/0.6659, allocations: 10.59 MB / 0.687 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004365/0.6702, allocations: 3.198 MB / 0.6901 GB, free: 7.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00389/0.6741, allocations: 2.587 MB / 0.6927 GB, free: 4.68 MB / 478.1 MB Notification: Performance of Backend: time 3.6e-07/0.6742, allocations: 0 / 0.6927 GB, free: 4.68 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02414/0.6983, allocations: 12 MB / 0.7044 GB, free: 8.523 MB / 494.1 MB Notification: Performance of SimCode: time 0.1662/0.8645, allocations: 14.1 MB / 0.7181 GB, free: 159.7 MB / 494.1 MB Notification: Performance of Templates: time 0.114/0.9785, allocations: 110.1 MB / 0.8257 GB, free: 68.87 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario2.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario2.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario2.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario2.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario2.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario2.pipe 2>&1)