Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.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.OnOffControl.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario4") translateModel(MEV.Simulations.OnOffControl.Scenario4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 111.5 kB / 16.41 MB, free: 6.016 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.001251/0.001251, allocations: 191.4 kB / 17.35 MB, free: 5.617 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.162/1.162, 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.008228/0.008228, allocations: 1.935 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.001425/0.001425, allocations: 69.38 kB / 379 MB, free: 51.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05794/0.05937, allocations: 47.14 MB / 426.1 MB, free: 19.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario4): time 0.004727/0.06412, allocations: 6.25 MB / 432.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.06628, allocations: 1.473 MB / 433.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004753/0.06677, allocations: 15.94 kB / 433.8 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003353/0.06713, allocations: 142.6 kB / 434 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006491/0.06779, allocations: 353 kB / 434.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005744/0.06837, allocations: 339.4 kB / 434.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003624/0.07201, allocations: 7.672 MB / 442.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.07375, allocations: 2.429 MB / 444.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.07596, allocations: 2.925 MB / 447.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003025/0.07899, allocations: 3.175 MB / 450.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008406/0.07984, allocations: 0.625 MB / 451.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.08105, allocations: 0.664 MB / 452.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.08217, allocations: 1.421 MB / 453.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002897/0.08508, allocations: 3.166 MB / 456.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005859/0.09094, allocations: 7.525 MB / 464.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.09096, allocations: 0 / 464.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09096, allocations: 0 / 464.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.94e-05/0.09104, allocations: 4 kB / 464.3 MB, free: 13.51 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.01388/0.1049, allocations: 7.324 MB / 471.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.105, allocations: 11.89 kB / 471.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008188/0.1058, allocations: 0.5988 MB / 472.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003589/0.1094, allocations: 2.655 MB / 474.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004308/0.1098, allocations: 0.6395 MB / 475.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006957/0.1105, allocations: 479.8 kB / 476 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008637/0.1192, allocations: 5.97 MB / 481.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.596e-05/0.1193, allocations: 4 kB / 481.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000395/0.1197, allocations: 176 kB / 482.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.448e-05/0.1197, allocations: 108 kB / 482.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008946/0.1287, allocations: 5.869 MB / 488.1 MB, free: 5.383 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.02587/0.1546, allocations: 17.2 MB / 0.4934 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009635/0.1642, allocations: 6.789 MB / 0.5001 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004467/0.1687, allocations: 3.302 MB / 0.5033 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002269/0.1689, allocations: 75.45 kB / 0.5034 GB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004917/0.1739, allocations: 3.544 MB / 0.5068 GB, free: 6.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.392e-06/0.1739, allocations: 4 kB / 0.5068 GB, free: 6.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2377/0.4116, allocations: 35.55 MB / 0.5415 GB, free: 93.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.4117, allocations: 169.9 kB / 0.5417 GB, free: 93.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003141/0.4148, allocations: 3.721 MB / 0.5453 GB, free: 92.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002566/0.4151, allocations: 152.9 kB / 0.5455 GB, free: 92.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008124/0.4159, allocations: 1.682 MB / 0.5471 GB, free: 91.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007474/0.4167, allocations: 1.748 MB / 0.5488 GB, free: 90.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001054/0.4177, allocations: 0.9188 MB / 0.5497 GB, free: 89.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 2.89e-05/0.4178, allocations: 305.1 kB / 0.55 GB, free: 89.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/0.4212, allocations: 2.771 MB / 0.5527 GB, free: 86.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003628/0.4248, allocations: 3.476 MB / 0.5561 GB, free: 82.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007141/0.432, allocations: 6.413 MB / 0.5624 GB, free: 75.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.432, allocations: 4 kB / 0.5624 GB, free: 75.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.0113/0.4433, allocations: 8.952 MB / 0.5711 GB, free: 66.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.4433, allocations: 15.98 kB / 0.5712 GB, free: 66.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.4433, allocations: 16 kB / 0.5712 GB, free: 66.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02887/0.4722, allocations: 7.141 MB / 0.5781 GB, free: 59.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003022/0.4753, allocations: 0.8502 MB / 0.579 GB, free: 58.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.4857, allocations: 12.51 MB / 0.5912 GB, free: 46.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003169/0.4889, allocations: 455.5 kB / 0.5916 GB, free: 45.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/0.4892, allocations: 181.3 kB / 0.5918 GB, free: 45.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004632/0.4939, allocations: 3.917 MB / 0.5956 GB, free: 41.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003397/0.4973, allocations: 3.238 MB / 0.5988 GB, free: 38.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006586/0.5039, allocations: 5.913 MB / 0.6046 GB, free: 31.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.768e-06/0.5039, allocations: 4 kB / 0.6046 GB, free: 31.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01482/0.5187, allocations: 9.462 MB / 0.6138 GB, free: 22.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.5187, allocations: 15.98 kB / 0.6138 GB, free: 22.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.5188, allocations: 12 kB / 0.6138 GB, free: 22.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009015/0.5278, allocations: 3.746 MB / 0.6175 GB, free: 18.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.5307, allocations: 0.8619 MB / 0.6183 GB, free: 17.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04041/0.5711, allocations: 36.84 MB / 0.6543 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003528/0.5747, allocations: 435.4 kB / 0.6547 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002903/0.575, allocations: 160 kB / 0.6549 GB, free: 10.86 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.0009393/0.5759, allocations: 0.497 MB / 0.6554 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005901/0.5765, allocations: 474 kB / 0.6558 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/0.5904, allocations: 8.361 MB / 0.664 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-05/0.5905, allocations: 27.89 kB / 0.664 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.5905, allocations: 0 / 0.664 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/0.5925, allocations: 1.285 MB / 0.6653 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006377/0.5932, allocations: 151.9 kB / 0.6654 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002595/0.5958, allocations: 379.5 kB / 0.6658 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/0.597, allocations: 0.6514 MB / 0.6664 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02311/0.6201, allocations: 11.21 MB / 0.6773 GB, free: 3.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01452/0.6346, allocations: 10.6 MB / 0.6877 GB, free: 8.902 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004261/0.6389, allocations: 3.198 MB / 0.6908 GB, free: 5.672 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003163/0.6421, allocations: 2.583 MB / 0.6933 GB, free: 3.105 MB / 478.1 MB Notification: Performance of Backend: time 4.51e-07/0.6421, allocations: 0 / 0.6933 GB, free: 3.105 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02291/0.665, allocations: 12.04 MB / 0.7051 GB, free: 6.918 MB / 494.1 MB Notification: Performance of SimCode: time 0.1513/0.8164, allocations: 14.32 MB / 0.7191 GB, free: 156.7 MB / 494.1 MB Notification: Performance of Templates: time 0.105/0.9214, allocations: 107.1 MB / 0.8237 GB, free: 67.57 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario4.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario4.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario4.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario4.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario4.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario4.pipe 2>&1)