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.001304/0.001304, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001474/0.001474, allocations: 216.5 kB / 22.99 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.354/1.354, allocations: 207.7 MB / 233.8 MB, free: 9.785 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.009118/0.009118, allocations: 1.966 MB / 288.1 MB, free: 3.66 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.002253/0.002253, allocations: 76.45 kB / 403 MB, free: 50.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05969/0.06194, allocations: 49.7 MB / 452.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002113/0.06406, allocations: 1.506 MB / 454.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009147/0.06497, allocations: 0.6956 MB / 454.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.832e-05/0.06503, allocations: 7.938 kB / 454.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.06515, allocations: 63.83 kB / 455 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.767e-05/0.06523, allocations: 71.72 kB / 455.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.0657, allocations: 167.6 kB / 455.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.06585, allocations: 167.6 kB / 455.4 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.776e-05/0.06593, allocations: 11.94 kB / 455.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.544e-05/0.06601, allocations: 83.73 kB / 455.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.06616, allocations: 119.7 kB / 455.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.06619, allocations: 8 kB / 455.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.06635, allocations: 147.8 kB / 455.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.639e-05/0.06641, allocations: 39.84 kB / 455.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.782e-05/0.06646, allocations: 47.73 kB / 455.8 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.06669, allocations: 239.1 kB / 456.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.06669, allocations: 0 / 456.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.06669, allocations: 0 / 456.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.0667, allocations: 0 / 456.1 MB, free: 2.199 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.0006412/0.06734, allocations: 484.6 kB / 456.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.06737, allocations: 11.98 kB / 456.6 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.06742, allocations: 20.84 kB / 456.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.06764, allocations: 158.3 kB / 456.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.06768, allocations: 63.89 kB / 456.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.06771, allocations: 12.38 kB / 456.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.06794, allocations: 205.1 kB / 457 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.06795, allocations: 0 / 457 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.06796, allocations: 4 kB / 457 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.06797, allocations: 4 kB / 457 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.06814, allocations: 155.3 kB / 457.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003693/0.06851, allocations: 292.3 kB / 457.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.06873, allocations: 181.9 kB / 457.6 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.06885, allocations: 148.2 kB / 457.8 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.06887, allocations: 8 kB / 457.8 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.06915, allocations: 314.2 kB / 458.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.06916, allocations: 0 / 458.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008771/0.07003, allocations: 0.5896 MB / 458.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.25e-05/0.07012, allocations: 114.8 kB / 458.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.07031, allocations: 198.7 kB / 459 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.07034, allocations: 33.7 kB / 459 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.07042, allocations: 112.6 kB / 459.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.07048, allocations: 63.41 kB / 459.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/0.07056, allocations: 45.7 kB / 459.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.07073, allocations: 338.8 kB / 459.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.07095, allocations: 151.6 kB / 459.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.07115, allocations: 153.5 kB / 459.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/0.07154, allocations: 312.7 kB / 460.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.07154, allocations: 0 / 460.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006358/0.07218, allocations: 477.9 kB / 460.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.832e-05/0.07225, allocations: 71.39 kB / 460.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.07225, allocations: 4 kB / 460.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.07227, allocations: 4 kB / 460.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.07238, allocations: 19.92 kB / 460.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.07239, allocations: 4 kB / 460.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.07251, allocations: 19.94 kB / 460.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.07254, allocations: 8 kB / 460.8 MB, free: 13.09 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.0002074/0.07274, allocations: 218.9 kB / 461 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.07278, allocations: 23.91 kB / 461 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.994e-05/0.07282, allocations: 17.97 kB / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.07283, allocations: 4 kB / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.07283, allocations: 0 / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.07284, allocations: 0 / 461 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.07303, allocations: 181.1 kB / 461.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.07303, allocations: 0 / 461.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.039e-05/0.07309, allocations: 15.92 kB / 461.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.07309, allocations: 0 / 461.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.07312, allocations: 12 kB / 461.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.07312, allocations: 0 / 461.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.07312, allocations: 3.984 kB / 461.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007271/0.07385, allocations: 0.5267 MB / 461.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.07388, allocations: 19.8 kB / 461.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.07392, allocations: 11.98 kB / 461.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.07403, allocations: 8 kB / 461.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.07409, allocations: 19.97 kB / 461.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.07413, allocations: 15.98 kB / 461.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.07426, allocations: 143.2 kB / 462 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.07426, allocations: 0 / 462 MB, free: 11.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.07458, allocations: 75.94 kB / 462.1 MB, free: 11.7 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.0002377/0.07482, allocations: 164.6 kB / 462.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006202/0.07544, allocations: 469.5 kB / 462.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.07544, allocations: 0 / 462.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003283/0.07577, allocations: 302.1 kB / 463 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.07599, allocations: 19.88 kB / 463 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007124/0.0767, allocations: 452.4 kB / 463.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.07683, allocations: 118.4 kB / 463.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.61e-05/0.07686, allocations: 15.44 kB / 463.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.07686, allocations: 0 / 463.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Templates: time 0.004871/0.08173, allocations: 2.552 MB / 466.1 MB, free: 7.477 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: 6.44176363106817] Failed to read output from testmodel.py, exit status != 0: 0.08926602592691779 0.105184606 0.035407518 Calling exit ...