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/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.001871/0.001871, allocations: 79.03 kB / 19.76 MB, free: 2.031 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.001877/0.001877, allocations: 157.2 kB / 23.01 MB, free: 4.945 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.347/1.347, allocations: 158.6 MB / 184.8 MB, free: 6.18 MB / 174.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.01432/0.01432, allocations: 1.436 MB / 238.4 MB, free: 1.684 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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") [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.002236/0.002236, allocations: 71.91 kB / 353.4 MB, free: 19.22 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08366, allocations: 49.68 MB / 403.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002763/0.08642, allocations: 1.487 MB / 404.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.08768, allocations: 0.6997 MB / 405.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.08774, allocations: 0 / 405.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.08787, allocations: 55.73 kB / 405.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.08799, allocations: 63.8 kB / 405.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005703/0.08856, allocations: 175.5 kB / 405.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.0888, allocations: 159.6 kB / 405.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.248e-05/0.08889, allocations: 15.92 kB / 405.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.08902, allocations: 79.8 kB / 405.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.08921, allocations: 107.7 kB / 405.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.08924, allocations: 8 kB / 405.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.08948, allocations: 147.8 kB / 406.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-05/0.08955, allocations: 39.89 kB / 406.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.08963, allocations: 47.73 kB / 406.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.08997, allocations: 223.3 kB / 406.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.08997, allocations: 3.938 kB / 406.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.08997, allocations: 0 / 406.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.08998, allocations: 0 / 406.4 MB, free: 14.09 MB / 334.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.0008295/0.09081, allocations: 464.8 kB / 406.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.09084, allocations: 11.98 kB / 406.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.09091, allocations: 24.84 kB / 406.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.0912, allocations: 160.1 kB / 407 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-05/0.09128, allocations: 59.97 kB / 407.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.0913, allocations: 12.36 kB / 407.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.09164, allocations: 201.1 kB / 407.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.09165, allocations: 0 / 407.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.09166, allocations: 4 kB / 407.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.09167, allocations: 4 kB / 407.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.09192, allocations: 155.3 kB / 407.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.09243, allocations: 300.2 kB / 407.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.09277, allocations: 178 kB / 407.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.09297, allocations: 144.2 kB / 408 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.09298, allocations: 0 / 408 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/0.09339, allocations: 302.1 kB / 408.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.09339, allocations: 0 / 408.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008828/0.09428, allocations: 0.5816 MB / 408.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.09437, allocations: 114.8 kB / 409 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.09454, allocations: 184 kB / 409.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.09457, allocations: 33.7 kB / 409.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.09465, allocations: 108.6 kB / 409.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.09471, allocations: 59.52 kB / 409.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.389e-05/0.09479, allocations: 45.7 kB / 409.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.09495, allocations: 338.8 kB / 409.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.09516, allocations: 151.5 kB / 409.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.09535, allocations: 151.8 kB / 410.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.09574, allocations: 292.5 kB / 410.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.09575, allocations: 0 / 410.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006356/0.09638, allocations: 461.6 kB / 410.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/0.09645, allocations: 67.39 kB / 410.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.09645, allocations: 3.984 kB / 410.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.09647, allocations: 7.984 kB / 410.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.09658, allocations: 15.94 kB / 410.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.09658, allocations: 0 / 410.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.09672, allocations: 27.94 kB / 410.9 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.09674, allocations: 8 kB / 410.9 MB, free: 9.094 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.0002101/0.09695, allocations: 227.1 kB / 411.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.09699, allocations: 19.91 kB / 411.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.855e-05/0.09703, allocations: 13.97 kB / 411.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.09704, allocations: 4 kB / 411.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.09704, allocations: 0 / 411.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.09705, allocations: 3.984 kB / 411.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.09723, allocations: 173.1 kB / 411.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.09723, allocations: 0 / 411.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.0973, allocations: 11.98 kB / 411.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.0973, allocations: 4 kB / 411.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.09732, allocations: 8 kB / 411.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09732, allocations: 0 / 411.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.09733, allocations: 3.984 kB / 411.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000711/0.09804, allocations: 0.515 MB / 411.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.09807, allocations: 19.84 kB / 411.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.09811, allocations: 7.984 kB / 411.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.09822, allocations: 23.98 kB / 412 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.8e-05/0.09829, allocations: 19.97 kB / 412 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.09832, allocations: 8 kB / 412 MB, free: 7.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.09845, allocations: 143.2 kB / 412.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.09845, allocations: 0 / 412.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003062/0.09875, allocations: 79.88 kB / 412.2 MB, free: 7.715 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.0002309/0.09898, allocations: 154.8 kB / 412.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006272/0.09961, allocations: 477.6 kB / 412.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.09961, allocations: 0 / 412.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.09995, allocations: 297.9 kB / 413.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.1002, allocations: 23.88 kB / 413.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006662/0.1009, allocations: 406.4 kB / 413.5 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.101, allocations: 110.5 kB / 413.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.276e-05/0.101, allocations: 12.48 kB / 413.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.318e-05/0.101, allocations: 16.5 kB / 413.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.101, allocations: 0 / 413.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of Templates: time 0.006399/0.1074, allocations: 2.732 MB / 416.4 MB, free: 3.355 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Test.TestPatientController1.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.158392820972949] Failed to read output from testmodel.py, exit status != 0: 0.11485324299428612 0.130407084 0.037186694 Calling exit ...