Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.LinearControl.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.LinearControl.Scenario2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario2") translateModel(MEV.Simulations.LinearControl.Scenario2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001073/0.001073, allocations: 189.5 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.443/1.443, 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.01104/0.01104, allocations: 1.935 MB / 272.5 MB, free: 10.06 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.001427/0.001427, allocations: 70.33 kB / 378.9 MB, free: 51.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1039, allocations: 47.14 MB / 426.1 MB, free: 19.9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.LinearControl.Scenario2): time 0.005461/0.1094, allocations: 6.234 MB / 432.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.1116, allocations: 1.477 MB / 433.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003112/0.1119, allocations: 11.94 kB / 433.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.1122, allocations: 146.5 kB / 433.9 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005551/0.1128, allocations: 353.1 kB / 434.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.1134, allocations: 335.4 kB / 434.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.1179, allocations: 7.668 MB / 442.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002189/0.1201, allocations: 2.436 MB / 444.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004008/0.1242, allocations: 2.921 MB / 447.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004903/0.1291, allocations: 3.171 MB / 450.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.1304, allocations: 0.625 MB / 451.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001907/0.1323, allocations: 0.6717 MB / 452.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001353/0.1337, allocations: 1.417 MB / 453.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00453/0.1382, allocations: 3.158 MB / 456.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007942/0.1462, allocations: 7.498 MB / 464.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.1462, allocations: 0 / 464.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.1462, allocations: 0 / 464.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000333/0.1465, allocations: 0 / 464.2 MB, free: 13.59 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.01908/0.1656, allocations: 7.17 MB / 471.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1657, allocations: 11.89 kB / 471.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.1668, allocations: 0.5762 MB / 471.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004969/0.1718, allocations: 2.629 MB / 474.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005001/0.1723, allocations: 0.6357 MB / 475.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007828/0.1731, allocations: 483.7 kB / 475.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.1838, allocations: 5.97 MB / 481.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-05/0.1839, allocations: 0 / 481.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004578/0.1844, allocations: 176 kB / 481.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.712e-05/0.1845, allocations: 108 kB / 481.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01019/0.1947, allocations: 5.873 MB / 487.8 MB, free: 5.672 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.04039/0.2351, allocations: 17.17 MB / 0.4931 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01325/0.2484, allocations: 6.84 MB / 0.4998 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006543/0.2549, allocations: 3.33 MB / 0.5031 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003753/0.2553, allocations: 71.45 kB / 0.5031 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007314/0.2627, allocations: 3.328 MB / 0.5064 GB, free: 6.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 7.634e-06/0.2627, allocations: 0 / 0.5064 GB, free: 6.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.3527/0.6154, allocations: 35.61 MB / 0.5412 GB, free: 93.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/0.6155, allocations: 127.2 kB / 0.5413 GB, free: 93.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004377/0.6199, allocations: 3.714 MB / 0.5449 GB, free: 92.19 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007375/0.6207, allocations: 154.8 kB / 0.5451 GB, free: 92.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.6218, allocations: 1.648 MB / 0.5467 GB, free: 90.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001278/0.6231, allocations: 1.668 MB / 0.5483 GB, free: 89.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001206/0.6243, allocations: 0.9077 MB / 0.5492 GB, free: 88.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.169e-05/0.6244, allocations: 309 kB / 0.5495 GB, free: 88.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00393/0.6283, allocations: 2.777 MB / 0.5522 GB, free: 86.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003934/0.6323, allocations: 3.453 MB / 0.5556 GB, free: 82.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007633/0.6399, allocations: 6.382 MB / 0.5618 GB, free: 76.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.358e-05/0.64, allocations: 11.94 kB / 0.5618 GB, free: 76.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.01246/0.6524, allocations: 8.9 MB / 0.5705 GB, free: 67.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.6525, allocations: 15.94 kB / 0.5705 GB, free: 67.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/0.6525, allocations: 12 kB / 0.5705 GB, free: 67.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02891/0.6814, allocations: 7.136 MB / 0.5775 GB, free: 60.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003769/0.6853, allocations: 0.8508 MB / 0.5783 GB, free: 59.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.6978, allocations: 12.45 MB / 0.5905 GB, free: 46.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004974/0.7028, allocations: 455.4 kB / 0.5909 GB, free: 46.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007842/0.7036, allocations: 168 kB / 0.5911 GB, free: 45.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006066/0.7097, allocations: 3.921 MB / 0.5949 GB, free: 42.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004011/0.7137, allocations: 3.198 MB / 0.598 GB, free: 38.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007611/0.7214, allocations: 5.893 MB / 0.6038 GB, free: 32.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.121e-05/0.7214, allocations: 4 kB / 0.6038 GB, free: 32.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization_lambda0): time 0.01701/0.7384, allocations: 9.404 MB / 0.613 GB, free: 22.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.7385, allocations: 12 kB / 0.613 GB, free: 22.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.7385, allocations: 12 kB / 0.613 GB, free: 22.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009912/0.7484, allocations: 3.743 MB / 0.6166 GB, free: 19.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/0.7524, allocations: 0.8588 MB / 0.6175 GB, free: 18.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04414/0.7965, allocations: 36.78 MB / 0.6534 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005036/0.8016, allocations: 431.4 kB / 0.6538 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009399/0.8026, allocations: 164 kB / 0.654 GB, free: 11.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 94 (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,$whenCondition31) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (422): * Single equations (assignments): 411 * 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), (1,17)} Notification: Performance of prepare postOptimizeDAE: time 0.001344/0.8039, allocations: 495.2 kB / 0.6544 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/0.8051, allocations: 456.8 kB / 0.6549 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01651/0.8216, allocations: 8.428 MB / 0.6631 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.54e-05/0.8217, allocations: 23.91 kB / 0.6631 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.8217, allocations: 0 / 0.6631 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003693/0.8254, allocations: 1.268 MB / 0.6644 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/0.8266, allocations: 147.9 kB / 0.6645 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003457/0.8301, allocations: 379.5 kB / 0.6649 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00139/0.8315, allocations: 0.6488 MB / 0.6655 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02783/0.8593, allocations: 11.12 MB / 0.6764 GB, free: 4.453 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01826/0.8776, allocations: 10.52 MB / 0.6866 GB, free: 9.777 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005758/0.8834, allocations: 3.167 MB / 0.6897 GB, free: 6.578 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004777/0.8882, allocations: 2.579 MB / 0.6922 GB, free: 4.016 MB / 478.1 MB Notification: Performance of Backend: time 5.91e-07/0.8883, allocations: 0 / 0.6922 GB, free: 4.016 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03345/0.9217, allocations: 11.93 MB / 0.7039 GB, free: 7.938 MB / 494.1 MB Notification: Performance of SimCode: time 0.2352/1.157, allocations: 14.1 MB / 0.7177 GB, free: 157.8 MB / 494.1 MB Notification: Performance of Templates: time 0.1399/1.297, allocations: 107.2 MB / 0.8223 GB, free: 68.69 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.LinearControl.Scenario2.makefile (rm -f MEV_MEV.Simulations.LinearControl.Scenario2.pipe ; mkfifo MEV_MEV.Simulations.LinearControl.Scenario2.pipe ; head -c 1048576 < MEV_MEV.Simulations.LinearControl.Scenario2.pipe >> ../files/MEV_MEV.Simulations.LinearControl.Scenario2.sim & ./MEV_MEV.Simulations.LinearControl.Scenario2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.LinearControl.Scenario2.pipe 2>&1)