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.001387/0.001387, allocations: 110.1 kB / 19.7 MB, free: 2.262 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.00154/0.00154, allocations: 211.1 kB / 23 MB, free: 5.113 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.434/1.434, allocations: 207.6 MB / 233.8 MB, free: 9.996 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.01404/0.01404, allocations: 1.962 MB / 288 MB, free: 3.859 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.002486/0.002486, allocations: 85.48 kB / 403 MB, free: 50.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.08539, allocations: 49.7 MB / 452.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002684/0.08808, allocations: 1.537 MB / 454.3 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.08925, allocations: 0.7618 MB / 455 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.636e-05/0.08935, allocations: 4 kB / 455 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.0895, allocations: 63.78 kB / 455.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.08961, allocations: 71.77 kB / 455.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006215/0.09023, allocations: 163.6 kB / 455.3 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.09046, allocations: 167.6 kB / 455.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.09057, allocations: 15.92 kB / 455.5 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.09071, allocations: 79.8 kB / 455.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.09091, allocations: 123.7 kB / 455.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.09094, allocations: 8 kB / 455.7 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.09115, allocations: 163.7 kB / 455.9 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.09122, allocations: 35.91 kB / 455.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.656e-05/0.0913, allocations: 71.58 kB / 456 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.09159, allocations: 223.3 kB / 456.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.0916, allocations: 0 / 456.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.0916, allocations: 3.938 kB / 456.2 MB, free: 2.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.09161, allocations: 0 / 456.2 MB, free: 2.273 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.0007234/0.09233, allocations: 476.7 kB / 456.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.09237, allocations: 15.98 kB / 456.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.619e-05/0.09243, allocations: 16.84 kB / 456.7 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.09269, allocations: 170.2 kB / 456.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.329e-05/0.09275, allocations: 59.97 kB / 456.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.09277, allocations: 8.375 kB / 456.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.09301, allocations: 141.7 kB / 457.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.09302, allocations: 0 / 457.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.09305, allocations: 4 kB / 457.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.09305, allocations: 0 / 457.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.09322, allocations: 99.88 kB / 457.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.09369, allocations: 343.6 kB / 457.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.09391, allocations: 122.6 kB / 457.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.09403, allocations: 84.91 kB / 457.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.09405, allocations: 7.938 kB / 457.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.09431, allocations: 238.5 kB / 458 MB, free: 368 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.09431, allocations: 4 kB / 458 MB, free: 364 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006965/0.09501, allocations: 468.9 kB / 458.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.766e-05/0.09511, allocations: 118.7 kB / 458.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.09533, allocations: 202.7 kB / 458.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.09536, allocations: 29.7 kB / 458.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.553e-05/0.09546, allocations: 116.5 kB / 458.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.09553, allocations: 59.52 kB / 458.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/0.09561, allocations: 49.7 kB / 459 MB, free: 15.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.09578, allocations: 330.8 kB / 459.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.09595, allocations: 88.19 kB / 459.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.09611, allocations: 94.06 kB / 459.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.09651, allocations: 296.8 kB / 459.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.09652, allocations: 0 / 459.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005986/0.09711, allocations: 398.4 kB / 460.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.852e-05/0.09718, allocations: 67.39 kB / 460.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.09719, allocations: 4 kB / 460.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.09721, allocations: 3.984 kB / 460.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.09733, allocations: 20 kB / 460.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.09733, allocations: 3.938 kB / 460.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.09746, allocations: 19.92 kB / 460.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.09748, allocations: 12 kB / 460.3 MB, free: 13.88 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.0002242/0.09771, allocations: 222.8 kB / 460.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.09775, allocations: 23.91 kB / 460.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.09779, allocations: 21.97 kB / 460.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.0978, allocations: 0 / 460.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.09781, allocations: 3.984 kB / 460.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.09781, allocations: 0 / 460.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.09807, allocations: 232.4 kB / 460.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.09807, allocations: 0 / 460.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.606e-05/0.09813, allocations: 8 kB / 460.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.09813, allocations: 0 / 460.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.09815, allocations: 11.98 kB / 460.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.09815, allocations: 4 kB / 460.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09815, allocations: 0 / 460.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.09884, allocations: 468 kB / 461.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.09888, allocations: 27.78 kB / 461.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.09892, allocations: 8 kB / 461.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.09903, allocations: 11.98 kB / 461.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.0991, allocations: 15.98 kB / 461.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.09914, allocations: 19.98 kB / 461.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.09928, allocations: 144.3 kB / 461.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09928, allocations: 0 / 461.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003272/0.09961, allocations: 79.92 kB / 461.6 MB, free: 12.51 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.0002847/0.09989, allocations: 158.7 kB / 461.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005488/0.1004, allocations: 342.6 kB / 462.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1004, allocations: 4 kB / 462.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000324/0.1008, allocations: 242.7 kB / 462.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.101, allocations: 12.25 kB / 462.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007362/0.1017, allocations: 397 kB / 462.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1021, allocations: 0.7278 MB / 463.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.027e-05/0.1022, allocations: 19.44 kB / 463.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1022, allocations: 0 / 463.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Templates: time 0.005663/0.1079, allocations: 2.501 MB / 465.9 MB, free: 8.008 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: 7.117954674875364] Failed to read output from testmodel.py, exit status != 0: 0.1165261899586767 0.13286577900000002 0.037995255000000006 Calling exit ...