Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario3.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.Scenario3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario3") translateModel(MEV.Simulations.OnOffControl.Scenario3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001213, allocations: 107.4 kB / 16.41 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.001202/0.001202, allocations: 192.3 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.175/1.175, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007684/0.007685, allocations: 1.939 MB / 272.5 MB, free: 10.07 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.001362/0.001362, allocations: 70.67 kB / 379 MB, free: 51.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06081/0.06218, allocations: 47.13 MB / 426.1 MB, free: 19.92 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario3): time 0.004791/0.067, allocations: 6.25 MB / 432.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.06945, allocations: 1.481 MB / 433.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005596/0.07003, allocations: 15.94 kB / 433.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003657/0.07043, allocations: 138.5 kB / 434 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006789/0.07112, allocations: 337.1 kB / 434.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000666/0.07179, allocations: 331.4 kB / 434.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003833/0.07564, allocations: 7.676 MB / 442.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.07743, allocations: 2.425 MB / 444.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.08007, allocations: 2.925 MB / 447.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003789/0.08387, allocations: 3.175 MB / 450.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009573/0.08484, allocations: 0.625 MB / 451.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.08611, allocations: 0.6756 MB / 452.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.08715, allocations: 1.413 MB / 453.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003222/0.09038, allocations: 3.166 MB / 456.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005965/0.09635, allocations: 7.494 MB / 464.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.09638, allocations: 0 / 464.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09638, allocations: 0 / 464.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.09651, allocations: 0 / 464.2 MB, free: 13.61 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.01438/0.1109, allocations: 7.179 MB / 471.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1109, allocations: 15.88 kB / 471.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009038/0.1119, allocations: 0.5723 MB / 472 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003696/0.1156, allocations: 2.629 MB / 474.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004489/0.116, allocations: 0.6396 MB / 475.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007214/0.1167, allocations: 487.7 kB / 475.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009286/0.126, allocations: 5.97 MB / 481.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.88e-05/0.1261, allocations: 0 / 481.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/0.1265, allocations: 176 kB / 481.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.648e-05/0.1266, allocations: 107.9 kB / 482 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009192/0.1358, allocations: 5.865 MB / 487.8 MB, free: 5.676 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.02714/0.163, allocations: 17.15 MB / 0.4931 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009541/0.1725, allocations: 6.789 MB / 0.4998 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004456/0.177, allocations: 3.306 MB / 0.503 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001949/0.1772, allocations: 71.52 kB / 0.5031 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004925/0.1821, allocations: 3.547 MB / 0.5065 GB, free: 6.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.061e-06/0.1822, allocations: 0 / 0.5065 GB, free: 6.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2458/0.428, allocations: 35.42 MB / 0.5411 GB, free: 95.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.558e-05/0.4281, allocations: 164.2 kB / 0.5413 GB, free: 94.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003389/0.4315, allocations: 3.725 MB / 0.5449 GB, free: 93.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003554/0.4319, allocations: 150.9 kB / 0.5451 GB, free: 93.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008885/0.4328, allocations: 1.651 MB / 0.5467 GB, free: 92.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000803/0.4336, allocations: 1.666 MB / 0.5483 GB, free: 91.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/0.4346, allocations: 0.9189 MB / 0.5492 GB, free: 90.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.315e-05/0.4347, allocations: 301.1 kB / 0.5495 GB, free: 90.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003394/0.4381, allocations: 2.77 MB / 0.5522 GB, free: 87.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003637/0.4417, allocations: 3.479 MB / 0.5556 GB, free: 84.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007166/0.4489, allocations: 6.413 MB / 0.5619 GB, free: 77.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.4489, allocations: 4 kB / 0.5619 GB, free: 77.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.0118/0.4607, allocations: 8.935 MB / 0.5706 GB, free: 68.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.4608, allocations: 8 kB / 0.5706 GB, free: 68.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/0.4608, allocations: 16 kB / 0.5706 GB, free: 68.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02831/0.4891, allocations: 7.145 MB / 0.5776 GB, free: 61.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003202/0.4923, allocations: 0.8502 MB / 0.5784 GB, free: 60.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.503, allocations: 12.5 MB / 0.5906 GB, free: 47.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003775/0.5068, allocations: 459.4 kB / 0.5911 GB, free: 47.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005033/0.5073, allocations: 176 kB / 0.5912 GB, free: 46.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00568/0.513, allocations: 3.921 MB / 0.5951 GB, free: 43.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00378/0.5168, allocations: 3.234 MB / 0.5982 GB, free: 39.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007027/0.5238, allocations: 5.916 MB / 0.604 GB, free: 33.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.375e-05/0.5239, allocations: 4 kB / 0.604 GB, free: 33.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01551/0.5394, allocations: 9.441 MB / 0.6132 GB, free: 23.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.5394, allocations: 8 kB / 0.6132 GB, free: 23.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/0.5394, allocations: 16 kB / 0.6132 GB, free: 23.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00918/0.5486, allocations: 3.751 MB / 0.6169 GB, free: 19.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/0.5516, allocations: 0.8627 MB / 0.6177 GB, free: 19.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04127/0.5929, allocations: 36.8 MB / 0.6537 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003861/0.5968, allocations: 443.3 kB / 0.6541 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005894/0.5974, allocations: 162.4 kB / 0.6543 GB, free: 12.39 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.001235/0.5986, allocations: 494.2 kB / 0.6547 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009331/0.5996, allocations: 450.4 kB / 0.6552 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/0.6144, allocations: 8.37 MB / 0.6633 GB, free: 2.949 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.18e-05/0.6144, allocations: 23.91 kB / 0.6634 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.6144, allocations: 0 / 0.6634 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002402/0.6168, allocations: 1.264 MB / 0.6646 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008146/0.6177, allocations: 155.9 kB / 0.6647 GB, free: 1.484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/0.6204, allocations: 375.5 kB / 0.6651 GB, free: 1.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001149/0.6215, allocations: 0.6486 MB / 0.6657 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0234/0.645, allocations: 11.19 MB / 0.6767 GB, free: 5.234 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01493/0.6599, allocations: 10.58 MB / 0.687 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004405/0.6643, allocations: 3.198 MB / 0.6901 GB, free: 7.266 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003699/0.668, allocations: 2.587 MB / 0.6926 GB, free: 4.695 MB / 478.1 MB Notification: Performance of Backend: time 6.51e-07/0.6681, allocations: 0 / 0.6926 GB, free: 4.695 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02433/0.6924, allocations: 12 MB / 0.7044 GB, free: 8.539 MB / 494.1 MB Notification: Performance of SimCode: time 0.1662/0.8586, allocations: 14.1 MB / 0.7181 GB, free: 159.7 MB / 494.1 MB Notification: Performance of Templates: time 0.1143/0.973, allocations: 110.1 MB / 0.8257 GB, free: 68.91 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario3.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario3.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario3.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario3.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario3.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario3.pipe 2>&1)