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.005866/0.005866, allocations: 170.3 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.01029/0.01029, allocations: 1.934 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.497/1.497, allocations: 205.4 MB / 224.4 MB, free: 11.91 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.0008177/0.0008176, allocations: 94.11 kB / 273.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 8 kB / 331.8 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09194, allocations: 48.1 MB / 379.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2957/0.3877, allocations: 76.26 MB / 456.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.388, allocations: 67.97 kB / 456.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01686/0.4049, allocations: 5.664 MB / 461.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4049, allocations: 0 / 461.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.405, allocations: 4 kB / 461.9 MB, free: 5.551 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.0006855/0.4057, allocations: 0.5298 MB / 462.5 MB, free: 4.961 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4057, allocations: 8.031 kB / 462.5 MB, free: 4.953 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.4058, allocations: 20.75 kB / 462.5 MB, free: 4.934 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.4061, allocations: 226.7 kB / 462.7 MB, free: 4.672 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.4062, allocations: 37.59 kB / 462.7 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.946e-05/0.4062, allocations: 15.98 kB / 462.8 MB, free: 4.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.4065, allocations: 157.6 kB / 462.9 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4065, allocations: 4 kB / 462.9 MB, free: 4.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.4066, allocations: 4 kB / 462.9 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.4066, allocations: 4 kB / 462.9 MB, free: 4.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.4068, allocations: 119.9 kB / 463 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006263/0.4074, allocations: 392.8 kB / 463.4 MB, free: 3.891 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.4077, allocations: 166.5 kB / 463.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.4078, allocations: 0 / 463.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003404/0.4081, allocations: 246.7 kB / 463.8 MB, free: 3.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.4081, allocations: 4 kB / 463.8 MB, free: 3.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001019/0.4091, allocations: 0.6881 MB / 464.5 MB, free: 2.703 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.4092, allocations: 118.8 kB / 464.6 MB, free: 2.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.4094, allocations: 185.8 kB / 464.8 MB, free: 2.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.4094, allocations: 37.58 kB / 464.9 MB, free: 2.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.4095, allocations: 116.4 kB / 465 MB, free: 2.211 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.4096, allocations: 59.34 kB / 465 MB, free: 2.152 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.333e-05/0.4096, allocations: 4 kB / 465 MB, free: 2.148 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4097, allocations: 330.8 kB / 465.4 MB, free: 1.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.4099, allocations: 100.2 kB / 465.4 MB, free: 1.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.4101, allocations: 108.4 kB / 465.6 MB, free: 1.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.4102, allocations: 164.4 kB / 465.7 MB, free: 1.438 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4103, allocations: 4 kB / 465.7 MB, free: 1.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005853/0.4109, allocations: 443 kB / 466.2 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.4109, allocations: 63.39 kB / 466.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.4109, allocations: 0 / 466.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4109, allocations: 0 / 466.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.4111, allocations: 27.92 kB / 466.2 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.4111, allocations: 0 / 466.2 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.4112, allocations: 23.89 kB / 466.3 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.4113, allocations: 19.95 kB / 466.3 MB, free: 0.8398 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.0001694/0.4114, allocations: 211 kB / 466.5 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.4115, allocations: 19.81 kB / 466.5 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.86e-05/0.4115, allocations: 17.86 kB / 466.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.4115, allocations: 4 kB / 466.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4116, allocations: 0 / 466.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4116, allocations: 0 / 466.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.4118, allocations: 273.3 kB / 466.8 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4118, allocations: 0 / 466.8 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.604e-05/0.4119, allocations: 15.92 kB / 466.8 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.4119, allocations: 7.984 kB / 466.8 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.4119, allocations: 8 kB / 466.8 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4119, allocations: 3.938 kB / 466.8 MB, free: 224 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4119, allocations: 4 kB / 466.8 MB, free: 220 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007174/0.4127, allocations: 0.5241 MB / 467.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.907e-05/0.4128, allocations: 92.86 kB / 467.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.4128, allocations: 12 kB / 467.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.4129, allocations: 15.92 kB / 467.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.413, allocations: 23.95 kB / 467.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-05/0.4131, allocations: 16 kB / 467.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001142/0.4132, allocations: 148.3 kB / 467.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4132, allocations: 7.938 kB / 467.7 MB, free: 15.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003574/0.4136, allocations: 83.98 kB / 467.8 MB, free: 15.25 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) * 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.0002359/0.4138, allocations: 155 kB / 467.9 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004991/0.4143, allocations: 405.8 kB / 468.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4143, allocations: 0 / 468.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.4146, allocations: 290.7 kB / 468.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.4148, allocations: 20.12 kB / 468.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007169/0.4155, allocations: 395 kB / 469 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.4159, allocations: 0.7358 MB / 469.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.023e-05/0.4159, allocations: 8.562 kB / 469.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.416, allocations: 11.44 kB / 469.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.416, allocations: 4 kB / 469.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of Templates: time 0.005244/0.4212, allocations: 2.334 MB / 472.1 MB, free: 10.81 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)