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.001277/0.001277, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01611/0.01611, allocations: 1.926 MB / 10 MB, free: 0.5977 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.3 MB / 216.2 MB, free: 15.89 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.0008143/0.0008143, allocations: 90.52 kB / 264.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.158e-05/1.16e-05, allocations: 7.984 kB / 319 MB, free: 19.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.083, allocations: 48.09 MB / 367.1 MB, free: 3.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.3894, allocations: 75.49 MB / 442.6 MB, free: 2.477 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.3897, allocations: 66 kB / 442.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01373/0.4034, allocations: 4.898 MB / 447.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4034, allocations: 0 / 447.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.4035, allocations: 4 kB / 447.6 MB, free: 14.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.0006154/0.4041, allocations: 0.4929 MB / 448.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4041, allocations: 12.03 kB / 448.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.25e-05/0.4042, allocations: 15.81 kB / 448.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.4045, allocations: 239.5 kB / 448.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.4045, allocations: 4 kB / 448.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.4046, allocations: 4 kB / 448.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001724/0.4048, allocations: 90.98 kB / 448.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.405, allocations: 132.4 kB / 448.6 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.405, allocations: 4 kB / 448.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.405, allocations: 7.922 kB / 448.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.405, allocations: 4 kB / 448.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004982/0.4055, allocations: 355.4 kB / 448.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.4057, allocations: 134.9 kB / 449.1 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.4058, allocations: 109.3 kB / 449.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.4059, allocations: 0 / 449.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.4062, allocations: 225.4 kB / 449.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.4062, allocations: 0 / 449.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006557/0.4068, allocations: 348.5 kB / 449.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.4069, allocations: 110.1 kB / 449.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.4071, allocations: 167.9 kB / 450 MB, free: 11.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.4071, allocations: 29.7 kB / 450 MB, free: 11.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.4072, allocations: 113 kB / 450.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.182e-05/0.4072, allocations: 52.73 kB / 450.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.4072, allocations: 0 / 450.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4074, allocations: 328.3 kB / 450.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.4075, allocations: 85.77 kB / 450.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.4076, allocations: 88.12 kB / 450.7 MB, free: 11.35 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.4078, allocations: 87.39 kB / 450.8 MB, free: 11.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.4078, allocations: 8 kB / 450.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000474/0.4083, allocations: 341 kB / 451.1 MB, free: 11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.147e-05/0.4083, allocations: 67.38 kB / 451.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4083, allocations: 0 / 451.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4083, allocations: 0 / 451.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.4085, allocations: 19.19 kB / 451.2 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.4085, allocations: 0 / 451.2 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.4086, allocations: 19.89 kB / 451.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.4087, allocations: 16 kB / 451.2 MB, free: 10.87 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 () * 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.0001405/0.4088, allocations: 189.5 kB / 451.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.4088, allocations: 23.25 kB / 451.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/0.4089, allocations: 13.47 kB / 451.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4089, allocations: 4 kB / 451.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4089, allocations: 7.922 kB / 451.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4089, allocations: 0 / 451.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.4091, allocations: 221.1 kB / 451.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4091, allocations: 4 kB / 451.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.513e-05/0.4092, allocations: 12 kB / 451.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/0.4092, allocations: 3.953 kB / 451.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.4092, allocations: 11.36 kB / 451.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4092, allocations: 4 kB / 451.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4092, allocations: 0 / 451.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.4098, allocations: 412.1 kB / 452.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-05/0.4099, allocations: 92.86 kB / 452.2 MB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.087e-05/0.4099, allocations: 19.94 kB / 452.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.4101, allocations: 15.98 kB / 452.2 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.4102, allocations: 21.36 kB / 452.3 MB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.4102, allocations: 23.23 kB / 452.3 MB, free: 9.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.927e-05/0.4103, allocations: 136 kB / 452.4 MB, free: 9.719 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4103, allocations: 0 / 452.4 MB, free: 9.719 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.4107, allocations: 76 kB / 452.5 MB, free: 9.645 MB / 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) * 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.0002403/0.4109, allocations: 161.1 kB / 452.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007911/0.4117, allocations: 1.032 MB / 453.7 MB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4117, allocations: 0 / 453.7 MB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.4119, allocations: 265.6 kB / 453.9 MB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.4121, allocations: 19.81 kB / 454 MB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004294/0.4126, allocations: 265 kB / 454.2 MB, free: 8.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.4129, allocations: 0.7273 MB / 454.9 MB, free: 7.27 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.475e-05/0.4129, allocations: 8.547 kB / 455 MB, free: 7.262 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.689e-05/0.4129, allocations: 11.44 kB / 455 MB, free: 7.25 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.413, allocations: 4 kB / 455 MB, free: 7.246 MB / 330.7 MB Notification: Performance of Templates: time 0.005316/0.4183, allocations: 2.319 MB / 457.3 MB, free: 4.945 MB / 330.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)