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.00134/0.00134, allocations: 78.41 kB / 19.18 MB, free: 2.531 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.001419/0.001419, allocations: 171.3 kB / 22.46 MB, free: 5.363 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.279/1.279, allocations: 158.6 MB / 184.2 MB, free: 6.441 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.008299/0.008299, allocations: 1.422 MB / 237.9 MB, free: 3.691 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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 353 MB, free: 37.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.9e-05, allocations: 2.281 kB / 353 MB, free: 37.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002873/0.002892, allocations: 1.51 MB / 354.5 MB, free: 35.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.004343, allocations: 0.692 MB / 355.2 MB, free: 35.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.783e-05/0.004431, allocations: 3.938 kB / 355.2 MB, free: 35.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.004599, allocations: 63.83 kB / 355.2 MB, free: 35.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.004746, allocations: 75.66 kB / 355.3 MB, free: 35.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007371/0.005483, allocations: 163.5 kB / 355.5 MB, free: 34.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.005743, allocations: 179.5 kB / 355.7 MB, free: 34.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.697e-05/0.00584, allocations: 8 kB / 355.7 MB, free: 34.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.006032, allocations: 99.83 kB / 355.8 MB, free: 34.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.006258, allocations: 115.8 kB / 355.9 MB, free: 34.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/0.006302, allocations: 12 kB / 355.9 MB, free: 34.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.00658, allocations: 143.9 kB / 356 MB, free: 34.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.522e-05/0.006655, allocations: 35.84 kB / 356.1 MB, free: 34.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.119e-05/0.006746, allocations: 43.89 kB / 356.1 MB, free: 34.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.007157, allocations: 271.2 kB / 356.4 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.007161, allocations: 3.984 kB / 356.4 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.32e-07/0.007161, allocations: 0 / 356.4 MB, free: 34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.007173, allocations: 0 / 356.4 MB, free: 34 MB / 302.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.000884/0.008057, allocations: 476.7 kB / 356.8 MB, free: 33.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.008094, allocations: 11.98 kB / 356.9 MB, free: 33.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.008171, allocations: 20.84 kB / 356.9 MB, free: 33.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.008455, allocations: 157.5 kB / 357 MB, free: 33.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.567e-05/0.00852, allocations: 67.89 kB / 357.1 MB, free: 33.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.008558, allocations: 8.375 kB / 357.1 MB, free: 33.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.00894, allocations: 201.5 kB / 357.3 MB, free: 32.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.008953, allocations: 4.188 kB / 357.3 MB, free: 32.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.008978, allocations: 4.125 kB / 357.3 MB, free: 32.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.008983, allocations: 4 kB / 357.3 MB, free: 32.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.009278, allocations: 155.3 kB / 357.5 MB, free: 32.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00057/0.009848, allocations: 296.4 kB / 357.7 MB, free: 32.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.01023, allocations: 181.9 kB / 357.9 MB, free: 32.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.01047, allocations: 152.1 kB / 358.1 MB, free: 32.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.01049, allocations: 15.88 kB / 358.1 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000403/0.01089, allocations: 298.3 kB / 358.4 MB, free: 31.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.385e-06/0.01089, allocations: 3.938 kB / 358.4 MB, free: 31.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001087/0.01198, allocations: 0.5918 MB / 359 MB, free: 31.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.01203, allocations: 118.8 kB / 359.1 MB, free: 31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.01222, allocations: 202.7 kB / 359.3 MB, free: 30.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.01225, allocations: 25.7 kB / 359.3 MB, free: 30.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.0123, allocations: 112.6 kB / 359.4 MB, free: 30.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.01236, allocations: 59.58 kB / 359.5 MB, free: 30.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-05/0.01246, allocations: 45.7 kB / 359.5 MB, free: 30.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.731e-05/0.01252, allocations: 334.8 kB / 359.9 MB, free: 30.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.01276, allocations: 147.6 kB / 360 MB, free: 30.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.013, allocations: 155.8 kB / 360.2 MB, free: 29.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004335/0.01343, allocations: 310.3 kB / 360.5 MB, free: 29.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01343, allocations: 0 / 360.5 MB, free: 29.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007277/0.01416, allocations: 478 kB / 360.9 MB, free: 29.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.01421, allocations: 71.39 kB / 361 MB, free: 28.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01422, allocations: 4 kB / 361 MB, free: 28.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.01424, allocations: 0 / 361 MB, free: 28.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.01439, allocations: 27.92 kB / 361 MB, free: 28.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.01439, allocations: 0 / 361 MB, free: 28.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.01458, allocations: 19.88 kB / 361 MB, free: 28.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.01461, allocations: 12 kB / 361.1 MB, free: 28.91 MB / 302.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.0001916/0.0148, allocations: 215.2 kB / 361.3 MB, free: 28.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.01485, allocations: 27.8 kB / 361.3 MB, free: 28.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.0149, allocations: 25.97 kB / 361.3 MB, free: 28.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.0149, allocations: 3.938 kB / 361.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.01491, allocations: 0 / 361.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.01491, allocations: 3.984 kB / 361.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.01509, allocations: 177.1 kB / 361.5 MB, free: 28.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.01509, allocations: 0 / 361.5 MB, free: 28.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.973e-05/0.01517, allocations: 8 kB / 361.5 MB, free: 28.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.01517, allocations: 7.875 kB / 361.5 MB, free: 28.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.0152, allocations: 8 kB / 361.5 MB, free: 28.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.01521, allocations: 3.984 kB / 361.5 MB, free: 28.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01521, allocations: 0 / 361.5 MB, free: 28.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008318/0.01604, allocations: 0.5212 MB / 362 MB, free: 27.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.796e-05/0.01607, allocations: 15.84 kB / 362.1 MB, free: 27.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.258e-05/0.01613, allocations: 15.98 kB / 362.1 MB, free: 27.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.0163, allocations: 15.98 kB / 362.1 MB, free: 27.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.01639, allocations: 15.92 kB / 362.1 MB, free: 27.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.01643, allocations: 11.98 kB / 362.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.01655, allocations: 143.2 kB / 362.3 MB, free: 27.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.01655, allocations: 0 / 362.3 MB, free: 27.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.01704, allocations: 83.83 kB / 362.3 MB, free: 27.53 MB / 302.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.0002976/0.01734, allocations: 170.8 kB / 362.5 MB, free: 27.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006713/0.01801, allocations: 473.5 kB / 363 MB, free: 26.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.01801, allocations: 4 kB / 363 MB, free: 26.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.01836, allocations: 294.1 kB / 363.3 MB, free: 26.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.01871, allocations: 22.48 kB / 363.3 MB, free: 26.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007407/0.01945, allocations: 421.8 kB / 363.7 MB, free: 26.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.801e-05/0.01954, allocations: 126.5 kB / 363.8 MB, free: 25.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.631e-05/0.0196, allocations: 12.42 kB / 363.8 MB, free: 25.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.01964, allocations: 16.5 kB / 363.8 MB, free: 25.87 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.01964, allocations: 0 / 363.8 MB, free: 25.87 MB / 302.1 MB Notification: Performance of Templates: time 0.006492/0.02613, allocations: 2.716 MB / 366.6 MB, free: 23.14 MB / 302.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: 4.120593171566725] Failed to read output from testmodel.py, exit status != 0: 0.034206680953502655 0.043121902000000004 0.033724455 Calling exit ...