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: 79.42 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.001633/0.001633, allocations: 155.8 kB / 23.01 MB, free: 4.941 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.319/1.319, allocations: 158.6 MB / 184.8 MB, free: 6.191 MB / 174.1 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.01437/0.01437, allocations: 1.432 MB / 238.4 MB, free: 1.695 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.002244/0.002244, allocations: 71.89 kB / 353.4 MB, free: 19.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07816/0.0804, allocations: 49.68 MB / 403.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002733/0.08314, allocations: 1.498 MB / 404.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.08441, allocations: 0.6996 MB / 405.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.08447, allocations: 3.938 kB / 405.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.08462, allocations: 63.84 kB / 405.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.08475, allocations: 79.7 kB / 405.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.08529, allocations: 159.6 kB / 405.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000233/0.08553, allocations: 163.7 kB / 405.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.874e-05/0.0856, allocations: 11.94 kB / 405.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.08574, allocations: 87.73 kB / 405.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.08595, allocations: 123.7 kB / 406 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.08598, allocations: 12 kB / 406 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002318/0.08621, allocations: 143.9 kB / 406.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.08628, allocations: 35.89 kB / 406.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.36e-05/0.08636, allocations: 51.67 kB / 406.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.08669, allocations: 239.2 kB / 406.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.0867, allocations: 0 / 406.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.0867, allocations: 0 / 406.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.0867, allocations: 0 / 406.4 MB, free: 14.02 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.0008098/0.08751, allocations: 484.6 kB / 406.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.08755, allocations: 11.98 kB / 406.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.003e-05/0.08762, allocations: 20.84 kB / 406.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.08789, allocations: 162.3 kB / 407.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.08796, allocations: 55.97 kB / 407.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.08799, allocations: 16.31 kB / 407.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.08831, allocations: 197.1 kB / 407.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.08831, allocations: 0 / 407.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.08834, allocations: 15.98 kB / 407.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.08835, allocations: 4 kB / 407.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.08859, allocations: 155.3 kB / 407.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004951/0.08909, allocations: 296.2 kB / 407.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.0894, allocations: 185.9 kB / 408 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.0896, allocations: 144.2 kB / 408.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.08962, allocations: 0 / 408.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.09002, allocations: 306.1 kB / 408.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.09002, allocations: 96 / 408.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009228/0.09094, allocations: 0.5894 MB / 409 MB, free: 11.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.09105, allocations: 118.8 kB / 409.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.09127, allocations: 198.7 kB / 409.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.0913, allocations: 33.7 kB / 409.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.375e-05/0.09138, allocations: 108.6 kB / 409.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.16e-05/0.09148, allocations: 63.52 kB / 409.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.98e-05/0.09156, allocations: 45.64 kB / 409.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.09174, allocations: 342.8 kB / 409.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.09197, allocations: 151.6 kB / 410.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.09218, allocations: 157 kB / 410.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004105/0.09259, allocations: 309.4 kB / 410.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.0926, allocations: 0 / 410.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000654/0.09325, allocations: 473.9 kB / 411 MB, free: 9.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/0.09333, allocations: 67.39 kB / 411.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.09333, allocations: 0 / 411.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.09335, allocations: 4 kB / 411.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.09346, allocations: 19.98 kB / 411.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.09347, allocations: 3.938 kB / 411.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.0936, allocations: 23.94 kB / 411.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.09362, allocations: 7.938 kB / 411.1 MB, free: 8.926 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.0002382/0.09385, allocations: 227.1 kB / 411.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.966e-05/0.09389, allocations: 19.91 kB / 411.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.09394, allocations: 17.97 kB / 411.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.09394, allocations: 4 kB / 411.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.09395, allocations: 0 / 411.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.09395, allocations: 3.984 kB / 411.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002104/0.09416, allocations: 181.1 kB / 411.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.09416, allocations: 0 / 411.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.795e-05/0.09422, allocations: 12 kB / 411.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.09423, allocations: 7.984 kB / 411.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.09426, allocations: 11.92 kB / 411.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.09426, allocations: 0 / 411.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.09426, allocations: 0 / 411.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007384/0.095, allocations: 0.519 MB / 412.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.09503, allocations: 27.78 kB / 412.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.09507, allocations: 12 kB / 412.1 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.09518, allocations: 15.98 kB / 412.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.09525, allocations: 15.98 kB / 412.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.09528, allocations: 11.98 kB / 412.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.09541, allocations: 147.2 kB / 412.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.09541, allocations: 0 / 412.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000305/0.09571, allocations: 75.92 kB / 412.4 MB, free: 7.527 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.0002341/0.09595, allocations: 164.6 kB / 412.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000599/0.09655, allocations: 469.8 kB / 413 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.09655, allocations: 0 / 413 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.09686, allocations: 305.9 kB / 413.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.09709, allocations: 32.17 kB / 413.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007233/0.09782, allocations: 418.6 kB / 413.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.09794, allocations: 122.5 kB / 413.9 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.17e-05/0.09798, allocations: 8.484 kB / 413.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.525e-05/0.09802, allocations: 12.5 kB / 413.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09802, allocations: 0 / 413.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of Templates: time 0.007019/0.105, allocations: 2.738 MB / 416.6 MB, free: 3.121 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 -s ida -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.180636159027927] Failed to read output from testmodel.py, exit status != 0: 0.11267969000618905 0.12827181 0.038562935 Calling exit ...