Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario1.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.Scenario1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario1") translateModel(MEV.Simulations.OnOffControl.Scenario1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001234, allocations: 114.1 kB / 16.42 MB, free: 6.453 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.001021/0.001021, allocations: 187.9 kB / 17.35 MB, free: 5.699 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.166/1.166, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008203/0.008203, allocations: 1.95 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.001415/0.001415, allocations: 73.31 kB / 379 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05775/0.05917, allocations: 47.13 MB / 426.1 MB, free: 19.89 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario1): time 0.004601/0.06379, allocations: 6.258 MB / 432.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.06593, allocations: 1.481 MB / 433.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004726/0.06641, allocations: 12 kB / 433.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.06676, allocations: 138.5 kB / 434 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006437/0.06741, allocations: 353.1 kB / 434.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005945/0.06801, allocations: 335.4 kB / 434.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00391/0.07193, allocations: 7.68 MB / 442.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.07389, allocations: 2.417 MB / 444.8 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/0.07666, allocations: 2.925 MB / 447.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003049/0.07972, allocations: 3.171 MB / 450.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008216/0.08056, allocations: 0.6289 MB / 451.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.08177, allocations: 0.6718 MB / 452.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.08289, allocations: 1.417 MB / 453.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003044/0.08594, allocations: 3.17 MB / 456.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005876/0.09182, allocations: 7.521 MB / 464.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09184, allocations: 0 / 464.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09184, allocations: 0 / 464.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.874e-05/0.09193, allocations: 0 / 464.3 MB, free: 13.52 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.01394/0.1059, allocations: 7.328 MB / 471.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1059, allocations: 11.89 kB / 471.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008178/0.1067, allocations: 0.5988 MB / 472.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003552/0.1103, allocations: 2.651 MB / 474.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004284/0.1107, allocations: 0.6396 MB / 475.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006842/0.1114, allocations: 479.8 kB / 476 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008608/0.1201, allocations: 5.97 MB / 481.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.212e-05/0.1201, allocations: 4 kB / 481.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004016/0.1205, allocations: 180 kB / 482.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.786e-05/0.1206, allocations: 107.9 kB / 482.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009032/0.1297, allocations: 5.873 MB / 488.1 MB, free: 5.391 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.0259/0.1556, allocations: 17.19 MB / 0.4934 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00967/0.1653, allocations: 6.781 MB / 0.5001 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004476/0.1697, allocations: 3.31 MB / 0.5033 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.17, allocations: 75.75 kB / 0.5034 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004932/0.1749, allocations: 3.536 MB / 0.5068 GB, free: 6.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 8.095e-06/0.175, allocations: 0 / 0.5068 GB, free: 6.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2354/0.4103, allocations: 35.56 MB / 0.5415 GB, free: 93.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.4104, allocations: 160.8 kB / 0.5417 GB, free: 93.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.4136, allocations: 3.726 MB / 0.5453 GB, free: 92.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002537/0.4138, allocations: 152.4 kB / 0.5455 GB, free: 92.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008295/0.4147, allocations: 1.688 MB / 0.5471 GB, free: 91.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007626/0.4154, allocations: 1.738 MB / 0.5488 GB, free: 90.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/0.4165, allocations: 0.921 MB / 0.5497 GB, free: 89.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.028e-05/0.4165, allocations: 301.1 kB / 0.55 GB, free: 89.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003338/0.4198, allocations: 2.771 MB / 0.5527 GB, free: 86.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003588/0.4234, allocations: 3.483 MB / 0.5561 GB, free: 82.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007036/0.4305, allocations: 6.412 MB / 0.5624 GB, free: 75.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.4305, allocations: 4 kB / 0.5624 GB, free: 75.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01124/0.4417, allocations: 8.955 MB / 0.5711 GB, free: 66.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.4418, allocations: 13.09 kB / 0.5711 GB, free: 66.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/0.4418, allocations: 17.03 kB / 0.5712 GB, free: 66.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02821/0.47, allocations: 7.133 MB / 0.5781 GB, free: 59.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/0.473, allocations: 0.858 MB / 0.579 GB, free: 58.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.4832, allocations: 12.51 MB / 0.5912 GB, free: 46.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00325/0.4865, allocations: 460.8 kB / 0.5916 GB, free: 45.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/0.4868, allocations: 176 kB / 0.5918 GB, free: 45.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004563/0.4913, allocations: 3.917 MB / 0.5956 GB, free: 41.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003346/0.4947, allocations: 3.238 MB / 0.5988 GB, free: 38.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006563/0.5013, allocations: 5.905 MB / 0.6045 GB, free: 31.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.428e-06/0.5013, allocations: 4 kB / 0.6046 GB, free: 31.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01471/0.516, allocations: 9.466 MB / 0.6138 GB, free: 22.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.516, allocations: 15.84 kB / 0.6138 GB, free: 22.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.516, allocations: 16 kB / 0.6138 GB, free: 22.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008997/0.525, allocations: 3.742 MB / 0.6175 GB, free: 18.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002847/0.5279, allocations: 0.862 MB / 0.6183 GB, free: 17.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04025/0.5682, allocations: 36.84 MB / 0.6543 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003714/0.5719, allocations: 435.4 kB / 0.6547 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002876/0.5722, allocations: 164 kB / 0.6549 GB, free: 10.83 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.0009485/0.5732, allocations: 499.1 kB / 0.6553 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000699/0.5739, allocations: 472.9 kB / 0.6558 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/0.5878, allocations: 8.373 MB / 0.664 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.621e-05/0.5879, allocations: 30.2 kB / 0.664 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.5879, allocations: 2.297 kB / 0.664 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/0.5899, allocations: 1.287 MB / 0.6653 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007228/0.5907, allocations: 147.9 kB / 0.6654 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002593/0.5933, allocations: 375.5 kB / 0.6658 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/0.5944, allocations: 0.6593 MB / 0.6664 GB, free: 14.88 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02288/0.6173, allocations: 11.21 MB / 0.6773 GB, free: 3.641 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01462/0.632, allocations: 10.6 MB / 0.6877 GB, free: 8.887 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004288/0.6363, allocations: 3.205 MB / 0.6908 GB, free: 5.648 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00337/0.6397, allocations: 2.587 MB / 0.6934 GB, free: 3.078 MB / 478.1 MB Notification: Performance of Backend: time 2.51e-07/0.6397, allocations: 0 / 0.6934 GB, free: 3.078 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02294/0.6626, allocations: 12.03 MB / 0.7051 GB, free: 6.902 MB / 494.1 MB Notification: Performance of SimCode: time 0.1487/0.8113, allocations: 14.33 MB / 0.7191 GB, free: 156.9 MB / 494.1 MB Notification: Performance of Templates: time 0.1068/0.9181, allocations: 107.1 MB / 0.8237 GB, free: 67.7 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario1.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario1.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario1.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario1.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario1.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario1.pipe 2>&1)