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.0009743/0.0009744, allocations: 112.2 kB / 16.42 MB, free: 6.504 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.0009531/0.0009531, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.202/1.202, 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.008153/0.008153, allocations: 1.947 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.001401/0.001401, allocations: 66.64 kB / 379 MB, free: 51.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06102/0.06243, allocations: 47.13 MB / 426.1 MB, free: 19.9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario1): time 0.004879/0.06734, allocations: 6.258 MB / 432.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.0696, allocations: 1.477 MB / 433.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000519/0.07013, allocations: 11.94 kB / 433.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003701/0.07053, allocations: 142.5 kB / 434 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.07123, allocations: 337.1 kB / 434.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008311/0.07207, allocations: 335.4 kB / 434.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004527/0.07661, allocations: 7.668 MB / 442.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.07866, allocations: 2.425 MB / 444.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002885/0.08156, allocations: 2.929 MB / 447.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004083/0.08565, allocations: 3.175 MB / 450.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009018/0.08657, allocations: 0.625 MB / 451.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.08781, allocations: 0.6757 MB / 452.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.08884, allocations: 1.413 MB / 453.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003143/0.09199, allocations: 3.166 MB / 456.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005957/0.09796, allocations: 7.498 MB / 464.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09798, allocations: 0 / 464.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09799, allocations: 0 / 464.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001114/0.0981, allocations: 0 / 464.2 MB, free: 13.58 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.01472/0.1128, allocations: 7.174 MB / 471.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1129, allocations: 11.89 kB / 471.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009467/0.1138, allocations: 0.5723 MB / 472 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.1177, allocations: 2.636 MB / 474.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004502/0.1182, allocations: 0.6357 MB / 475.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000735/0.1189, allocations: 479.7 kB / 475.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009542/0.1285, allocations: 5.978 MB / 481.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.1286, allocations: 0 / 481.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004462/0.129, allocations: 176 kB / 481.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.886e-05/0.1291, allocations: 104 kB / 482 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00989/0.139, allocations: 5.873 MB / 487.8 MB, free: 5.652 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.0323/0.1713, allocations: 17.15 MB / 0.4931 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.1817, allocations: 6.785 MB / 0.4998 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004735/0.1864, allocations: 3.31 MB / 0.503 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002136/0.1867, allocations: 75.67 kB / 0.5031 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005185/0.1919, allocations: 3.543 MB / 0.5065 GB, free: 6.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 7.013e-06/0.1919, allocations: 0 / 0.5065 GB, free: 6.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2521/0.444, allocations: 35.42 MB / 0.5411 GB, free: 95.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.4441, allocations: 165.8 kB / 0.5413 GB, free: 94.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003921/0.4481, allocations: 3.721 MB / 0.5449 GB, free: 93.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003518/0.4484, allocations: 154.1 kB / 0.5451 GB, free: 93.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009444/0.4494, allocations: 1.649 MB / 0.5467 GB, free: 92.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009899/0.4504, allocations: 1.667 MB / 0.5483 GB, free: 91.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001648/0.452, allocations: 0.9126 MB / 0.5492 GB, free: 90.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.13e-05/0.4521, allocations: 305.1 kB / 0.5495 GB, free: 90.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/0.4559, allocations: 2.774 MB / 0.5522 GB, free: 87.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00394/0.4599, allocations: 3.474 MB / 0.5556 GB, free: 84.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007532/0.4674, allocations: 6.413 MB / 0.5619 GB, free: 77.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.4675, allocations: 11.98 kB / 0.5619 GB, free: 77.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01212/0.4796, allocations: 8.926 MB / 0.5706 GB, free: 68.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.4796, allocations: 12.94 kB / 0.5706 GB, free: 68.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/0.4797, allocations: 20 kB / 0.5706 GB, free: 68.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02915/0.5088, allocations: 7.138 MB / 0.5776 GB, free: 61.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/0.5121, allocations: 0.8546 MB / 0.5784 GB, free: 60.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.5229, allocations: 12.5 MB / 0.5906 GB, free: 47.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/0.5265, allocations: 460.7 kB / 0.5911 GB, free: 47.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000442/0.527, allocations: 172 kB / 0.5912 GB, free: 46.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005215/0.5322, allocations: 3.925 MB / 0.5951 GB, free: 43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003664/0.5359, allocations: 3.226 MB / 0.5982 GB, free: 39.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00692/0.5428, allocations: 5.913 MB / 0.604 GB, free: 33.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.504e-05/0.5428, allocations: 4 kB / 0.604 GB, free: 33.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.0153/0.5581, allocations: 9.444 MB / 0.6132 GB, free: 23.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.5581, allocations: 12 kB / 0.6132 GB, free: 23.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/0.5582, allocations: 16 kB / 0.6132 GB, free: 23.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008996/0.5672, allocations: 3.751 MB / 0.6169 GB, free: 19.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/0.5701, allocations: 0.862 MB / 0.6177 GB, free: 19.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04106/0.6112, allocations: 36.8 MB / 0.6537 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/0.615, allocations: 439.3 kB / 0.6541 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006162/0.6156, allocations: 167.9 kB / 0.6543 GB, free: 12.37 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.001323/0.617, allocations: 496.1 kB / 0.6547 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009579/0.6179, allocations: 446.5 kB / 0.6552 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/0.633, allocations: 8.367 MB / 0.6633 GB, free: 2.934 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.375e-05/0.633, allocations: 26.25 kB / 0.6634 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.633, allocations: 2.406 kB / 0.6634 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002543/0.6356, allocations: 1.26 MB / 0.6646 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009547/0.6366, allocations: 147.9 kB / 0.6647 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002923/0.6395, allocations: 391.4 kB / 0.6651 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/0.6407, allocations: 0.6476 MB / 0.6657 GB, free: 456 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02382/0.6645, allocations: 11.19 MB / 0.6767 GB, free: 5.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01491/0.6795, allocations: 10.57 MB / 0.687 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004302/0.6838, allocations: 3.198 MB / 0.6901 GB, free: 7.262 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003716/0.6875, allocations: 2.587 MB / 0.6926 GB, free: 4.691 MB / 478.1 MB Notification: Performance of Backend: time 3.9e-07/0.6875, allocations: 3.938 kB / 0.6926 GB, free: 4.688 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02448/0.712, allocations: 12 MB / 0.7044 GB, free: 8.535 MB / 494.1 MB Notification: Performance of SimCode: time 0.1667/0.8787, allocations: 14.1 MB / 0.7181 GB, free: 159.8 MB / 494.1 MB Notification: Performance of Templates: time 0.1168/0.9956, allocations: 110.1 MB / 0.8257 GB, free: 68.91 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)