Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005433/0.005433, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001284/0.001284, allocations: 193.2 kB / 16.79 MB, free: 5.809 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.3/1.3, allocations: 205.1 MB / 222.7 MB, free: 4.934 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008346/0.008346, allocations: 1.931 MB / 271.9 MB, free: 3.77 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.001392/0.001393, allocations: 67.91 kB / 329.8 MB, free: 33.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07007/0.07147, allocations: 47.14 MB / 376.9 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002547/0.07406, allocations: 1.59 MB / 378.5 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.07526, allocations: 0.7801 MB / 379.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.916e-05/0.07533, allocations: 3.938 kB / 379.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.07549, allocations: 51.91 kB / 379.4 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.614e-05/0.07559, allocations: 59.8 kB / 379.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.07604, allocations: 123.8 kB / 379.5 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.07621, allocations: 147.6 kB / 379.7 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.325e-05/0.0763, allocations: 12 kB / 379.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.572e-05/0.0764, allocations: 67.8 kB / 379.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.07657, allocations: 99.7 kB / 379.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.07661, allocations: 11.94 kB / 379.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.07682, allocations: 147.8 kB / 380 MB, free: 15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.07689, allocations: 35.91 kB / 380.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.749e-05/0.07699, allocations: 63.58 kB / 380.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.07719, allocations: 160 kB / 380.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.07721, allocations: 0 / 380.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.07721, allocations: 0 / 380.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.07722, allocations: 0 / 380.3 MB, free: 14.75 MB / 286.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.0007723/0.078, allocations: 0.5139 MB / 380.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.07804, allocations: 12.03 kB / 380.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.753e-05/0.0781, allocations: 20.75 kB / 380.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.07832, allocations: 208.8 kB / 381 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.07838, allocations: 34.25 kB / 381.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.07841, allocations: 12.38 kB / 381.1 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.07869, allocations: 137.7 kB / 381.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.07871, allocations: 0 / 381.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.07873, allocations: 4 kB / 381.2 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.07874, allocations: 0 / 381.2 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.07893, allocations: 91.95 kB / 381.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005039/0.07945, allocations: 380.5 kB / 381.7 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.07972, allocations: 130.6 kB / 381.8 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.07988, allocations: 108.8 kB / 381.9 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.0799, allocations: 0 / 381.9 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003269/0.08024, allocations: 230.8 kB / 382.1 MB, free: 12.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.522e-06/0.08025, allocations: 0 / 382.1 MB, free: 12.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007355/0.08099, allocations: 463 kB / 382.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.08108, allocations: 118.8 kB / 382.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.08124, allocations: 187.3 kB / 382.9 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.08128, allocations: 29.7 kB / 382.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.08134, allocations: 104.6 kB / 383 MB, free: 11.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.08141, allocations: 63.12 kB / 383.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.08149, allocations: 45.7 kB / 383.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.08161, allocations: 330.8 kB / 383.4 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.08178, allocations: 92.12 kB / 383.5 MB, free: 11.22 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.08193, allocations: 88.42 kB / 383.6 MB, free: 11.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.08227, allocations: 289.7 kB / 383.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.08228, allocations: 0 / 383.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004982/0.08278, allocations: 377 kB / 384.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.248e-05/0.08285, allocations: 75.38 kB / 384.3 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.08286, allocations: 0 / 384.3 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.338e-06/0.08287, allocations: 3.938 kB / 384.3 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.08299, allocations: 15.94 kB / 384.4 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.08301, allocations: 11.98 kB / 384.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.08314, allocations: 12 kB / 384.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.08317, allocations: 11.98 kB / 384.4 MB, free: 10.3 MB / 286.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.0001679/0.08334, allocations: 210.9 kB / 384.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.08338, allocations: 23.72 kB / 384.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.08343, allocations: 21.86 kB / 384.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.08344, allocations: 4 kB / 384.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.08345, allocations: 0 / 384.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.08345, allocations: 4 kB / 384.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.08366, allocations: 249.4 kB / 384.9 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.08367, allocations: 3.984 kB / 384.9 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.559e-05/0.08373, allocations: 15.94 kB / 384.9 MB, free: 9.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.08374, allocations: 4 kB / 384.9 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.08376, allocations: 4 kB / 384.9 MB, free: 9.695 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.08377, allocations: 3.984 kB / 384.9 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.08378, allocations: 0 / 384.9 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005977/0.08438, allocations: 460.5 kB / 385.4 MB, free: 9.211 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.08445, allocations: 96.86 kB / 385.5 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.0845, allocations: 4 kB / 385.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.08462, allocations: 15.98 kB / 385.5 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.08469, allocations: 19.97 kB / 385.5 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.08472, allocations: 8 kB / 385.5 MB, free: 9.051 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.08483, allocations: 139.2 kB / 385.7 MB, free: 8.914 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08484, allocations: 3.938 kB / 385.7 MB, free: 8.91 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.08513, allocations: 79.98 kB / 385.7 MB, free: 8.832 MB / 286.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.0002257/0.08536, allocations: 163.5 kB / 385.9 MB, free: 8.664 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005187/0.08589, allocations: 401.6 kB / 386.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.0859, allocations: 0 / 386.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002827/0.08619, allocations: 287 kB / 386.6 MB, free: 7.945 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.08643, allocations: 19.98 kB / 386.6 MB, free: 7.926 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006117/0.08705, allocations: 414.4 kB / 387 MB, free: 7.492 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.08733, allocations: 0.7241 MB / 387.7 MB, free: 6.742 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.08738, allocations: 19.42 kB / 387.7 MB, free: 6.723 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.08738, allocations: 3.938 kB / 387.7 MB, free: 6.719 MB / 286.1 MB Notification: Performance of Templates: time 0.004007/0.09139, allocations: 2.422 MB / 390.2 MB, free: 4.293 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)