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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002808/0.002808, allocations: 180 kB / 7.453 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007743/0.007743, allocations: 1.923 MB / 9.79 MB, free: 464 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9921/0.9921, allocations: 205.2 MB / 215.9 MB, free: 11.08 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008815/0.0008815, allocations: 79.5 kB / 264.4 MB, free: 11.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.939e-06/4.959e-06, allocations: 0 / 318.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1811, allocations: 48.07 MB / 366.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07351/0.2546, allocations: 75.41 MB / 442 MB, free: 7.738 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.2548, allocations: 63.97 kB / 442.1 MB, free: 7.676 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01342/0.2683, allocations: 4.59 MB / 446.7 MB, free: 3.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2683, allocations: 5.781 kB / 446.7 MB, free: 3.117 MB / 330.7 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.0005518/0.2689, allocations: 0.4896 MB / 447.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.2689, allocations: 12.03 kB / 447.2 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.269, allocations: 15.81 kB / 447.2 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.2693, allocations: 239.6 kB / 447.4 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2693, allocations: 4 kB / 447.4 MB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.2693, allocations: 11.98 kB / 447.4 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001644/0.2695, allocations: 87.91 kB / 447.5 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.2697, allocations: 135.5 kB / 447.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2697, allocations: 0 / 447.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.2698, allocations: 0 / 447.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2698, allocations: 7.844 kB / 447.7 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.2703, allocations: 362.1 kB / 448 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.2705, allocations: 134.6 kB / 448.1 MB, free: 1.488 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.2706, allocations: 96.83 kB / 448.2 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.2707, allocations: 4 kB / 448.2 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.2709, allocations: 229.2 kB / 448.5 MB, free: 1.141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.2709, allocations: 0 / 448.5 MB, free: 1.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004336/0.2714, allocations: 237.3 kB / 448.7 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.2715, allocations: 121.2 kB / 448.8 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.2716, allocations: 158.4 kB / 449 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.2716, allocations: 25.7 kB / 449 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.2717, allocations: 104.4 kB / 449.1 MB, free: 472 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.2717, allocations: 47.36 kB / 449.1 MB, free: 424 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.2718, allocations: 8 kB / 449.2 MB, free: 416 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2719, allocations: 326.8 kB / 449.5 MB, free: 80 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.272, allocations: 84.3 kB / 449.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.2722, allocations: 92.38 kB / 449.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.2723, allocations: 88.78 kB / 449.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2723, allocations: 0 / 449.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003942/0.2727, allocations: 274.6 kB / 450 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.2728, allocations: 4 kB / 450 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2728, allocations: 0 / 450 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.2728, allocations: 0 / 450 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.13e-05/0.2729, allocations: 20 kB / 450 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.2729, allocations: 0 / 450 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.273, allocations: 23.83 kB / 450 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.2731, allocations: 19.98 kB / 450.1 MB, free: 15.48 MB / 346.7 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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.2732, allocations: 190 kB / 450.3 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.2733, allocations: 23.72 kB / 450.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.2733, allocations: 17.75 kB / 450.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2733, allocations: 0 / 450.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2733, allocations: 3.984 kB / 450.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2733, allocations: 0 / 450.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.2735, allocations: 221.9 kB / 450.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2735, allocations: 0.6562 kB / 450.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-05/0.2736, allocations: 12 kB / 450.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.2736, allocations: 0 / 450.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.2736, allocations: 19.98 kB / 450.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2736, allocations: 0 / 450.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2736, allocations: 0 / 450.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004104/0.2741, allocations: 298.5 kB / 450.8 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.2741, allocations: 93.7 kB / 450.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.777e-05/0.2742, allocations: 8 kB / 450.9 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.2743, allocations: 19.98 kB / 451 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.2744, allocations: 15.97 kB / 451 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.2744, allocations: 16 kB / 451 MB, free: 14.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.994e-05/0.2745, allocations: 131.2 kB / 451.1 MB, free: 14.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002895/0.2748, allocations: 83.92 kB / 451.2 MB, free: 14.27 MB / 346.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000215/0.275, allocations: 147.2 kB / 451.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006473/0.2757, allocations: 0.9503 MB / 452.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2757, allocations: 0 / 452.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.2759, allocations: 211.3 kB / 452.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.2761, allocations: 19.98 kB / 452.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/0.2765, allocations: 243 kB / 452.8 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.2768, allocations: 0.7507 MB / 453.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.2768, allocations: 3.938 kB / 453.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of Templates: time 0.004941/0.2817, allocations: 2.487 MB / 456 MB, free: 9.387 MB / 346.7 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)