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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005763/0.005763, allocations: 170.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008644/0.008644, allocations: 1.932 MB / 17.79 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.4 MB / 224.4 MB, free: 12 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.0009621/0.0009622, allocations: 94.17 kB / 273.3 MB, free: 11.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003028, allocations: 8 kB / 331.8 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09083, allocations: 48.09 MB / 379.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2646/0.3555, allocations: 76.25 MB / 456.2 MB, free: 11.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3558, allocations: 67.97 kB / 456.2 MB, free: 11.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01422/0.37, allocations: 4.939 MB / 461.2 MB, free: 6.324 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3701, allocations: 0 / 461.2 MB, free: 6.324 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3701, allocations: 4 kB / 461.2 MB, free: 6.32 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.0007375/0.3708, allocations: 0.5142 MB / 461.7 MB, free: 5.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3709, allocations: 8.031 kB / 461.7 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.3709, allocations: 15.91 kB / 461.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.3713, allocations: 219.4 kB / 461.9 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.3714, allocations: 41.62 kB / 462 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3714, allocations: 16.89 kB / 462 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.3717, allocations: 145.6 kB / 462.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3718, allocations: 3.938 kB / 462.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.3718, allocations: 8 kB / 462.1 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3718, allocations: 0 / 462.1 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.3721, allocations: 103.9 kB / 462.2 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005928/0.3727, allocations: 396.8 kB / 462.6 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.373, allocations: 150.5 kB / 462.8 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.373, allocations: 7.984 kB / 462.8 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003478/0.3734, allocations: 250.6 kB / 463 MB, free: 4.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3734, allocations: 0 / 463 MB, free: 4.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009506/0.3743, allocations: 0.6645 MB / 463.7 MB, free: 3.551 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/0.3744, allocations: 110.8 kB / 463.8 MB, free: 3.418 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3746, allocations: 174.5 kB / 464 MB, free: 3.238 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3746, allocations: 37.69 kB / 464 MB, free: 3.195 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.377e-05/0.3747, allocations: 104.4 kB / 464.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.3748, allocations: 51.34 kB / 464.2 MB, free: 3.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.3748, allocations: 8 kB / 464.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3749, allocations: 334.8 kB / 464.5 MB, free: 2.695 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.3751, allocations: 100.1 kB / 464.6 MB, free: 2.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3753, allocations: 104.4 kB / 464.7 MB, free: 2.496 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.3755, allocations: 157.4 kB / 464.8 MB, free: 2.332 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3755, allocations: 0 / 464.8 MB, free: 2.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006219/0.3761, allocations: 421.5 kB / 465.3 MB, free: 1.902 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.411e-05/0.3762, allocations: 67.39 kB / 465.3 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3762, allocations: 0 / 465.3 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3763, allocations: 4 kB / 465.3 MB, free: 1.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.3764, allocations: 16 kB / 465.3 MB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3764, allocations: 4 kB / 465.3 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.3765, allocations: 23.92 kB / 465.4 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.3766, allocations: 11.98 kB / 465.4 MB, free: 1.766 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000202/0.3768, allocations: 214.9 kB / 465.6 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.3768, allocations: 19.81 kB / 465.6 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.3769, allocations: 25.88 kB / 465.6 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3769, allocations: 0 / 465.6 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.3769, allocations: 0 / 465.6 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3769, allocations: 3.984 kB / 465.6 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.3772, allocations: 257.4 kB / 465.9 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3772, allocations: 0 / 465.9 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.513e-05/0.3772, allocations: 11.98 kB / 465.9 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3773, allocations: 0 / 465.9 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.3773, allocations: 12 kB / 465.9 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3773, allocations: 0 / 465.9 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3773, allocations: 7.984 kB / 465.9 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007406/0.3781, allocations: 0.5004 MB / 466.4 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.3781, allocations: 96.8 kB / 466.5 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.498e-05/0.3782, allocations: 8 kB / 466.5 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3783, allocations: 15.98 kB / 466.5 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.3784, allocations: 23.97 kB / 466.6 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.3784, allocations: 15.98 kB / 466.6 MB, free: 464 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.3786, allocations: 139.2 kB / 466.7 MB, free: 324 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3786, allocations: 0 / 466.7 MB, free: 324 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.379, allocations: 87.92 kB / 466.8 MB, free: 236 kB / 330.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) * 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 (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.0002904/0.3793, allocations: 155.1 kB / 467 MB, free: 68 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.3799, allocations: 398.7 kB / 467.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3799, allocations: 3.938 kB / 467.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.3802, allocations: 282.7 kB / 467.6 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.3804, allocations: 17.48 kB / 467.6 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006234/0.381, allocations: 378.4 kB / 468 MB, free: 14.94 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3813, allocations: 0.7319 MB / 468.7 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.68e-05/0.3814, allocations: 8.547 kB / 468.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.869e-05/0.3814, allocations: 15.44 kB / 468.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3814, allocations: 0 / 468.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of Templates: time 0.005195/0.3866, allocations: 2.334 MB / 471.1 MB, free: 11.83 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)