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.001468/0.001468, allocations: 174.6 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.0138/0.0138, 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.547/1.547, allocations: 205.2 MB / 221.4 MB, free: 7.336 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.0009714/0.0009714, allocations: 84.3 kB / 270.1 MB, free: 7.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.129e-05/3.154e-05, allocations: 4 kB / 326 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2507, allocations: 48.07 MB / 374.1 MB, free: 44.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09333/0.3441, allocations: 76.16 MB / 450.2 MB, free: 2.711 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.3443, allocations: 63.97 kB / 450.3 MB, free: 2.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01403/0.3583, allocations: 4.925 MB / 455.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3584, allocations: 0 / 455.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3584, allocations: 4 kB / 455.2 MB, free: 13.73 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.0006157/0.359, allocations: 498.1 kB / 455.7 MB, free: 13.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3591, allocations: 8.031 kB / 455.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.662e-05/0.3591, allocations: 23.81 kB / 455.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.3594, allocations: 231.4 kB / 456 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.3595, allocations: 33.64 kB / 456 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.3596, allocations: 15.95 kB / 456 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.3598, allocations: 137.6 kB / 456.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.3598, allocations: 0 / 456.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.3598, allocations: 4 kB / 456.2 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3599, allocations: 3.984 kB / 456.2 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.36, allocations: 95.91 kB / 456.3 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005572/0.3606, allocations: 392.8 kB / 456.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.3608, allocations: 138.6 kB / 456.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.361, allocations: 108.8 kB / 456.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.361, allocations: 4.031 kB / 456.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.3613, allocations: 239.8 kB / 457.1 MB, free: 11.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3613, allocations: 4 kB / 457.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005948/0.3619, allocations: 401.5 kB / 457.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.362, allocations: 114.8 kB / 457.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.3622, allocations: 166.4 kB / 457.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.3622, allocations: 37.64 kB / 457.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.306e-05/0.3623, allocations: 112.5 kB / 457.9 MB, free: 10.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.3623, allocations: 55.25 kB / 458 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.3623, allocations: 8 kB / 458 MB, free: 10.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.3625, allocations: 326.8 kB / 458.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.3626, allocations: 96.2 kB / 458.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3628, allocations: 88.44 kB / 458.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.3629, allocations: 149.5 kB / 458.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3629, allocations: 0 / 458.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004885/0.3634, allocations: 401.6 kB / 459 MB, free: 9.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.694e-05/0.3635, allocations: 63.39 kB / 459.1 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3635, allocations: 4 kB / 459.1 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.3635, allocations: 7.984 kB / 459.1 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.3636, allocations: 26.45 kB / 459.1 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3637, allocations: 4 kB / 459.1 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.3638, allocations: 23.83 kB / 459.2 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.3638, allocations: 12 kB / 459.2 MB, free: 9.484 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.0001359/0.364, allocations: 190.1 kB / 459.4 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/0.364, allocations: 19.81 kB / 459.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.3641, allocations: 21.64 kB / 459.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3641, allocations: 0 / 459.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3641, allocations: 0 / 459.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3641, allocations: 0 / 459.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.3643, allocations: 261.4 kB / 459.7 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3643, allocations: 0 / 459.7 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.435e-05/0.3644, allocations: 15.94 kB / 459.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3644, allocations: 0 / 459.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.3644, allocations: 23.92 kB / 459.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3644, allocations: 0 / 459.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3644, allocations: 0 / 459.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000586/0.365, allocations: 481 kB / 460.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-05/0.3651, allocations: 96.84 kB / 460.3 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.3651, allocations: 8 kB / 460.3 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3653, allocations: 19.98 kB / 460.3 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.3653, allocations: 19.98 kB / 460.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.3654, allocations: 11.98 kB / 460.3 MB, free: 8.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.92e-05/0.3655, allocations: 139.2 kB / 460.5 MB, free: 8.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3655, allocations: 3.938 kB / 460.5 MB, free: 8.086 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003441/0.3658, allocations: 79.94 kB / 460.5 MB, free: 8.008 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.0002591/0.3661, allocations: 164.6 kB / 460.7 MB, free: 7.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004229/0.3665, allocations: 390.4 kB / 461.1 MB, free: 7.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3665, allocations: 4 kB / 461.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3668, allocations: 271.5 kB / 461.3 MB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.367, allocations: 20.47 kB / 461.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004514/0.3674, allocations: 258.8 kB / 461.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.3678, allocations: 0.7367 MB / 462.4 MB, free: 6.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.937e-05/0.3678, allocations: 8.562 kB / 462.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/0.3679, allocations: 11.44 kB / 462.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3679, allocations: 0 / 462.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of Templates: time 0.004996/0.3729, allocations: 2.327 MB / 464.7 MB, free: 3.773 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)