Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.LinearControl.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.LinearControl.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario4") translateModel(MEV.Simulations.LinearControl.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001084, allocations: 111.4 kB / 16.42 MB, free: 6.523 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.001168/0.001167, allocations: 183.9 kB / 17.34 MB, free: 5.734 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.193/1.193, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007816/0.007816, allocations: 1.946 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: 63.56 kB / 378.9 MB, free: 51.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06312/0.06452, allocations: 47.14 MB / 426.1 MB, free: 19.89 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.LinearControl.Scenario4): time 0.004678/0.06923, allocations: 6.226 MB / 432.3 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.07092, allocations: 1.485 MB / 433.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.07121, allocations: 15.94 kB / 433.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.07147, allocations: 142.5 kB / 434 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004492/0.07193, allocations: 361.1 kB / 434.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.07243, allocations: 327.5 kB / 434.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.07607, allocations: 7.672 MB / 442.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001796/0.07788, allocations: 2.429 MB / 444.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.08049, allocations: 2.925 MB / 447.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003645/0.08415, allocations: 3.167 MB / 450.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008912/0.08505, allocations: 0.625 MB / 451.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.08632, allocations: 0.6718 MB / 452.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.08749, allocations: 1.413 MB / 453.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003333/0.09083, allocations: 3.17 MB / 456.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006299/0.09714, allocations: 7.521 MB / 464.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.09716, allocations: 0 / 464.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09717, allocations: 0 / 464.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.09728, allocations: 0 / 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.01443/0.1117, allocations: 7.324 MB / 471.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1118, allocations: 15.89 kB / 471.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000875/0.1126, allocations: 0.5988 MB / 472.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.1164, allocations: 2.647 MB / 474.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000465/0.1169, allocations: 0.6396 MB / 475.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006954/0.1176, allocations: 479.8 kB / 475.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008996/0.1266, allocations: 5.97 MB / 481.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.491e-05/0.1267, allocations: 0 / 481.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003951/0.1271, allocations: 180 kB / 482.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-05/0.1272, allocations: 104 kB / 482.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.1363, allocations: 5.873 MB / 488 MB, free: 5.422 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.02745/0.1638, allocations: 17.21 MB / 0.4934 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009706/0.1735, allocations: 6.843 MB / 0.5001 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004562/0.1781, allocations: 3.326 MB / 0.5033 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002339/0.1784, allocations: 75.44 kB / 0.5034 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00474/0.1831, allocations: 3.339 MB / 0.5067 GB, free: 6.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.482e-06/0.1831, allocations: 0 / 0.5067 GB, free: 6.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2529/0.436, allocations: 35.68 MB / 0.5415 GB, free: 93.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.4361, allocations: 145.4 kB / 0.5416 GB, free: 93.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.4394, allocations: 3.71 MB / 0.5453 GB, free: 92.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002966/0.4397, allocations: 154 kB / 0.5454 GB, free: 91.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008484/0.4405, allocations: 1.681 MB / 0.5471 GB, free: 90.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008112/0.4413, allocations: 1.744 MB / 0.5488 GB, free: 89.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/0.4424, allocations: 0.9071 MB / 0.5496 GB, free: 89.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.257e-05/0.4424, allocations: 312.8 kB / 0.5499 GB, free: 88.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/0.4459, allocations: 2.774 MB / 0.5527 GB, free: 86.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003638/0.4495, allocations: 3.452 MB / 0.556 GB, free: 82.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007133/0.4567, allocations: 6.389 MB / 0.5623 GB, free: 76.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.4567, allocations: 4 kB / 0.5623 GB, free: 76.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.01152/0.4682, allocations: 8.919 MB / 0.571 GB, free: 67.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.4683, allocations: 15.94 kB / 0.571 GB, free: 67.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.4683, allocations: 13.31 kB / 0.571 GB, free: 67.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02827/0.4966, allocations: 7.138 MB / 0.578 GB, free: 59.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003118/0.4997, allocations: 0.8468 MB / 0.5788 GB, free: 59.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.5101, allocations: 12.46 MB / 0.591 GB, free: 46.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/0.5136, allocations: 455.4 kB / 0.5914 GB, free: 45.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/0.5139, allocations: 179.8 kB / 0.5916 GB, free: 45.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00477/0.5187, allocations: 3.921 MB / 0.5954 GB, free: 41.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003376/0.5221, allocations: 3.198 MB / 0.5985 GB, free: 38.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006594/0.5287, allocations: 5.89 MB / 0.6043 GB, free: 32.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.24e-05/0.5287, allocations: 4 kB / 0.6043 GB, free: 32.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization_lambda0): time 0.01537/0.5441, allocations: 9.416 MB / 0.6135 GB, free: 22.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.5441, allocations: 12 kB / 0.6135 GB, free: 22.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/0.5442, allocations: 12.77 kB / 0.6135 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00921/0.5534, allocations: 3.746 MB / 0.6172 GB, free: 18.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/0.5566, allocations: 0.8581 MB / 0.618 GB, free: 17.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04083/0.5974, allocations: 36.82 MB / 0.6539 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003903/0.6013, allocations: 435.4 kB / 0.6544 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003316/0.6017, allocations: 166.3 kB / 0.6545 GB, free: 11.23 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.001008/0.6027, allocations: 0.4905 MB / 0.655 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006783/0.6034, allocations: 469 kB / 0.6554 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/0.6179, allocations: 8.431 MB / 0.6637 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.052e-05/0.618, allocations: 27.84 kB / 0.6637 GB, free: 1.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-06/0.618, allocations: 0 / 0.6637 GB, free: 1.699 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002303/0.6203, allocations: 1.29 MB / 0.665 GB, free: 400 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006655/0.621, allocations: 147.9 kB / 0.6651 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002542/0.6235, allocations: 379.5 kB / 0.6655 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/0.6247, allocations: 0.6476 MB / 0.6661 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02321/0.648, allocations: 11.14 MB / 0.677 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01501/0.663, allocations: 10.56 MB / 0.6873 GB, free: 9.352 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004291/0.6673, allocations: 3.163 MB / 0.6904 GB, free: 6.156 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003413/0.6707, allocations: 2.579 MB / 0.6929 GB, free: 3.594 MB / 478.1 MB Notification: Performance of Backend: time 4.31e-07/0.6708, allocations: 0 / 0.6929 GB, free: 3.594 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02313/0.6939, allocations: 11.95 MB / 0.7046 GB, free: 7.492 MB / 494.1 MB Notification: Performance of SimCode: time 0.173/0.8669, allocations: 14.32 MB / 0.7186 GB, free: 157.3 MB / 494.1 MB Notification: Performance of Templates: time 0.112/0.9789, allocations: 107.2 MB / 0.8232 GB, free: 68.16 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.LinearControl.Scenario4.makefile (rm -f MEV_MEV.Simulations.LinearControl.Scenario4.pipe ; mkfifo MEV_MEV.Simulations.LinearControl.Scenario4.pipe ; head -c 1048576 < MEV_MEV.Simulations.LinearControl.Scenario4.pipe >> ../files/MEV_MEV.Simulations.LinearControl.Scenario4.sim & ./MEV_MEV.Simulations.LinearControl.Scenario4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.LinearControl.Scenario4.pipe 2>&1)