Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 117.5 kB / 16.42 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.001175/0.001175, allocations: 188.9 kB / 17.35 MB, free: 5.629 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.178/1.178, 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.00811/0.00811, allocations: 1.942 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.001368/0.001368, allocations: 64 kB / 378.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05854/0.05992, allocations: 47.13 MB / 426.1 MB, free: 19.94 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001904/0.06184, allocations: 1.523 MB / 427.6 MB, free: 18.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008814/0.06274, allocations: 0.7487 MB / 428.3 MB, free: 17.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.347e-05/0.06281, allocations: 0 / 428.3 MB, free: 17.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.06294, allocations: 59.8 kB / 428.4 MB, free: 17.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.193e-05/0.06303, allocations: 71.77 kB / 428.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.0635, allocations: 171.5 kB / 428.6 MB, free: 17.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.06367, allocations: 167.6 kB / 428.8 MB, free: 17.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.107e-05/0.06376, allocations: 15.97 kB / 428.8 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.387e-05/0.06386, allocations: 87.73 kB / 428.9 MB, free: 17.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.06402, allocations: 115.7 kB / 429 MB, free: 16.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.06405, allocations: 8 kB / 429 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.06422, allocations: 163.8 kB / 429.2 MB, free: 16.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.276e-05/0.06428, allocations: 35.91 kB / 429.2 MB, free: 16.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.295e-05/0.06435, allocations: 63.61 kB / 429.3 MB, free: 16.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.06457, allocations: 235.9 kB / 429.5 MB, free: 16.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.06458, allocations: 0 / 429.5 MB, free: 16.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.06459, allocations: 0 / 429.5 MB, free: 16.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.0646, allocations: 8 kB / 429.5 MB, free: 16.46 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005829/0.06518, allocations: 0.5191 MB / 430 MB, free: 15.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.06522, allocations: 11.89 kB / 430 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.991e-05/0.06528, allocations: 20.75 kB / 430.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.06544, allocations: 239.8 kB / 430.3 MB, free: 15.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.06549, allocations: 30.27 kB / 430.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.06552, allocations: 16.38 kB / 430.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.06574, allocations: 137.7 kB / 430.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.06575, allocations: 0 / 430.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.06577, allocations: 3.984 kB / 430.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.06578, allocations: 4 kB / 430.5 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.06593, allocations: 87.95 kB / 430.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000359/0.0663, allocations: 384.4 kB / 430.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.06651, allocations: 138.6 kB / 431.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.06664, allocations: 100.8 kB / 431.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.06666, allocations: 4 kB / 431.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.0669, allocations: 254.4 kB / 431.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.06691, allocations: 0 / 431.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005764/0.0675, allocations: 472.8 kB / 431.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.06754, allocations: 114.8 kB / 432 MB, free: 13.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.06765, allocations: 198.6 kB / 432.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.06767, allocations: 33.64 kB / 432.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.06771, allocations: 108.6 kB / 432.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.06775, allocations: 59.27 kB / 432.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.599e-05/0.06781, allocations: 41.7 kB / 432.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.884e-05/0.06786, allocations: 338.7 kB / 432.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.06798, allocations: 88.19 kB / 432.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.0681, allocations: 89.36 kB / 432.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.06833, allocations: 296.8 kB / 433.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.06834, allocations: 0 / 433.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003618/0.06871, allocations: 394.5 kB / 433.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.06875, allocations: 71.38 kB / 433.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.06876, allocations: 0 / 433.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.06878, allocations: 7.938 kB / 433.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.481e-05/0.06888, allocations: 15.94 kB / 433.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.06889, allocations: 3.984 kB / 433.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.06901, allocations: 23.83 kB / 433.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.06903, allocations: 8 kB / 433.7 MB, free: 11.9 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.06915, allocations: 226.9 kB / 434 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.06918, allocations: 23.72 kB / 434 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.855e-05/0.06922, allocations: 25.86 kB / 434 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.06922, allocations: 0 / 434 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.06923, allocations: 0 / 434 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.263e-05/0.06925, allocations: 88.92 kB / 434.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.0693, allocations: 15.94 kB / 434.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.06941, allocations: 15.92 kB / 434.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.06947, allocations: 19.97 kB / 434.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004788/0.06996, allocations: 0.6083 MB / 434.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004402/0.07041, allocations: 0.5999 MB / 435.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001508/0.07057, allocations: 169.1 kB / 435.5 MB, free: 10 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.723e-05/0.07064, allocations: 148.3 kB / 435.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of Backend: time 2e-07/0.07065, allocations: 8 kB / 435.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000579/0.07123, allocations: 425.3 kB / 436.1 MB, free: 9.402 MB / 318.1 MB Notification: Performance of SimCode: time 0.0004229/0.07167, allocations: 0.8431 MB / 436.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of Templates: time 0.004436/0.07612, allocations: 2.855 MB / 439.8 MB, free: 5.621 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)