Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario5.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.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario5") translateModel(MEV.Simulations.OnOffControl.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 109 kB / 16.42 MB, free: 5.984 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.001156/0.001156, allocations: 186.5 kB / 17.35 MB, free: 5.582 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.157/1.157, 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.007474/0.007474, allocations: 1.947 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.001369/0.001369, allocations: 67.92 kB / 379 MB, free: 52.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05905/0.06043, allocations: 47.14 MB / 426.1 MB, free: 20.02 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario5): time 0.004628/0.06507, allocations: 6.254 MB / 432.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.06724, allocations: 1.47 MB / 433.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004809/0.06773, allocations: 11.94 kB / 433.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003339/0.06808, allocations: 146.6 kB / 434 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005927/0.06869, allocations: 329 kB / 434.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.06931, allocations: 331.4 kB / 434.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003904/0.07323, allocations: 7.594 MB / 442.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001878/0.07511, allocations: 2.433 MB / 444.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.07774, allocations: 2.905 MB / 447.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/0.08092, allocations: 3.105 MB / 450.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008108/0.08174, allocations: 0.625 MB / 451.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.08291, allocations: 0.6757 MB / 452 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.08392, allocations: 1.421 MB / 453.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002858/0.08679, allocations: 3.154 MB / 456.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.09231, allocations: 7.494 MB / 464 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09233, allocations: 0 / 464 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09234, allocations: 3.938 kB / 464 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.771e-05/0.09241, allocations: 0 / 464 MB, free: 13.88 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.01371/0.1061, allocations: 7.185 MB / 471.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1062, allocations: 15.83 kB / 471.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008201/0.107, allocations: 0.5723 MB / 471.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.1106, allocations: 2.629 MB / 474.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/0.111, allocations: 0.6396 MB / 475.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006951/0.1117, allocations: 479.7 kB / 475.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008572/0.1203, allocations: 5.974 MB / 481.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.57e-05/0.1204, allocations: 0 / 481.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004137/0.1208, allocations: 180 kB / 481.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.517e-05/0.1208, allocations: 108 kB / 481.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008792/0.1296, allocations: 5.869 MB / 487.7 MB, free: 5.934 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.02544/0.1551, allocations: 17.14 MB / 0.493 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009409/0.1645, allocations: 6.793 MB / 0.4996 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004361/0.1689, allocations: 3.307 MB / 0.5028 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001939/0.1691, allocations: 71.44 kB / 0.5029 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004791/0.1739, allocations: 3.543 MB / 0.5064 GB, free: 6.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.091e-06/0.1739, allocations: 0 / 0.5064 GB, free: 6.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2434/0.4173, allocations: 35.42 MB / 0.541 GB, free: 95.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.4174, allocations: 166.7 kB / 0.5411 GB, free: 95.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003486/0.4209, allocations: 3.729 MB / 0.5448 GB, free: 93.85 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003048/0.4212, allocations: 150.2 kB / 0.5449 GB, free: 93.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008491/0.4221, allocations: 1.651 MB / 0.5465 GB, free: 92.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007726/0.4229, allocations: 1.66 MB / 0.5481 GB, free: 91.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/0.4239, allocations: 0.9195 MB / 0.549 GB, free: 90.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 2.922e-05/0.4239, allocations: 301.1 kB / 0.5493 GB, free: 90.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003381/0.4273, allocations: 2.773 MB / 0.552 GB, free: 88.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003566/0.4309, allocations: 3.475 MB / 0.5554 GB, free: 84.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006925/0.4378, allocations: 6.414 MB / 0.5617 GB, free: 77.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.4378, allocations: 4 kB / 0.5617 GB, free: 77.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01113/0.449, allocations: 8.932 MB / 0.5704 GB, free: 68.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.449, allocations: 12 kB / 0.5704 GB, free: 68.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.449, allocations: 16.88 kB / 0.5704 GB, free: 68.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02839/0.4774, allocations: 7.144 MB / 0.5774 GB, free: 61.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003014/0.4805, allocations: 0.858 MB / 0.5783 GB, free: 60.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.4908, allocations: 12.5 MB / 0.5905 GB, free: 47.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003238/0.4941, allocations: 459.3 kB / 0.5909 GB, free: 47.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003022/0.4944, allocations: 180 kB / 0.5911 GB, free: 47.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004694/0.4991, allocations: 3.913 MB / 0.5949 GB, free: 43.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00341/0.5025, allocations: 3.23 MB / 0.5981 GB, free: 39.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006563/0.5091, allocations: 5.92 MB / 0.6038 GB, free: 33.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.111e-05/0.5091, allocations: 8 kB / 0.6038 GB, free: 33.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01479/0.5239, allocations: 9.429 MB / 0.613 GB, free: 24.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.5239, allocations: 12 kB / 0.6131 GB, free: 24.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.524, allocations: 19.94 kB / 0.6131 GB, free: 24.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008837/0.5328, allocations: 3.755 MB / 0.6167 GB, free: 20.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.5357, allocations: 0.8581 MB / 0.6176 GB, free: 19.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03999/0.5757, allocations: 36.79 MB / 0.6535 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/0.5791, allocations: 435.3 kB / 0.6539 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003944/0.5795, allocations: 168 kB / 0.6541 GB, free: 12.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.0009781/0.5805, allocations: 498.1 kB / 0.6546 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007776/0.5813, allocations: 442.5 kB / 0.655 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/0.5956, allocations: 8.371 MB / 0.6632 GB, free: 3.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.844e-05/0.5956, allocations: 31.91 kB / 0.6632 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5956, allocations: 3.984 kB / 0.6632 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/0.5977, allocations: 1.26 MB / 0.6644 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007409/0.5985, allocations: 147.9 kB / 0.6646 GB, free: 1.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002615/0.6011, allocations: 375.5 kB / 0.6649 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001158/0.6023, allocations: 0.6631 MB / 0.6656 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02306/0.6253, allocations: 11.18 MB / 0.6765 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01441/0.6398, allocations: 10.58 MB / 0.6868 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004192/0.644, allocations: 3.194 MB / 0.6899 GB, free: 7.703 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003382/0.6474, allocations: 2.583 MB / 0.6925 GB, free: 5.137 MB / 478.1 MB Notification: Performance of Backend: time 4.2e-07/0.6474, allocations: 4 kB / 0.6925 GB, free: 5.133 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02302/0.6704, allocations: 12 MB / 0.7042 GB, free: 8.98 MB / 494.1 MB Notification: Performance of SimCode: time 0.1611/0.8316, allocations: 14.11 MB / 0.718 GB, free: 160.3 MB / 494.1 MB Notification: Performance of Templates: time 0.112/0.9436, allocations: 110.1 MB / 0.8255 GB, free: 69.73 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario5.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario5.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario5.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario5.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario5.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario5.pipe 2>&1)