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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008779/0.0008779, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009373/0.0009373, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8902/0.8902, allocations: 158.6 MB / 184.9 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.006954/0.006954, allocations: 1.443 MB / 238.7 MB, free: 13.66 MB / 234.7 MB " [Timeout remaining time 180] Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 304.6 MB, free: 61.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.521e-05, allocations: 3.625 kB / 304.6 MB, free: 61.03 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002236/0.002262, allocations: 1.546 MB / 306.2 MB, free: 60.01 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009287/0.00319, allocations: 0.7188 MB / 306.9 MB, free: 59.55 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.763e-05/0.003248, allocations: 5.406 kB / 306.9 MB, free: 59.54 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.003392, allocations: 63.36 kB / 306.9 MB, free: 59.53 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.003494, allocations: 73.64 kB / 307 MB, free: 59.51 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.003987, allocations: 170.1 kB / 307.2 MB, free: 59.44 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.004181, allocations: 164.7 kB / 307.3 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.413e-05/0.004265, allocations: 13.72 kB / 307.4 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.004404, allocations: 104.2 kB / 307.5 MB, free: 59.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.004587, allocations: 110 kB / 307.6 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.004612, allocations: 9.562 kB / 307.6 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.004804, allocations: 151.6 kB / 307.7 MB, free: 59.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.547e-05/0.004869, allocations: 31.28 kB / 307.8 MB, free: 59.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.599e-05/0.004935, allocations: 49.62 kB / 307.8 MB, free: 59.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.005216, allocations: 240.6 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.005218, allocations: 0 / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.005219, allocations: 0 / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.005223, allocations: 0 / 308 MB, free: 59.16 MB / 282.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.0005483/0.005772, allocations: 0.5604 MB / 308.6 MB, free: 58.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.005807, allocations: 13.05 kB / 308.6 MB, free: 58.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.005867, allocations: 28.81 kB / 308.6 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.006041, allocations: 173.8 kB / 308.8 MB, free: 58.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.006096, allocations: 62.59 kB / 308.9 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.006119, allocations: 7.906 kB / 308.9 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.006303, allocations: 161.5 kB / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.006311, allocations: 192 / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.006325, allocations: 11.67 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.006333, allocations: 1.375 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.566e-05/0.006419, allocations: 99.94 kB / 309.1 MB, free: 58.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.006769, allocations: 350 kB / 309.5 MB, free: 57.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.006908, allocations: 139.2 kB / 309.6 MB, free: 57.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.013e-05/0.006978, allocations: 97.39 kB / 309.7 MB, free: 57.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.006987, allocations: 5.312 kB / 309.7 MB, free: 57.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.007185, allocations: 258.6 kB / 310 MB, free: 57.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.152e-06/0.007186, allocations: 0 / 310 MB, free: 57.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004323/0.007618, allocations: 437.9 kB / 310.4 MB, free: 57.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.007655, allocations: 116.1 kB / 310.5 MB, free: 57.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.007775, allocations: 240.6 kB / 310.8 MB, free: 56.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.007789, allocations: 32.78 kB / 310.8 MB, free: 56.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.007832, allocations: 171.7 kB / 311 MB, free: 56.7 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.007874, allocations: 56.88 kB / 311 MB, free: 56.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.007939, allocations: 49.36 kB / 311.1 MB, free: 56.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.007998, allocations: 0.5056 MB / 311.6 MB, free: 56.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-05/0.008074, allocations: 99.55 kB / 311.7 MB, free: 56.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-05/0.008145, allocations: 96.27 kB / 311.8 MB, free: 55.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.008282, allocations: 217.6 kB / 312 MB, free: 55.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.008284, allocations: 5.125 kB / 312 MB, free: 55.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000273/0.008557, allocations: 357.5 kB / 312.3 MB, free: 55.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.008593, allocations: 74.39 kB / 312.4 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.008597, allocations: 4 kB / 312.4 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.008612, allocations: 1.062 kB / 312.4 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.932e-05/0.008702, allocations: 22.97 kB / 312.4 MB, free: 55.51 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.008707, allocations: 2.297 kB / 312.4 MB, free: 55.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.062e-05/0.008768, allocations: 14.88 kB / 312.4 MB, free: 55.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.008782, allocations: 11.34 kB / 312.4 MB, free: 55.5 MB / 282.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 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.924e-05/0.008872, allocations: 246.1 kB / 312.7 MB, free: 55.26 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.008904, allocations: 36.58 kB / 312.7 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.008936, allocations: 20.09 kB / 312.7 MB, free: 55.24 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.008938, allocations: 5.25 kB / 312.7 MB, free: 55.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.008943, allocations: 0.6094 kB / 312.7 MB, free: 55.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.008946, allocations: 2.312 kB / 312.8 MB, free: 55.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.00906, allocations: 190.2 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.009061, allocations: 0 / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.471e-05/0.009086, allocations: 7.938 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.009089, allocations: 5.062 kB / 313 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.009106, allocations: 17.55 kB / 313 MB, free: 55.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.009107, allocations: 0 / 313 MB, free: 55.05 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.009108, allocations: 0 / 313 MB, free: 55.05 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003227/0.009431, allocations: 436 kB / 313.4 MB, free: 54.78 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.841e-05/0.009449, allocations: 24.81 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.009483, allocations: 13.28 kB / 313.4 MB, free: 54.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.814e-05/0.009532, allocations: 8 kB / 313.4 MB, free: 54.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.009594, allocations: 24.81 kB / 313.5 MB, free: 54.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.009617, allocations: 13.48 kB / 313.5 MB, free: 54.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.593e-05/0.009673, allocations: 170.8 kB / 313.6 MB, free: 54.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009673, allocations: 0 / 313.6 MB, free: 54.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.009882, allocations: 77.62 kB / 313.7 MB, free: 54.6 MB / 282.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001666/0.01005, allocations: 160 kB / 313.9 MB, free: 54.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002794/0.01033, allocations: 390.2 kB / 314.3 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.01033, allocations: 0 / 314.3 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.01047, allocations: 261.4 kB / 314.5 MB, free: 53.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.01064, allocations: 25.05 kB / 314.5 MB, free: 53.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.01106, allocations: 366.9 kB / 314.9 MB, free: 53.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.498e-05/0.01109, allocations: 77.05 kB / 315 MB, free: 53.64 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.074e-05/0.01113, allocations: 14.11 kB / 315 MB, free: 53.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.69e-05/0.01115, allocations: 21.41 kB / 315 MB, free: 53.62 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01115, allocations: 0 / 315 MB, free: 53.62 MB / 282.7 MB Notification: Performance of Templates: time 0.004455/0.01561, allocations: 2.757 MB / 317.8 MB, free: 51.5 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Test.TestPatientController2.makefile [Timeout 660] (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=240 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9182988069951534]