Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario4.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.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario4") translateModel(MEV.Simulations.OnOffControl.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 110.8 kB / 16.42 MB, free: 6.516 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: 190.6 kB / 17.35 MB, free: 5.738 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.162/1.162, 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.008023/0.008023, allocations: 1.935 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.00139/0.00139, allocations: 69.03 kB / 379 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05832/0.05972, allocations: 47.14 MB / 426.1 MB, free: 19.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario4): time 0.004649/0.06439, allocations: 6.25 MB / 432.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.06653, allocations: 1.477 MB / 433.8 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004914/0.06703, allocations: 8 kB / 433.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003375/0.0674, allocations: 150.5 kB / 434 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006221/0.06803, allocations: 337 kB / 434.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006025/0.06864, allocations: 323.5 kB / 434.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003817/0.07247, allocations: 7.68 MB / 442.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00175/0.07423, allocations: 2.425 MB / 444.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002474/0.07671, allocations: 2.929 MB / 447.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00343/0.08015, allocations: 3.167 MB / 450.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008578/0.08102, allocations: 0.625 MB / 451.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.08219, allocations: 0.6757 MB / 452.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.0832, allocations: 1.417 MB / 453.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002986/0.08619, allocations: 3.166 MB / 456.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005708/0.09191, allocations: 7.49 MB / 464.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.09193, allocations: 3.938 kB / 464.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09193, allocations: 0 / 464.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001027/0.09204, allocations: 4 kB / 464.2 MB, free: 13.55 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.01411/0.1062, allocations: 7.181 MB / 471.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1062, allocations: 11.89 kB / 471.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008477/0.1071, allocations: 0.5722 MB / 472 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.1107, allocations: 2.629 MB / 474.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004365/0.1111, allocations: 0.6396 MB / 475.2 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006969/0.1118, allocations: 475.7 kB / 475.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008667/0.1205, allocations: 5.97 MB / 481.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.594e-05/0.1206, allocations: 4 kB / 481.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004136/0.121, allocations: 184 kB / 481.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-05/0.1211, allocations: 108 kB / 482 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008839/0.1299, allocations: 5.873 MB / 487.8 MB, free: 5.617 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.02608/0.156, allocations: 17.14 MB / 0.4931 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0094/0.1654, allocations: 6.789 MB / 0.4998 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004386/0.1698, allocations: 3.31 MB / 0.503 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001879/0.17, allocations: 71.67 kB / 0.5031 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00474/0.1748, allocations: 3.536 MB / 0.5065 GB, free: 6.633 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.172e-06/0.1748, allocations: 4 kB / 0.5065 GB, free: 6.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2437/0.4185, allocations: 35.42 MB / 0.5411 GB, free: 95.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.4186, allocations: 172.9 kB / 0.5413 GB, free: 94.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003444/0.4221, allocations: 3.726 MB / 0.5449 GB, free: 93.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003359/0.4224, allocations: 149.8 kB / 0.5451 GB, free: 93.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.4232, allocations: 1.656 MB / 0.5467 GB, free: 92.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008042/0.4241, allocations: 1.654 MB / 0.5483 GB, free: 91.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/0.4251, allocations: 0.9188 MB / 0.5492 GB, free: 90.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 2.947e-05/0.4251, allocations: 301.1 kB / 0.5495 GB, free: 90.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003383/0.4285, allocations: 2.773 MB / 0.5522 GB, free: 87.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003553/0.4321, allocations: 3.48 MB / 0.5556 GB, free: 84.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006985/0.4391, allocations: 6.411 MB / 0.5619 GB, free: 77.4 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.4391, allocations: 8.688 kB / 0.5619 GB, free: 77.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01119/0.4503, allocations: 8.926 MB / 0.5706 GB, free: 68.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4503, allocations: 12 kB / 0.5706 GB, free: 68.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.4503, allocations: 16 kB / 0.5706 GB, free: 68.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0288/0.4791, allocations: 7.147 MB / 0.5776 GB, free: 61.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.4822, allocations: 0.858 MB / 0.5784 GB, free: 60.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.4926, allocations: 12.5 MB / 0.5906 GB, free: 47.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003247/0.4959, allocations: 457.2 kB / 0.5911 GB, free: 47.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003178/0.4962, allocations: 176 kB / 0.5912 GB, free: 46.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004716/0.5009, allocations: 3.92 MB / 0.5951 GB, free: 42.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003433/0.5044, allocations: 3.23 MB / 0.5982 GB, free: 39.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006547/0.5109, allocations: 5.921 MB / 0.604 GB, free: 33.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.156e-05/0.511, allocations: 4 kB / 0.604 GB, free: 33.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01483/0.5258, allocations: 9.433 MB / 0.6132 GB, free: 23.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.5258, allocations: 16 kB / 0.6132 GB, free: 23.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.5258, allocations: 19.62 kB / 0.6132 GB, free: 23.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008956/0.5348, allocations: 3.752 MB / 0.6169 GB, free: 19.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/0.5377, allocations: 0.8581 MB / 0.6178 GB, free: 19.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0404/0.5782, allocations: 36.8 MB / 0.6537 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003554/0.5817, allocations: 439.3 kB / 0.6541 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004629/0.5822, allocations: 160 kB / 0.6543 GB, free: 12.35 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.001117/0.5833, allocations: 0.4925 MB / 0.6547 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008223/0.5842, allocations: 442.5 kB / 0.6552 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/0.5987, allocations: 8.376 MB / 0.6633 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.025e-05/0.5988, allocations: 27.89 kB / 0.6634 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.5988, allocations: 2.406 kB / 0.6634 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002189/0.601, allocations: 1.256 MB / 0.6646 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007498/0.6017, allocations: 147.9 kB / 0.6647 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/0.6044, allocations: 379.5 kB / 0.6651 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001155/0.6055, allocations: 0.6553 MB / 0.6657 GB, free: 432 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02323/0.6288, allocations: 11.18 MB / 0.6767 GB, free: 5.215 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01449/0.6433, allocations: 10.58 MB / 0.687 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004302/0.6476, allocations: 3.205 MB / 0.6901 GB, free: 7.234 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0035/0.6511, allocations: 2.579 MB / 0.6926 GB, free: 4.672 MB / 478.1 MB Notification: Performance of Backend: time 3.31e-07/0.6511, allocations: 0 / 0.6926 GB, free: 4.672 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0233/0.6744, allocations: 12 MB / 0.7044 GB, free: 8.516 MB / 494.1 MB Notification: Performance of SimCode: time 0.1583/0.8328, allocations: 14.1 MB / 0.7181 GB, free: 159.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1801/1.013, allocations: 110.1 MB / 0.8257 GB, free: 68.84 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario4.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario4.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario4.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario4.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario4.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario4.pipe 2>&1)