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.0009784/0.0009784, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001084/0.001084, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.8945/0.8945, allocations: 158.6 MB / 185.2 MB, free: 2.773 MB / 170.7 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.006345/0.006345, allocations: 1.438 MB / 239 MB, free: 13.57 MB / 234.7 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.383e-06/1.383e-06, allocations: 3.938 kB / 256 MB, free: 12.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.294e-05/1.432e-05, allocations: 6.109 kB / 256 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.005103/0.005117, allocations: 1.561 MB / 257.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009857/0.006103, allocations: 0.7173 MB / 258.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.006155, allocations: 0 / 258.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.006293, allocations: 63.78 kB / 258.3 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.006406, allocations: 75.7 kB / 258.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.006835, allocations: 163.5 kB / 258.6 MB, free: 9.953 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.007017, allocations: 167.6 kB / 258.7 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.677e-05/0.007084, allocations: 11.97 kB / 258.8 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.007216, allocations: 103.8 kB / 258.9 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.007361, allocations: 95.81 kB / 258.9 MB, free: 9.582 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003031/0.01039, allocations: 8 kB / 259 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.01059, allocations: 151.8 kB / 259.1 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.923e-05/0.01065, allocations: 39.84 kB / 259.1 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.0107, allocations: 35.91 kB / 259.2 MB, free: 9.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.01096, allocations: 243.3 kB / 259.4 MB, free: 9.113 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.01096, allocations: 0 / 259.4 MB, free: 9.113 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01096, allocations: 0 / 259.4 MB, free: 9.113 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.01096, allocations: 0 / 259.4 MB, free: 9.113 MB / 250.7 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.0004976/0.01146, allocations: 439.3 kB / 259.8 MB, free: 8.648 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.01149, allocations: 15.98 kB / 259.9 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.414e-05/0.01154, allocations: 20.91 kB / 259.9 MB, free: 8.613 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.0117, allocations: 157.4 kB / 260 MB, free: 8.434 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.895e-05/0.01175, allocations: 63.97 kB / 260.1 MB, free: 8.359 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.01177, allocations: 4.375 kB / 260.1 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.01194, allocations: 169 kB / 260.3 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.01195, allocations: 192 / 260.3 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.01196, allocations: 8.125 kB / 260.3 MB, free: 8.16 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.01196, allocations: 4 kB / 260.3 MB, free: 8.156 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.541e-05/0.01204, allocations: 91.31 kB / 260.4 MB, free: 8.055 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00026/0.0123, allocations: 199 kB / 260.6 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.01244, allocations: 157.9 kB / 260.7 MB, free: 7.668 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/0.0125, allocations: 88.25 kB / 260.8 MB, free: 7.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.01251, allocations: 12.02 kB / 260.8 MB, free: 7.555 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.0127, allocations: 248.9 kB / 261.1 MB, free: 7.273 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.0127, allocations: 0 / 261.1 MB, free: 7.273 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002796/0.01298, allocations: 335.9 kB / 261.4 MB, free: 6.902 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.01304, allocations: 122.7 kB / 261.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.01314, allocations: 170.5 kB / 261.7 MB, free: 6.578 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.01316, allocations: 33.7 kB / 261.7 MB, free: 6.539 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.703e-05/0.01319, allocations: 96.61 kB / 261.8 MB, free: 6.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.01324, allocations: 55.56 kB / 261.9 MB, free: 6.387 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00307/0.01631, allocations: 41.69 kB / 261.9 MB, free: 6.34 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.0164, allocations: 330.8 kB / 262.2 MB, free: 6.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.768e-05/0.01648, allocations: 86.45 kB / 262.3 MB, free: 5.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.429e-05/0.01654, allocations: 91.84 kB / 262.4 MB, free: 5.809 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.01669, allocations: 203.6 kB / 262.6 MB, free: 5.582 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.01669, allocations: 4 kB / 262.6 MB, free: 5.578 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002033/0.0169, allocations: 253.9 kB / 262.8 MB, free: 5.301 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.01694, allocations: 83.31 kB / 262.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.01695, allocations: 0 / 262.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.01696, allocations: 0 / 262.9 MB, free: 5.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/0.01703, allocations: 16 kB / 262.9 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/0.01704, allocations: 0 / 262.9 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.602e-05/0.0171, allocations: 19.88 kB / 263 MB, free: 5.172 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.01712, allocations: 12 kB / 263 MB, free: 5.16 MB / 250.7 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.0001211/0.01724, allocations: 206 kB / 263.2 MB, free: 4.934 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.01727, allocations: 27.92 kB / 263.2 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.608e-05/0.0173, allocations: 17.95 kB / 263.2 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.0173, allocations: 4 kB / 263.2 MB, free: 4.883 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.0173, allocations: 4 kB / 263.2 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.01731, allocations: 0 / 263.2 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.01741, allocations: 109.7 kB / 263.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.01741, allocations: 0 / 263.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.134e-05/0.01744, allocations: 15.98 kB / 263.3 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.01745, allocations: 3.938 kB / 263.4 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.01746, allocations: 8 kB / 263.4 MB, free: 4.727 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.01746, allocations: 7.938 kB / 263.4 MB, free: 4.719 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.01746, allocations: 3.938 kB / 263.4 MB, free: 4.715 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.0177, allocations: 317.8 kB / 263.7 MB, free: 4.359 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.525e-05/0.01771, allocations: 15.91 kB / 263.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.01774, allocations: 8 kB / 263.7 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.263e-05/0.01779, allocations: 15.92 kB / 263.7 MB, free: 4.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.01784, allocations: 15.97 kB / 263.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.01786, allocations: 15.98 kB / 263.8 MB, free: 4.289 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.059e-05/0.0179, allocations: 45.84 kB / 263.8 MB, free: 4.242 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0179, allocations: 4 kB / 263.8 MB, free: 4.238 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002206/0.01812, allocations: 79.88 kB / 263.9 MB, free: 4.16 MB / 250.7 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.0001732/0.01829, allocations: 148.2 kB / 264 MB, free: 4.004 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.01855, allocations: 350.4 kB / 264.4 MB, free: 3.609 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.01856, allocations: 4 kB / 264.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.0187, allocations: 246.9 kB / 264.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000112/0.01881, allocations: 23.98 kB / 264.6 MB, free: 3.301 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.02173, allocations: 368.1 kB / 265 MB, free: 2.906 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.57e-05/0.02178, allocations: 79.28 kB / 265.1 MB, free: 2.809 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.784e-05/0.02181, allocations: 8.484 kB / 265.1 MB, free: 2.797 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.02194, allocations: 95.36 kB / 265.2 MB, free: 2.703 MB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02194, allocations: 0 / 265.2 MB, free: 2.703 MB / 250.7 MB Notification: Performance of Templates: time 0.004756/0.0267, allocations: 2.903 MB / 268.1 MB, free: 15.8 MB / 266.7 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=240 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.655544532928616]