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.001269/0.001269, allocations: 102.5 kB / 16.35 MB, free: 5.828 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.001205/0.001205, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.434/1.434, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00968/0.00968, allocations: 1.932 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.001589/0.00159, allocations: 67.89 kB / 331.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2593, allocations: 47.12 MB / 378.4 MB, free: 53.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002562/0.262, allocations: 1.523 MB / 379.9 MB, free: 52.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.263, allocations: 0.7366 MB / 380.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.896e-05/0.2631, allocations: 5.422 kB / 380.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.2633, allocations: 56.78 kB / 380.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.2634, allocations: 70.19 kB / 380.8 MB, free: 52.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.264, allocations: 166.7 kB / 381 MB, free: 52.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002467/0.2642, allocations: 171.4 kB / 381.1 MB, free: 52.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.2643, allocations: 16.89 kB / 381.1 MB, free: 52.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.2645, allocations: 83.02 kB / 381.2 MB, free: 52.51 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.2647, allocations: 121.4 kB / 381.3 MB, free: 52.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.2647, allocations: 9.75 kB / 381.4 MB, free: 52.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.2649, allocations: 156.4 kB / 381.5 MB, free: 52.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.265, allocations: 31.06 kB / 381.5 MB, free: 52.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.2651, allocations: 71.11 kB / 381.6 MB, free: 52.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.2655, allocations: 240.2 kB / 381.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2655, allocations: 1.219 kB / 381.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2655, allocations: 0 / 381.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2655, allocations: 0.75 kB / 381.8 MB, free: 52.42 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.0007212/0.2662, allocations: 0.5273 MB / 382.4 MB, free: 51.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2663, allocations: 13.23 kB / 382.4 MB, free: 51.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.2663, allocations: 24.44 kB / 382.4 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.2666, allocations: 221.7 kB / 382.6 MB, free: 51.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/0.2666, allocations: 35.59 kB / 382.7 MB, free: 51.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.2667, allocations: 7.734 kB / 382.7 MB, free: 51.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.2669, allocations: 138.7 kB / 382.8 MB, free: 51.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.267, allocations: 1.875 kB / 382.8 MB, free: 51.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.267, allocations: 2.125 kB / 382.8 MB, free: 51.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.267, allocations: 1.469 kB / 382.8 MB, free: 51.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.2672, allocations: 95.97 kB / 382.9 MB, free: 51.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004869/0.2677, allocations: 378.7 kB / 383.3 MB, free: 51.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000262/0.268, allocations: 141.6 kB / 383.4 MB, free: 51.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.2681, allocations: 104.2 kB / 383.5 MB, free: 51.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.2682, allocations: 1.906 kB / 383.5 MB, free: 51.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003663/0.2685, allocations: 242.4 kB / 383.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.2685, allocations: 0 / 383.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007928/0.2693, allocations: 476.5 kB / 384.2 MB, free: 51.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.2694, allocations: 117.4 kB / 384.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.2696, allocations: 200.6 kB / 384.5 MB, free: 50.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.2696, allocations: 28.23 kB / 384.5 MB, free: 50.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.2697, allocations: 111.5 kB / 384.7 MB, free: 50.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.2697, allocations: 59.19 kB / 384.7 MB, free: 50.58 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.2698, allocations: 44.88 kB / 384.8 MB, free: 50.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.2699, allocations: 335.4 kB / 385.1 MB, free: 50.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2701, allocations: 90 kB / 385.2 MB, free: 50.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.2702, allocations: 90.94 kB / 385.3 MB, free: 50.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.2706, allocations: 304 kB / 385.6 MB, free: 49.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2706, allocations: 0 / 385.6 MB, free: 49.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005064/0.2711, allocations: 396.7 kB / 385.9 MB, free: 49.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.2712, allocations: 69.17 kB / 386 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2712, allocations: 1.219 kB / 386 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.2712, allocations: 3.938 kB / 386 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.2713, allocations: 17.86 kB / 386 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2713, allocations: 6.688 kB / 386 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.2715, allocations: 21.41 kB / 386.1 MB, free: 49.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.2715, allocations: 7.5 kB / 386.1 MB, free: 49.73 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.0001429/0.2716, allocations: 219.5 kB / 386.3 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.2717, allocations: 24.22 kB / 386.3 MB, free: 49.53 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.784e-05/0.2717, allocations: 21.23 kB / 386.3 MB, free: 49.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2717, allocations: 2 kB / 386.3 MB, free: 49.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2717, allocations: 5.062 kB / 386.3 MB, free: 49.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2718, allocations: 0.75 kB / 386.3 MB, free: 49.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.2719, allocations: 259.9 kB / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.272, allocations: 1.594 kB / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.17e-05/0.272, allocations: 11.19 kB / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.272, allocations: 0 / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.272, allocations: 11.95 kB / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.2721, allocations: 0 / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2721, allocations: 1.156 kB / 386.6 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/0.2727, allocations: 477.5 kB / 387.1 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.2727, allocations: 97.75 kB / 387.2 MB, free: 48.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.624e-05/0.2728, allocations: 13.95 kB / 387.2 MB, free: 48.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.2729, allocations: 11.44 kB / 387.2 MB, free: 48.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.273, allocations: 15.69 kB / 387.2 MB, free: 48.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.273, allocations: 14.69 kB / 387.2 MB, free: 48.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001226/0.2731, allocations: 148.8 kB / 387.4 MB, free: 48.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.2731, allocations: 0 / 387.4 MB, free: 48.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000318/0.2735, allocations: 84.95 kB / 387.5 MB, free: 48.81 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.0001964/0.2737, allocations: 154 kB / 387.6 MB, free: 48.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005001/0.2742, allocations: 405.9 kB / 388 MB, free: 48.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2742, allocations: 1.688 kB / 388 MB, free: 48.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.2744, allocations: 287.4 kB / 388.3 MB, free: 48.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.2746, allocations: 26.62 kB / 388.3 MB, free: 48.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005465/0.2752, allocations: 351 kB / 388.7 MB, free: 48.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.2754, allocations: 0.7308 MB / 389.4 MB, free: 47.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.31e-05/0.2754, allocations: 11.31 kB / 389.4 MB, free: 47.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.2755, allocations: 14.31 kB / 389.4 MB, free: 47.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2755, allocations: 0 / 389.4 MB, free: 47.38 MB / 318.1 MB Notification: Performance of Templates: time 0.006505/0.282, allocations: 2.64 MB / 392.1 MB, free: 47.24 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 -s cvode -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)