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.001216/0.001216, allocations: 112.1 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.001239/0.001239, 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.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00828/0.00828, 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.001365/0.001365, allocations: 67.55 kB / 378.9 MB, free: 52.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06406/0.06543, allocations: 47.13 MB / 426.1 MB, free: 20.1 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.LinearControl.Scenario4): time 0.004614/0.07007, allocations: 6.238 MB / 432.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.07212, allocations: 1.481 MB / 433.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.07243, allocations: 8 kB / 433.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.07272, allocations: 138.5 kB / 433.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.0732, allocations: 345 kB / 434.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005277/0.07374, allocations: 335.4 kB / 434.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00371/0.07746, allocations: 7.668 MB / 442.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.07932, allocations: 2.425 MB / 444.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002825/0.08216, allocations: 2.925 MB / 447.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004132/0.0863, allocations: 3.167 MB / 450.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001178/0.0875, allocations: 0.625 MB / 451.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.08891, allocations: 0.6835 MB / 452.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.08995, allocations: 1.413 MB / 453.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003393/0.09335, allocations: 3.158 MB / 456.7 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007364/0.1007, allocations: 7.494 MB / 464.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1008, allocations: 3.938 kB / 464.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1008, allocations: 0 / 464.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.101, allocations: 0 / 464.2 MB, free: 13.8 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.01709/0.1181, allocations: 7.17 MB / 471.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1182, allocations: 11.89 kB / 471.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.1192, allocations: 0.5723 MB / 471.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.1232, allocations: 2.629 MB / 474.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005243/0.1238, allocations: 0.6357 MB / 475.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007831/0.1246, allocations: 483.7 kB / 475.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009342/0.1339, allocations: 5.966 MB / 481.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.508e-05/0.134, allocations: 8 kB / 481.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004114/0.1344, allocations: 180 kB / 481.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.606e-05/0.1345, allocations: 104 kB / 481.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009316/0.1438, allocations: 5.869 MB / 487.8 MB, free: 5.883 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.02775/0.1716, allocations: 17.17 MB / 0.4931 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009577/0.1812, allocations: 6.848 MB / 0.4998 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004644/0.1858, allocations: 3.333 MB / 0.503 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002136/0.1861, allocations: 71.45 kB / 0.5031 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004794/0.1909, allocations: 3.335 MB / 0.5064 GB, free: 7.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.261e-06/0.1909, allocations: 0 / 0.5064 GB, free: 7.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2533/0.4442, allocations: 35.6 MB / 0.5411 GB, free: 94.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.4443, allocations: 136.6 kB / 0.5413 GB, free: 94.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003562/0.4479, allocations: 3.707 MB / 0.5449 GB, free: 93.28 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/0.4483, allocations: 153 kB / 0.545 GB, free: 93.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008834/0.4492, allocations: 1.65 MB / 0.5466 GB, free: 91.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008531/0.4501, allocations: 1.662 MB / 0.5483 GB, free: 90.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.4511, allocations: 0.913 MB / 0.5492 GB, free: 90.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.095e-05/0.4511, allocations: 305.1 kB / 0.5494 GB, free: 89.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003397/0.4545, allocations: 2.776 MB / 0.5522 GB, free: 88.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003542/0.4581, allocations: 3.454 MB / 0.5555 GB, free: 84.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006914/0.465, allocations: 6.386 MB / 0.5618 GB, free: 77.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.465, allocations: 4 kB / 0.5618 GB, free: 77.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.01134/0.4764, allocations: 8.91 MB / 0.5705 GB, free: 68.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.4764, allocations: 16.88 kB / 0.5705 GB, free: 68.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.4764, allocations: 12 kB / 0.5705 GB, free: 68.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02838/0.5048, allocations: 7.126 MB / 0.5775 GB, free: 61.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003369/0.5082, allocations: 0.8541 MB / 0.5783 GB, free: 60.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.5188, allocations: 12.45 MB / 0.5905 GB, free: 47.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00361/0.5224, allocations: 451.4 kB / 0.5909 GB, free: 47.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004669/0.5229, allocations: 176 kB / 0.5911 GB, free: 47.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005084/0.528, allocations: 3.917 MB / 0.5949 GB, free: 43.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00347/0.5315, allocations: 3.202 MB / 0.598 GB, free: 40 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006669/0.5382, allocations: 5.894 MB / 0.6038 GB, free: 33.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.138e-05/0.5382, allocations: 4 kB / 0.6038 GB, free: 33.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization_lambda0): time 0.0151/0.5533, allocations: 9.396 MB / 0.6129 GB, free: 24.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.5533, allocations: 12 kB / 0.6129 GB, free: 24.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.5533, allocations: 12 kB / 0.613 GB, free: 24.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008877/0.5622, allocations: 3.743 MB / 0.6166 GB, free: 20.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/0.5652, allocations: 0.8619 MB / 0.6175 GB, free: 19.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0403/0.6055, allocations: 36.79 MB / 0.6534 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/0.6093, allocations: 427.4 kB / 0.6538 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005492/0.6099, allocations: 161 kB / 0.6539 GB, free: 12.96 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.00119/0.6111, allocations: 0.4922 MB / 0.6544 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000868/0.6119, allocations: 442.5 kB / 0.6548 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/0.6267, allocations: 8.435 MB / 0.6631 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-05/0.6268, allocations: 27.91 kB / 0.6631 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.6268, allocations: 0 / 0.6631 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/0.6291, allocations: 1.268 MB / 0.6644 GB, free: 2.137 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008071/0.63, allocations: 151.9 kB / 0.6645 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002682/0.6326, allocations: 379.5 kB / 0.6649 GB, free: 1.617 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/0.6338, allocations: 0.6476 MB / 0.6655 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0239/0.6577, allocations: 11.12 MB / 0.6763 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01658/0.6743, allocations: 10.53 MB / 0.6866 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004996/0.6794, allocations: 3.159 MB / 0.6897 GB, free: 7.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004148/0.6835, allocations: 2.587 MB / 0.6922 GB, free: 5.359 MB / 478.1 MB Notification: Performance of Backend: time 7.41e-07/0.6836, allocations: 0 / 0.6922 GB, free: 5.359 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02526/0.7088, allocations: 11.92 MB / 0.7039 GB, free: 9.281 MB / 494.1 MB Notification: Performance of SimCode: time 0.1643/0.8731, allocations: 14.1 MB / 0.7176 GB, free: 160 MB / 494.1 MB Notification: Performance of Templates: time 0.1166/0.9897, allocations: 110.2 MB / 0.8252 GB, free: 69.68 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)