Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario6.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.Scenario6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario6") translateModel(MEV.Simulations.OnOffControl.Scenario6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 112.7 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.001155/0.001155, allocations: 190.6 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.151/1.151, 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.007643/0.007643, allocations: 1.935 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.001377/0.001377, allocations: 69.12 kB / 379 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05873/0.06012, allocations: 47.13 MB / 426.1 MB, free: 19.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario6): time 0.004643/0.06479, allocations: 6.273 MB / 432.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.06694, allocations: 1.473 MB / 433.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004729/0.06742, allocations: 15.94 kB / 433.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003191/0.06777, allocations: 146.5 kB / 434 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006242/0.0684, allocations: 337.1 kB / 434.3 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.06899, allocations: 327.4 kB / 434.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003937/0.07294, allocations: 7.68 MB / 442.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.0749, allocations: 2.421 MB / 444.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00271/0.07762, allocations: 2.929 MB / 447.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003408/0.08104, allocations: 3.167 MB / 450.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008459/0.0819, allocations: 0.6289 MB / 451.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.08306, allocations: 0.6757 MB / 452.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.08409, allocations: 1.421 MB / 453.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002946/0.08704, allocations: 3.162 MB / 456.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005656/0.09271, allocations: 7.49 MB / 464.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09272, allocations: 0 / 464.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09273, allocations: 3.938 kB / 464.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.048e-05/0.09282, allocations: 0 / 464.2 MB, free: 13.54 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.0138/0.1066, allocations: 7.181 MB / 471.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1067, allocations: 15.89 kB / 471.4 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008208/0.1075, allocations: 0.5723 MB / 472 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/0.111, allocations: 2.633 MB / 474.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004355/0.1115, allocations: 0.6317 MB / 475.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006909/0.1122, allocations: 479.7 kB / 475.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008727/0.1209, allocations: 5.978 MB / 481.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.487e-05/0.121, allocations: 0 / 481.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004011/0.1214, allocations: 187.9 kB / 481.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.026e-05/0.1215, allocations: 104 kB / 482 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009016/0.1305, allocations: 5.869 MB / 487.9 MB, free: 5.598 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.02581/0.1563, allocations: 17.15 MB / 0.4932 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009526/0.1659, allocations: 6.817 MB / 0.4998 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004488/0.1704, allocations: 3.334 MB / 0.5031 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001892/0.1706, allocations: 71.48 kB / 0.5032 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004863/0.1755, allocations: 3.579 MB / 0.5066 GB, free: 6.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=481): time 5.781e-06/0.1755, allocations: 0 / 0.5066 GB, free: 6.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=506): time 0.2448/0.4203, allocations: 36.71 MB / 0.5425 GB, free: 94.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.4204, allocations: 163.5 kB / 0.5427 GB, free: 94.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003318/0.4237, allocations: 3.708 MB / 0.5463 GB, free: 92.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003041/0.424, allocations: 149.2 kB / 0.5464 GB, free: 92.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008357/0.4248, allocations: 1.641 MB / 0.548 GB, free: 90.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.4256, allocations: 1.669 MB / 0.5496 GB, free: 89.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009895/0.4266, allocations: 0.9148 MB / 0.5505 GB, free: 88.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.058e-05/0.4266, allocations: 305.1 kB / 0.5508 GB, free: 88.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00344/0.4301, allocations: 2.791 MB / 0.5536 GB, free: 85.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003684/0.4338, allocations: 3.475 MB / 0.557 GB, free: 81.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00715/0.4409, allocations: 6.424 MB / 0.5632 GB, free: 74.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.4409, allocations: 4 kB / 0.5632 GB, free: 74.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=639) (initialization): time 0.01142/0.4524, allocations: 9.006 MB / 0.572 GB, free: 65.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.4524, allocations: 13.2 kB / 0.572 GB, free: 65.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.4524, allocations: 16 kB / 0.5721 GB, free: 65.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02884/0.4813, allocations: 7.333 MB / 0.5792 GB, free: 58.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00293/0.4842, allocations: 0.8425 MB / 0.58 GB, free: 57.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.4946, allocations: 12.55 MB / 0.5923 GB, free: 44.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/0.4978, allocations: 463.3 kB / 0.5927 GB, free: 44.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/0.4981, allocations: 176 kB / 0.5929 GB, free: 44.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004751/0.5028, allocations: 3.928 MB / 0.5967 GB, free: 40.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003436/0.5063, allocations: 3.215 MB / 0.5999 GB, free: 36.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006572/0.5129, allocations: 5.914 MB / 0.6057 GB, free: 30.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.024e-05/0.5129, allocations: 4 kB / 0.6057 GB, free: 30.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=639) (initialization_lambda0): time 0.01481/0.5277, allocations: 9.481 MB / 0.6149 GB, free: 20.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5277, allocations: 12.94 kB / 0.6149 GB, free: 20.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.5278, allocations: 12 kB / 0.6149 GB, free: 20.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008918/0.5367, allocations: 3.786 MB / 0.6186 GB, free: 17.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/0.5395, allocations: 0.8619 MB / 0.6195 GB, free: 16.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04117/0.5807, allocations: 37.06 MB / 0.6557 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.5843, allocations: 431.3 kB / 0.6561 GB, free: 9.383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003186/0.5846, allocations: 164 kB / 0.6562 GB, free: 9.223 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (420): * Single equations (assignments): 409 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0009525/0.5856, allocations: 0.4962 MB / 0.6567 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005739/0.5861, allocations: 442.5 kB / 0.6571 GB, free: 8.281 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/0.6003, allocations: 8.42 MB / 0.6654 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-05/0.6004, allocations: 27.91 kB / 0.6654 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.6004, allocations: 3.938 kB / 0.6654 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/0.6024, allocations: 1.268 MB / 0.6666 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006366/0.603, allocations: 155.9 kB / 0.6668 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002526/0.6056, allocations: 379.4 kB / 0.6671 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001096/0.6067, allocations: 0.6554 MB / 0.6678 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02308/0.6298, allocations: 11.31 MB / 0.6788 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01444/0.6442, allocations: 10.66 MB / 0.6892 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00427/0.6485, allocations: 3.229 MB / 0.6924 GB, free: 3.801 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003203/0.6517, allocations: 2.578 MB / 0.6949 GB, free: 1.238 MB / 478.1 MB Notification: Performance of Backend: time 2.8e-07/0.6517, allocations: 0 / 0.6949 GB, free: 1.238 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02256/0.6743, allocations: 11.95 MB / 0.7066 GB, free: 5.141 MB / 494.1 MB Notification: Performance of SimCode: time 0.158/0.8323, allocations: 14.16 MB / 0.7204 GB, free: 157.5 MB / 494.1 MB Notification: Performance of Templates: time 0.1068/0.9391, allocations: 111 MB / 0.8288 GB, free: 62.66 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario6.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario6.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario6.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario6.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario6.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario6.pipe 2>&1)