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.001544/0.001544, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001708/0.001708, allocations: 216.2 kB / 22.99 MB, free: 4.914 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.403/1.403, allocations: 207.7 MB / 233.8 MB, free: 9.805 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.008597/0.008597, allocations: 1.974 MB / 288.1 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.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.002188/0.002188, allocations: 71.19 kB / 403 MB, free: 50.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06461/0.0668, allocations: 49.71 MB / 452.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001971/0.06877, allocations: 1.494 MB / 454.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008745/0.06964, allocations: 0.6957 MB / 454.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.486e-05/0.0697, allocations: 3.938 kB / 454.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.06981, allocations: 51.84 kB / 455 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.352e-05/0.06989, allocations: 67.73 kB / 455 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.07034, allocations: 171.6 kB / 455.2 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.07049, allocations: 159.6 kB / 455.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.121e-05/0.07057, allocations: 15.92 kB / 455.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.924e-05/0.07066, allocations: 79.75 kB / 455.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.0708, allocations: 103.7 kB / 455.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.07083, allocations: 16 kB / 455.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.07099, allocations: 143.9 kB / 455.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.202e-05/0.07104, allocations: 35.84 kB / 455.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.778e-05/0.0711, allocations: 43.73 kB / 455.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.07132, allocations: 235.2 kB / 456 MB, free: 2.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.07132, allocations: 0 / 456 MB, free: 2.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.07133, allocations: 0 / 456 MB, free: 2.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.07133, allocations: 0 / 456 MB, free: 2.281 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.0005934/0.07192, allocations: 468.8 kB / 456.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.744e-05/0.07195, allocations: 11.98 kB / 456.5 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.072, allocations: 16.84 kB / 456.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.0722, allocations: 164.6 kB / 456.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.07225, allocations: 63.97 kB / 456.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.07227, allocations: 16.23 kB / 456.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.07249, allocations: 197.1 kB / 456.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.0725, allocations: 3.984 kB / 456.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.07252, allocations: 0 / 456.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.07252, allocations: 4 kB / 456.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.07269, allocations: 155.3 kB / 457.1 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.07305, allocations: 292.3 kB / 457.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.07327, allocations: 177.9 kB / 457.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.0734, allocations: 140.2 kB / 457.7 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.07341, allocations: 4 kB / 457.7 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.07367, allocations: 313.9 kB / 458 MB, free: 88 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.07367, allocations: 96 / 458 MB, free: 88 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009022/0.07457, allocations: 0.5778 MB / 458.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.07466, allocations: 114.8 kB / 458.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.07482, allocations: 183.3 kB / 458.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.07485, allocations: 29.7 kB / 458.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.07493, allocations: 112.5 kB / 459 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.821e-05/0.07499, allocations: 59.44 kB / 459.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.07506, allocations: 45.7 kB / 459.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.07522, allocations: 338.8 kB / 459.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.07542, allocations: 147.6 kB / 459.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.07562, allocations: 151.8 kB / 459.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003726/0.07599, allocations: 297.7 kB / 460 MB, free: 13.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.07599, allocations: 0 / 460 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006088/0.0766, allocations: 460.5 kB / 460.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.07666, allocations: 67.39 kB / 460.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.07667, allocations: 0 / 460.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.07668, allocations: 0 / 460.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.07678, allocations: 27.98 kB / 460.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.07679, allocations: 3.938 kB / 460.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.07691, allocations: 19.94 kB / 460.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.07693, allocations: 4 kB / 460.6 MB, free: 13.29 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.0002053/0.07713, allocations: 222.9 kB / 460.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.07717, allocations: 19.91 kB / 460.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.106e-05/0.07721, allocations: 17.97 kB / 460.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.07721, allocations: 0 / 460.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.07722, allocations: 8 kB / 460.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.07722, allocations: 3.984 kB / 460.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.07741, allocations: 169.1 kB / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.07741, allocations: 0 / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.473e-05/0.07746, allocations: 19.86 kB / 461 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.07747, allocations: 0 / 461 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.07749, allocations: 15.94 kB / 461.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.07749, allocations: 0 / 461.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.07749, allocations: 0 / 461.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007325/0.07822, allocations: 0.5111 MB / 461.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.07825, allocations: 23.84 kB / 461.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.07829, allocations: 8 kB / 461.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.0784, allocations: 11.98 kB / 461.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.07846, allocations: 23.95 kB / 461.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.07849, allocations: 12 kB / 461.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001202/0.07861, allocations: 131.2 kB / 461.8 MB, free: 12 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.07861, allocations: 0 / 461.8 MB, free: 12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.0789, allocations: 83.88 kB / 461.9 MB, free: 11.92 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.0003028/0.07921, allocations: 158.8 kB / 462 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.07981, allocations: 465.5 kB / 462.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.07981, allocations: 0 / 462.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.08013, allocations: 297.9 kB / 462.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.08034, allocations: 19.92 kB / 462.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006923/0.08103, allocations: 440.1 kB / 463.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.08114, allocations: 110.4 kB / 463.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/0.08117, allocations: 15.44 kB / 463.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.08118, allocations: 4 kB / 463.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Templates: time 0.004659/0.08583, allocations: 2.502 MB / 465.8 MB, free: 7.777 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 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.498751264996827] Failed to read output from testmodel.py, exit status != 0: 0.09356583002954721 0.10888433400000001 0.034546573000000004 Calling exit ...