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.00104/0.00104, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.001035/0.001035, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.142/1.142, 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.007658/0.007658, allocations: 1.947 MB / 272.5 MB, free: 10.05 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.001337/0.001337, allocations: 68.77 kB / 378.9 MB, free: 51.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05963/0.06098, allocations: 47.14 MB / 426 MB, free: 19.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001863/0.06287, allocations: 1.526 MB / 427.6 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007864/0.06367, allocations: 0.7448 MB / 428.3 MB, free: 17.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.145e-05/0.06373, allocations: 0 / 428.3 MB, free: 17.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.06384, allocations: 63.8 kB / 428.4 MB, free: 17.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.77e-05/0.06393, allocations: 71.75 kB / 428.5 MB, free: 17.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004243/0.06436, allocations: 163.6 kB / 428.6 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.06452, allocations: 175.6 kB / 428.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.381e-05/0.0646, allocations: 8 kB / 428.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.749e-05/0.06469, allocations: 83.73 kB / 428.9 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.06482, allocations: 123.6 kB / 429 MB, free: 16.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.06485, allocations: 12 kB / 429 MB, free: 16.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.065, allocations: 159.8 kB / 429.2 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.06506, allocations: 31.91 kB / 429.2 MB, free: 16.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.752e-05/0.06512, allocations: 71.59 kB / 429.3 MB, free: 16.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.06532, allocations: 231.9 kB / 429.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.06533, allocations: 0 / 429.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.06533, allocations: 3.938 kB / 429.5 MB, free: 16.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.06534, allocations: 0 / 429.5 MB, free: 16.49 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.0005504/0.0659, allocations: 0.5255 MB / 430 MB, free: 15.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.563e-05/0.06593, allocations: 11.89 kB / 430 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.76e-05/0.06598, allocations: 24.73 kB / 430.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.06616, allocations: 227.8 kB / 430.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.06621, allocations: 38.27 kB / 430.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.06623, allocations: 8.359 kB / 430.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.06644, allocations: 146.9 kB / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.06645, allocations: 0 / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.06647, allocations: 0 / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.06648, allocations: 0 / 430.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.06662, allocations: 91.95 kB / 430.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.06699, allocations: 380.4 kB / 430.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.06719, allocations: 146.6 kB / 431.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.06731, allocations: 100.8 kB / 431.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.832e-06/0.06732, allocations: 0 / 431.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.06756, allocations: 258.4 kB / 431.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.06757, allocations: 0 / 431.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005384/0.06811, allocations: 468.8 kB / 431.9 MB, free: 13.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.06816, allocations: 110.8 kB / 432 MB, free: 13.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.06826, allocations: 198.6 kB / 432.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.06828, allocations: 29.7 kB / 432.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.442e-05/0.06832, allocations: 112.6 kB / 432.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.06836, allocations: 59.19 kB / 432.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/0.06843, allocations: 49.7 kB / 432.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.06848, allocations: 334.8 kB / 432.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.0686, allocations: 92.19 kB / 432.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.06871, allocations: 88.44 kB / 432.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.06895, allocations: 296.8 kB / 433.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.06896, allocations: 0 / 433.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003566/0.06932, allocations: 390.4 kB / 433.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.06936, allocations: 71.39 kB / 433.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.06937, allocations: 3.938 kB / 433.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.06939, allocations: 0 / 433.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.901e-05/0.06948, allocations: 23.92 kB / 433.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.06949, allocations: 3.938 kB / 433.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.0696, allocations: 23.83 kB / 433.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.06962, allocations: 8 kB / 433.7 MB, free: 11.92 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 9.951e-05/0.06973, allocations: 218.9 kB / 433.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.06976, allocations: 23.72 kB / 434 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.06979, allocations: 25.86 kB / 434 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.0698, allocations: 4 kB / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.06981, allocations: 7.922 kB / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.06982, allocations: 0 / 434 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.06993, allocations: 253.5 kB / 434.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.06994, allocations: 0 / 434.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-05/0.06999, allocations: 11.98 kB / 434.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.07, allocations: 0 / 434.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.07002, allocations: 12 kB / 434.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.07003, allocations: 4 kB / 434.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.07003, allocations: 0 / 434.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.07046, allocations: 463.9 kB / 434.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.426e-05/0.07049, allocations: 92.86 kB / 434.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.07053, allocations: 12 kB / 434.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.07062, allocations: 11.98 kB / 434.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.07068, allocations: 27.91 kB / 434.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.07071, allocations: 8 kB / 434.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.499e-05/0.07078, allocations: 148.3 kB / 435 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07078, allocations: 0 / 435 MB, free: 10.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.07102, allocations: 79.98 kB / 435.1 MB, free: 10.42 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001527/0.07118, allocations: 155.1 kB / 435.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.07155, allocations: 406.9 kB / 435.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.07156, allocations: 4 kB / 435.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.07176, allocations: 290.6 kB / 435.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.07195, allocations: 16.31 kB / 436 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004178/0.07238, allocations: 393 kB / 436.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.07251, allocations: 0.7278 MB / 437.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/0.07254, allocations: 19.44 kB / 437.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.07255, allocations: 0 / 437.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of Templates: time 0.002954/0.07551, allocations: 2.523 MB / 439.6 MB, free: 5.785 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)