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.001222/0.001222, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001145/0.001145, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.192/1.192, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008105/0.008105, 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.001504/0.001504, allocations: 69.53 kB / 378.9 MB, free: 51.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06409/0.06561, allocations: 47.14 MB / 426.1 MB, free: 19.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002113/0.06775, allocations: 1.531 MB / 427.6 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009159/0.06868, allocations: 0.7409 MB / 428.3 MB, free: 17.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.06877, allocations: 0 / 428.3 MB, free: 17.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.0689, allocations: 55.84 kB / 428.4 MB, free: 17.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.471e-05/0.069, allocations: 71.72 kB / 428.5 MB, free: 17.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.06953, allocations: 175.6 kB / 428.6 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.06972, allocations: 171.6 kB / 428.8 MB, free: 17.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.975e-05/0.0698, allocations: 16 kB / 428.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.5e-05/0.0699, allocations: 91.72 kB / 428.9 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.07006, allocations: 115.6 kB / 429 MB, free: 17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.07009, allocations: 8 kB / 429 MB, free: 16.99 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.07028, allocations: 155.8 kB / 429.2 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.168e-05/0.07035, allocations: 35.91 kB / 429.2 MB, free: 16.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.645e-05/0.07043, allocations: 67.53 kB / 429.3 MB, free: 16.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.07069, allocations: 227.3 kB / 429.5 MB, free: 16.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.07071, allocations: 7.938 kB / 429.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.07071, allocations: 0 / 429.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.07073, allocations: 4 kB / 429.5 MB, free: 16.5 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.0006508/0.07138, allocations: 0.5343 MB / 430 MB, free: 15.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.07142, allocations: 11.89 kB / 430 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.975e-05/0.07149, allocations: 20.84 kB / 430.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.07175, allocations: 240 kB / 430.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.07181, allocations: 30.27 kB / 430.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.07184, allocations: 12.38 kB / 430.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.07209, allocations: 137.7 kB / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.07211, allocations: 4 kB / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.07213, allocations: 0 / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.07214, allocations: 4 kB / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.07231, allocations: 91.94 kB / 430.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/0.07276, allocations: 376.6 kB / 430.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.073, allocations: 142.6 kB / 431.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.07313, allocations: 100.8 kB / 431.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.07316, allocations: 7.984 kB / 431.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.07346, allocations: 246.6 kB / 431.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.07347, allocations: 0 / 431.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006303/0.0741, allocations: 476.9 kB / 431.9 MB, free: 13.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.07416, allocations: 118.8 kB / 432 MB, free: 13.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.0743, allocations: 194.6 kB / 432.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.07433, allocations: 29.7 kB / 432.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.07438, allocations: 112.6 kB / 432.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.07443, allocations: 59.53 kB / 432.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/0.0745, allocations: 41.7 kB / 432.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.212e-05/0.07457, allocations: 338.8 kB / 432.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.07471, allocations: 88.19 kB / 432.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.07483, allocations: 89.36 kB / 432.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.07509, allocations: 300.7 kB / 433.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.0751, allocations: 3.984 kB / 433.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003857/0.07549, allocations: 394.5 kB / 433.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.07554, allocations: 67.39 kB / 433.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.07555, allocations: 3.938 kB / 433.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.07557, allocations: 4 kB / 433.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.07567, allocations: 23.86 kB / 433.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.07569, allocations: 0 / 433.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.0758, allocations: 23.88 kB / 433.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.07583, allocations: 12 kB / 433.8 MB, free: 11.91 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.0001129/0.07595, allocations: 222.9 kB / 434 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.07598, allocations: 19.91 kB / 434 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.07602, allocations: 21.88 kB / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.07603, allocations: 0 / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.07603, allocations: 0 / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.07606, allocations: 93 kB / 434.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.863e-05/0.07611, allocations: 12 kB / 434.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.07621, allocations: 19.92 kB / 434.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.07627, allocations: 15.98 kB / 434.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005052/0.07678, allocations: 0.616 MB / 434.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004604/0.07726, allocations: 0.6 MB / 435.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001745/0.07744, allocations: 165.2 kB / 435.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.414e-05/0.07752, allocations: 156.3 kB / 435.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of Backend: time 7.22e-07/0.07753, allocations: 0 / 435.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000642/0.07818, allocations: 429.1 kB / 436.1 MB, free: 9.418 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005613/0.07875, allocations: 0.8467 MB / 437 MB, free: 8.488 MB / 318.1 MB Notification: Performance of Templates: time 0.004737/0.0835, allocations: 2.769 MB / 439.7 MB, free: 5.719 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)