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.001426/0.001426, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 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.002246/0.002246, allocations: 212.8 kB / 22.24 MB, free: 5.242 MB / 14.72 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 1.526/1.526, allocations: 207.7 MB / 233.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.0104/0.0104, allocations: 1.97 MB / 287.3 MB, free: 3.672 MB / 222.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 73.11 kB / 402.3 MB, free: 50.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.08358, allocations: 49.7 MB / 452 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002215/0.0858, allocations: 1.51 MB / 453.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009935/0.08679, allocations: 0.6918 MB / 454.2 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.775e-05/0.08686, allocations: 3.938 kB / 454.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.08699, allocations: 63.84 kB / 454.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.291e-05/0.08708, allocations: 71.7 kB / 454.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.08762, allocations: 163.6 kB / 454.5 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.08779, allocations: 167.6 kB / 454.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.079e-05/0.08788, allocations: 11.94 kB / 454.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.08798, allocations: 83.73 kB / 454.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.08814, allocations: 119.7 kB / 454.8 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.08816, allocations: 8 kB / 454.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.08834, allocations: 147.8 kB / 455 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.0884, allocations: 39.84 kB / 455 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.292e-05/0.08846, allocations: 51.67 kB / 455.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.08871, allocations: 239.2 kB / 455.3 MB, free: 2.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08872, allocations: 3.938 kB / 455.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.08872, allocations: 0 / 455.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.08872, allocations: 4 kB / 455.3 MB, free: 2.215 MB / 318.1 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.0007154/0.08944, allocations: 478.7 kB / 455.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.08947, allocations: 11.98 kB / 455.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.873e-05/0.08953, allocations: 20.84 kB / 455.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.08975, allocations: 166.2 kB / 456 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.669e-05/0.08981, allocations: 55.97 kB / 456 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.08983, allocations: 16.36 kB / 456.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.09008, allocations: 209.1 kB / 456.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.09009, allocations: 0 / 456.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.09011, allocations: 7.984 kB / 456.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.09011, allocations: 0 / 456.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.0903, allocations: 155.3 kB / 456.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003805/0.09068, allocations: 296.3 kB / 456.7 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.09091, allocations: 178 kB / 456.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.09104, allocations: 152.2 kB / 457 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.09106, allocations: 0 / 457 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.09136, allocations: 310 kB / 457.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.09136, allocations: 0 / 457.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009253/0.09228, allocations: 0.5895 MB / 457.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.337e-05/0.09238, allocations: 118.8 kB / 458 MB, free: 15.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.09259, allocations: 198.7 kB / 458.2 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.09262, allocations: 29.7 kB / 458.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.715e-05/0.09271, allocations: 112.6 kB / 458.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.09277, allocations: 59.47 kB / 458.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.09285, allocations: 45.7 kB / 458.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.09304, allocations: 338.8 kB / 458.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.09325, allocations: 151.6 kB / 459 MB, free: 14.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.09346, allocations: 161.5 kB / 459.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000383/0.09384, allocations: 304.7 kB / 459.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.09384, allocations: 0 / 459.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000628/0.09447, allocations: 477.9 kB / 459.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.679e-05/0.09454, allocations: 75.39 kB / 460 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.09454, allocations: 0 / 460 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.09456, allocations: 0 / 460 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.09467, allocations: 23.92 kB / 460 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.09467, allocations: 0 / 460 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.09479, allocations: 23.94 kB / 460 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.09482, allocations: 8 kB / 460 MB, free: 13.12 MB / 334.1 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 0.0002048/0.09502, allocations: 222.8 kB / 460.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.09506, allocations: 23.91 kB / 460.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.0951, allocations: 21.97 kB / 460.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.0951, allocations: 0 / 460.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.0951, allocations: 0 / 460.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.09511, allocations: 3.984 kB / 460.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.09531, allocations: 181.1 kB / 460.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.09531, allocations: 0 / 460.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.378e-05/0.09536, allocations: 11.94 kB / 460.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.09536, allocations: 0 / 460.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.09539, allocations: 15.98 kB / 460.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.09539, allocations: 0 / 460.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.09539, allocations: 4 kB / 460.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007328/0.09612, allocations: 0.5228 MB / 461 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.09615, allocations: 27.77 kB / 461 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.0962, allocations: 12 kB / 461 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.09631, allocations: 11.98 kB / 461.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.09637, allocations: 11.98 kB / 461.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.0964, allocations: 15.98 kB / 461.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001312/0.09653, allocations: 143.2 kB / 461.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09653, allocations: 0 / 461.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.09683, allocations: 83.92 kB / 461.3 MB, free: 11.71 MB / 334.1 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.000242/0.09708, allocations: 156.6 kB / 461.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006244/0.0977, allocations: 469.5 kB / 461.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.0977, allocations: 7.938 kB / 461.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.09802, allocations: 298 kB / 462.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.09825, allocations: 23.92 kB / 462.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006756/0.09892, allocations: 422.7 kB / 462.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.09904, allocations: 114.4 kB / 462.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.281e-05/0.09909, allocations: 8.484 kB / 462.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.09912, allocations: 15.44 kB / 462.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.09912, allocations: 3.938 kB / 462.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of Templates: time 0.006852/0.106, allocations: 2.875 MB / 465.7 MB, free: 7.188 MB / 334.1 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=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.6776338294148445] Failed to read output from testmodel.py, exit status != 0: 0.11421876773238182 0.129906408 0.038116332 Calling exit ...