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.007645/0.007645, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001931/0.001931, allocations: 196.8 kB / 16.79 MB, free: 6.254 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.344/1.344, allocations: 205.1 MB / 222.7 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008774/0.008774, allocations: 1.932 MB / 271.9 MB, free: 3.391 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.001388/0.001388, allocations: 63.91 kB / 329.8 MB, free: 33.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06765/0.06905, allocations: 47.13 MB / 376.9 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002642/0.07172, allocations: 1.598 MB / 378.5 MB, free: 448 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.07306, allocations: 0.7801 MB / 379.3 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.118e-05/0.07314, allocations: 3.938 kB / 379.3 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.07332, allocations: 59.91 kB / 379.4 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.07344, allocations: 71.77 kB / 379.5 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.07389, allocations: 119.8 kB / 379.6 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.07407, allocations: 151.6 kB / 379.7 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.108e-05/0.07417, allocations: 12 kB / 379.7 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.07429, allocations: 71.8 kB / 379.8 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.07446, allocations: 107.7 kB / 379.9 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.0745, allocations: 4 kB / 379.9 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.07471, allocations: 155.8 kB / 380.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.07479, allocations: 35.91 kB / 380.1 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.533e-05/0.07488, allocations: 59.61 kB / 380.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.07509, allocations: 160 kB / 380.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.0751, allocations: 0 / 380.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.07511, allocations: 0 / 380.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.07512, allocations: 0 / 380.3 MB, free: 14.66 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.0008017/0.07593, allocations: 0.541 MB / 380.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.07597, allocations: 8.031 kB / 380.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.933e-05/0.07605, allocations: 20.75 kB / 380.9 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.07628, allocations: 212 kB / 381.1 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.07635, allocations: 42.25 kB / 381.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.07638, allocations: 4.375 kB / 381.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.07668, allocations: 137.7 kB / 381.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.07669, allocations: 0 / 381.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.07672, allocations: 8 kB / 381.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.07673, allocations: 0 / 381.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.07694, allocations: 99.94 kB / 381.4 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.07749, allocations: 376.4 kB / 381.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.07778, allocations: 142.6 kB / 381.9 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.07795, allocations: 112.8 kB / 382 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.07797, allocations: 0 / 382 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000352/0.07833, allocations: 242.8 kB / 382.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.07834, allocations: 0 / 382.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007544/0.0791, allocations: 471 kB / 382.7 MB, free: 12.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.07918, allocations: 118.8 kB / 382.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.07936, allocations: 198.7 kB / 383 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.07939, allocations: 33.7 kB / 383 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.046e-05/0.07947, allocations: 108.6 kB / 383.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.07953, allocations: 55.25 kB / 383.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.593e-05/0.07961, allocations: 45.7 kB / 383.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.0798, allocations: 334.8 kB / 383.6 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.07997, allocations: 92.19 kB / 383.7 MB, free: 11.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.08013, allocations: 104.4 kB / 383.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/0.08051, allocations: 292.8 kB / 384 MB, free: 10.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.08052, allocations: 0 / 384 MB, free: 10.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000529/0.08106, allocations: 390.3 kB / 384.4 MB, free: 10.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.073e-05/0.08113, allocations: 71.39 kB / 384.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.08114, allocations: 0 / 384.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.08116, allocations: 0 / 384.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.08129, allocations: 23.92 kB / 384.5 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.0813, allocations: 4 kB / 384.5 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.08144, allocations: 23.83 kB / 384.5 MB, free: 10.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.08147, allocations: 11.94 kB / 384.6 MB, free: 10.09 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.0001809/0.08165, allocations: 222.9 kB / 384.8 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.0817, allocations: 19.81 kB / 384.8 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.08174, allocations: 13.88 kB / 384.8 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.08175, allocations: 4 kB / 384.8 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.08176, allocations: 4 kB / 384.8 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.08177, allocations: 3.984 kB / 384.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.08199, allocations: 253.4 kB / 385.1 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.082, allocations: 0 / 385.1 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.699e-05/0.08207, allocations: 15.92 kB / 385.1 MB, free: 9.488 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.08208, allocations: 0 / 385.1 MB, free: 9.488 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.0821, allocations: 12 kB / 385.1 MB, free: 9.477 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.08211, allocations: 0 / 385.1 MB, free: 9.477 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08212, allocations: 0 / 385.1 MB, free: 9.477 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006708/0.08279, allocations: 472.5 kB / 385.6 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.08285, allocations: 96.8 kB / 385.6 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/0.0829, allocations: 11.98 kB / 385.7 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.08302, allocations: 15.98 kB / 385.7 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.0831, allocations: 15.98 kB / 385.7 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.08314, allocations: 11.98 kB / 385.7 MB, free: 8.816 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.08326, allocations: 144.3 kB / 385.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08326, allocations: 0 / 385.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.08358, allocations: 80 kB / 385.9 MB, free: 8.598 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.0002251/0.08381, allocations: 162.7 kB / 386.1 MB, free: 8.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.08433, allocations: 402.6 kB / 386.5 MB, free: 8.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.08435, allocations: 0 / 386.5 MB, free: 8.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.08464, allocations: 286.7 kB / 386.8 MB, free: 7.707 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.08489, allocations: 27.98 kB / 386.8 MB, free: 7.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006738/0.08557, allocations: 429.9 kB / 387.2 MB, free: 7.23 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.08589, allocations: 0.728 MB / 387.9 MB, free: 6.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.08593, allocations: 15.38 kB / 387.9 MB, free: 6.461 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.08593, allocations: 0 / 387.9 MB, free: 6.461 MB / 286.1 MB Notification: Performance of Templates: time 0.004319/0.09026, allocations: 2.485 MB / 390.4 MB, free: 3.973 MB / 286.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)