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.001089/0.001089, allocations: 113.3 kB / 16.42 MB, free: 6.008 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.001107/0.001107, allocations: 186.8 kB / 17.35 MB, free: 5.625 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.313/1.313, 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.008154/0.008154, 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.001411/0.001411, allocations: 73.72 kB / 379 MB, free: 51.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07026/0.07168, allocations: 47.12 MB / 426.1 MB, free: 19.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario2): time 0.005254/0.07699, allocations: 6.265 MB / 432.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.07935, allocations: 1.477 MB / 433.8 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003242/0.07969, allocations: 15.94 kB / 433.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.07998, allocations: 138.5 kB / 434 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005149/0.08056, allocations: 353.1 kB / 434.3 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.08113, allocations: 331.4 kB / 434.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.08496, allocations: 7.68 MB / 442.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.08691, allocations: 2.425 MB / 444.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002949/0.08988, allocations: 2.929 MB / 447.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003876/0.09377, allocations: 3.167 MB / 450.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.09505, allocations: 0.625 MB / 451.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.09663, allocations: 0.6757 MB / 452.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001228/0.09787, allocations: 1.421 MB / 453.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00376/0.1016, allocations: 3.162 MB / 456.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006642/0.1083, allocations: 7.494 MB / 464.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1083, allocations: 0 / 464.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1083, allocations: 0 / 464.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001418/0.1085, allocations: 0 / 464.2 MB, free: 13.54 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.01641/0.1249, allocations: 7.185 MB / 471.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1249, allocations: 11.89 kB / 471.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009973/0.126, allocations: 0.5723 MB / 472 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/0.1307, allocations: 2.625 MB / 474.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004681/0.1311, allocations: 0.6396 MB / 475.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007643/0.1319, allocations: 483.7 kB / 475.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/0.142, allocations: 5.966 MB / 481.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.909e-05/0.1421, allocations: 0 / 481.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004343/0.1425, allocations: 184 kB / 481.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.409e-05/0.1426, allocations: 104 kB / 482 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009781/0.1524, allocations: 5.873 MB / 487.9 MB, free: 5.605 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.03201/0.1844, allocations: 17.15 MB / 0.4932 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.195, allocations: 6.789 MB / 0.4998 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004914/0.1999, allocations: 3.314 MB / 0.503 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000206/0.2001, allocations: 67.44 kB / 0.5031 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005554/0.2057, allocations: 3.551 MB / 0.5066 GB, free: 6.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 7.514e-06/0.2057, allocations: 0 / 0.5066 GB, free: 6.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2789/0.4846, allocations: 35.42 MB / 0.5412 GB, free: 95.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.011e-05/0.4848, allocations: 161.9 kB / 0.5413 GB, free: 94.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003831/0.4886, allocations: 3.727 MB / 0.545 GB, free: 93.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005419/0.4891, allocations: 149.4 kB / 0.5451 GB, free: 93.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009539/0.4901, allocations: 1.649 MB / 0.5467 GB, free: 92.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.4911, allocations: 1.664 MB / 0.5483 GB, free: 91.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/0.4923, allocations: 0.9149 MB / 0.5492 GB, free: 90.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.467e-05/0.4923, allocations: 304.6 kB / 0.5495 GB, free: 90.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/0.4961, allocations: 2.77 MB / 0.5522 GB, free: 87.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003938/0.5, allocations: 3.475 MB / 0.5556 GB, free: 84.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00768/0.5077, allocations: 6.411 MB / 0.5619 GB, free: 77.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.5077, allocations: 4 kB / 0.5619 GB, free: 77.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01249/0.5202, allocations: 8.933 MB / 0.5706 GB, free: 68.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.5203, allocations: 12.94 kB / 0.5706 GB, free: 68.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.5203, allocations: 16 kB / 0.5706 GB, free: 68.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0295/0.5498, allocations: 7.151 MB / 0.5776 GB, free: 61.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003673/0.5535, allocations: 0.8541 MB / 0.5785 GB, free: 60.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.5658, allocations: 12.5 MB / 0.5907 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004599/0.5705, allocations: 456.7 kB / 0.5911 GB, free: 47.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006415/0.5711, allocations: 176 kB / 0.5913 GB, free: 46.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005767/0.5769, allocations: 3.921 MB / 0.5951 GB, free: 42.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004093/0.581, allocations: 3.234 MB / 0.5982 GB, free: 39.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007531/0.5886, allocations: 5.917 MB / 0.604 GB, free: 33.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.811e-05/0.5886, allocations: 8 kB / 0.604 GB, free: 33.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01657/0.6052, allocations: 9.436 MB / 0.6132 GB, free: 23.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.6053, allocations: 12 kB / 0.6133 GB, free: 23.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/0.6053, allocations: 16 kB / 0.6133 GB, free: 23.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00982/0.6151, allocations: 3.755 MB / 0.6169 GB, free: 19.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003488/0.6186, allocations: 0.8542 MB / 0.6178 GB, free: 19.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04477/0.6634, allocations: 36.8 MB / 0.6537 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/0.6678, allocations: 443.3 kB / 0.6541 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007437/0.6686, allocations: 164 kB / 0.6543 GB, free: 12.3 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.00148/0.6701, allocations: 496 kB / 0.6548 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.6712, allocations: 443.5 kB / 0.6552 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/0.6878, allocations: 8.369 MB / 0.6634 GB, free: 2.871 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-05/0.6879, allocations: 31.89 kB / 0.6634 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.6879, allocations: 2.406 kB / 0.6634 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003299/0.6912, allocations: 1.26 MB / 0.6646 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/0.6924, allocations: 147.9 kB / 0.6648 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/0.6958, allocations: 379.5 kB / 0.6651 GB, free: 1.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001339/0.6972, allocations: 0.6553 MB / 0.6658 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02817/0.7254, allocations: 11.18 MB / 0.6767 GB, free: 5.176 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01741/0.7428, allocations: 10.59 MB / 0.687 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004821/0.7477, allocations: 3.198 MB / 0.6901 GB, free: 7.203 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004185/0.7519, allocations: 2.583 MB / 0.6927 GB, free: 4.637 MB / 478.1 MB Notification: Performance of Backend: time 3.7e-07/0.7519, allocations: 0 / 0.6927 GB, free: 4.637 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02825/0.7802, allocations: 12 MB / 0.7044 GB, free: 8.48 MB / 494.1 MB Notification: Performance of SimCode: time 0.1875/0.9677, allocations: 14.11 MB / 0.7182 GB, free: 159.8 MB / 494.1 MB Notification: Performance of Templates: time 0.1234/1.091, allocations: 107.1 MB / 0.8228 GB, free: 71.85 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)