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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008151/0.008152, allocations: 1.917 MB / 15.18 MB, free: 128 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.2 MB / 221.4 MB, free: 7.34 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.000773/0.0007731, allocations: 90.95 kB / 270.1 MB, free: 7.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.635e-05, allocations: 4 kB / 326 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2569, allocations: 48.08 MB / 374.1 MB, free: 44.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09122/0.3482, allocations: 76.17 MB / 450.3 MB, free: 2.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.3484, allocations: 63.97 kB / 450.3 MB, free: 2.656 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.3648, allocations: 5.649 MB / 456 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3648, allocations: 0 / 456 MB, free: 13.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3648, allocations: 4 kB / 456 MB, free: 13.01 MB / 346.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.0007498/0.3656, allocations: 0.5019 MB / 456.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3657, allocations: 8.031 kB / 456.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.3657, allocations: 23.75 kB / 456.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.3661, allocations: 226.7 kB / 456.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.3661, allocations: 41.66 kB / 456.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.3662, allocations: 4 kB / 456.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3664, allocations: 153.6 kB / 456.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.3665, allocations: 0 / 456.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.3665, allocations: 4 kB / 456.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3665, allocations: 4 kB / 456.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.3667, allocations: 103.9 kB / 457 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.3673, allocations: 392.8 kB / 457.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.3675, allocations: 150.6 kB / 457.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.3677, allocations: 127.4 kB / 457.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.3677, allocations: 0 / 457.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/0.368, allocations: 243.8 kB / 457.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.654e-06/0.3681, allocations: 3.938 kB / 457.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006778/0.3687, allocations: 429.8 kB / 458.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.935e-05/0.3688, allocations: 118.7 kB / 458.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.369, allocations: 185.8 kB / 458.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.3691, allocations: 33.7 kB / 458.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.3692, allocations: 112.6 kB / 458.8 MB, free: 9.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.3692, allocations: 59.19 kB / 458.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.3693, allocations: 0 / 458.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3694, allocations: 330.8 kB / 459.2 MB, free: 9.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3695, allocations: 96.2 kB / 459.3 MB, free: 9.453 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3697, allocations: 100.4 kB / 459.4 MB, free: 9.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.3698, allocations: 157.5 kB / 459.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3699, allocations: 0 / 459.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005302/0.3704, allocations: 423 kB / 459.9 MB, free: 8.762 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.262e-05/0.3705, allocations: 67.39 kB / 460 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3705, allocations: 0 / 460 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.3705, allocations: 0 / 460 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.3706, allocations: 23.92 kB / 460 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.3706, allocations: 0 / 460 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.3708, allocations: 27.84 kB / 460 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.3708, allocations: 20 kB / 460.1 MB, free: 8.613 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * 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.0001515/0.371, allocations: 186.6 kB / 460.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.371, allocations: 19.81 kB / 460.3 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.088e-05/0.3711, allocations: 22.31 kB / 460.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3711, allocations: 0 / 460.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3711, allocations: 0 / 460.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3711, allocations: 15.86 kB / 460.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.3713, allocations: 265.3 kB / 460.6 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3713, allocations: 4 kB / 460.6 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.236e-05/0.3714, allocations: 8 kB / 460.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3714, allocations: 0.9375 kB / 460.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.3714, allocations: 15.98 kB / 460.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3714, allocations: 0 / 460.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3715, allocations: 0 / 460.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006577/0.3721, allocations: 0.4895 MB / 461.1 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.3722, allocations: 88.92 kB / 461.2 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.621e-05/0.3722, allocations: 19.98 kB / 461.2 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.3724, allocations: 15.98 kB / 461.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.3724, allocations: 15.92 kB / 461.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.3725, allocations: 19.98 kB / 461.2 MB, free: 7.332 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001087/0.3726, allocations: 149.6 kB / 461.4 MB, free: 7.188 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3726, allocations: 0 / 461.4 MB, free: 7.188 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00034/0.3729, allocations: 91.86 kB / 461.5 MB, free: 7.098 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.0002451/0.3732, allocations: 159 kB / 461.6 MB, free: 6.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.3736, allocations: 398.3 kB / 462 MB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3737, allocations: 0 / 462 MB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.3739, allocations: 276.2 kB / 462.3 MB, free: 6.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.3741, allocations: 19.97 kB / 462.3 MB, free: 6.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004649/0.3746, allocations: 291.2 kB / 462.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.3748, allocations: 0.7392 MB / 463.3 MB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.792e-05/0.3749, allocations: 8.547 kB / 463.3 MB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.3749, allocations: 15.44 kB / 463.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3749, allocations: 0 / 463.4 MB, free: 5.113 MB / 346.7 MB Notification: Performance of Templates: time 0.004863/0.3798, allocations: 2.338 MB / 465.7 MB, free: 2.805 MB / 346.7 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)