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.000645/0.000645, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009828/0.001628, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006668/0.0006668, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008523/0.001519, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.7456/0.7456, allocations: 158.6 MB / 171 MB, free: 2.59 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1134/0.859, allocations: 49.5 MB / 220.5 MB, free: 1.441 MB / 218.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.004817/0.004817, allocations: 1.435 MB / 222.7 MB, free: 15.27 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00114/0.005957, allocations: 0.9358 MB / 223.6 MB, free: 14.33 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.182e-06/1.182e-06, allocations: 0 / 224.9 MB, free: 13.06 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.362e-06/7.544e-06, allocations: 6.25 kB / 224.9 MB, free: 13.05 MB / 234.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001461/0.001469, allocations: 1.609 MB / 226.5 MB, free: 11.43 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006857/0.002154, allocations: 0.7174 MB / 227.2 MB, free: 10.7 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.533e-05/0.0022, allocations: 3.938 kB / 227.2 MB, free: 10.7 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.013e-05/0.00229, allocations: 63.78 kB / 227.3 MB, free: 10.64 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.767e-05/0.002387, allocations: 91.67 kB / 227.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.002657, allocations: 151.5 kB / 227.5 MB, free: 10.4 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.002811, allocations: 159.6 kB / 227.7 MB, free: 10.24 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.089e-05/0.002872, allocations: 15.92 kB / 227.7 MB, free: 10.23 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.002986, allocations: 111.8 kB / 227.8 MB, free: 10.12 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.003104, allocations: 99.8 kB / 227.9 MB, free: 10.02 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.003123, allocations: 8 kB / 227.9 MB, free: 10.01 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.003288, allocations: 163.8 kB / 228.1 MB, free: 9.852 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.00333, allocations: 31.86 kB / 228.1 MB, free: 9.82 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.327e-05/0.003373, allocations: 35.92 kB / 228.2 MB, free: 9.785 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.003616, allocations: 191.5 kB / 228.3 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.003627, allocations: 4 kB / 228.3 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003627, allocations: 0 / 228.3 MB, free: 9.594 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.003638, allocations: 0 / 228.3 MB, free: 9.594 MB / 234.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.0004792/0.004117, allocations: 478.9 kB / 228.8 MB, free: 9.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.307e-05/0.00414, allocations: 16.02 kB / 228.8 MB, free: 9.074 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/0.004176, allocations: 20.86 kB / 228.8 MB, free: 9.055 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.004307, allocations: 161.4 kB / 229 MB, free: 8.871 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.004348, allocations: 63.95 kB / 229.1 MB, free: 8.797 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.004362, allocations: 12.38 kB / 229.1 MB, free: 8.785 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.004497, allocations: 165.1 kB / 229.2 MB, free: 8.602 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-06/0.004503, allocations: 192 / 229.2 MB, free: 8.602 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.004513, allocations: 8.125 kB / 229.3 MB, free: 8.594 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.004516, allocations: 0 / 229.3 MB, free: 8.594 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.922e-05/0.004576, allocations: 91.38 kB / 229.3 MB, free: 8.492 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002633/0.004839, allocations: 203 kB / 229.5 MB, free: 8.277 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.004972, allocations: 165.8 kB / 229.7 MB, free: 8.094 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.117e-05/0.005023, allocations: 96.25 kB / 229.8 MB, free: 7.984 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-06/0.00503, allocations: 4 kB / 229.8 MB, free: 7.98 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.005197, allocations: 244.8 kB / 230 MB, free: 7.703 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.005199, allocations: 96 / 230 MB, free: 7.703 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002279/0.005427, allocations: 368.2 kB / 230.4 MB, free: 7.301 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.005472, allocations: 114.8 kB / 230.5 MB, free: 7.164 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.702e-05/0.005549, allocations: 174.7 kB / 230.7 MB, free: 6.98 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.005566, allocations: 33.69 kB / 230.7 MB, free: 6.941 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.583e-05/0.005592, allocations: 92.62 kB / 230.8 MB, free: 6.848 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.005629, allocations: 63.5 kB / 230.9 MB, free: 6.785 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.00568, allocations: 45.67 kB / 230.9 MB, free: 6.734 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.991e-05/0.00575, allocations: 334.8 kB / 231.2 MB, free: 6.398 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.377e-05/0.005804, allocations: 94.45 kB / 231.3 MB, free: 6.293 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.808e-05/0.005852, allocations: 91.84 kB / 231.4 MB, free: 6.191 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.005963, allocations: 219.5 kB / 231.6 MB, free: 5.949 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.005964, allocations: 0 / 231.6 MB, free: 5.949 MB / 234.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001406/0.006105, allocations: 266 kB / 231.9 MB, free: 5.66 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.006145, allocations: 79.31 kB / 232 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.006148, allocations: 0 / 232 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.941e-06/0.006154, allocations: 0 / 232 MB, free: 5.57 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.121e-05/0.006225, allocations: 31.92 kB / 232 MB, free: 5.539 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.006228, allocations: 0 / 232 MB, free: 5.539 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.327e-05/0.006281, allocations: 19.89 kB / 232 MB, free: 5.52 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.00629, allocations: 4 kB / 232 MB, free: 5.516 MB / 234.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 8.911e-05/0.006379, allocations: 198 kB / 232.2 MB, free: 5.297 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.006405, allocations: 39.84 kB / 232.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.987e-05/0.006425, allocations: 13.97 kB / 232.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.006427, allocations: 4 kB / 232.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.006428, allocations: 0 / 232.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.006431, allocations: 4 kB / 232.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.959e-05/0.00651, allocations: 109.8 kB / 232.4 MB, free: 5.117 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.006511, allocations: 0 / 232.4 MB, free: 5.117 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.413e-05/0.006536, allocations: 15.92 kB / 232.4 MB, free: 5.102 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.006557, allocations: 19.84 kB / 232.4 MB, free: 5.082 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.006558, allocations: 0 / 232.4 MB, free: 5.082 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.00657, allocations: 15.92 kB / 232.4 MB, free: 5.066 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.006571, allocations: 0 / 232.4 MB, free: 5.066 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.006572, allocations: 3.984 kB / 232.4 MB, free: 5.062 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.006772, allocations: 321.3 kB / 232.8 MB, free: 4.703 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.006795, allocations: 8 kB / 232.8 MB, free: 4.695 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.335e-05/0.006839, allocations: 19.92 kB / 232.8 MB, free: 4.676 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.006877, allocations: 19.97 kB / 232.8 MB, free: 4.656 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.00689, allocations: 8 kB / 232.8 MB, free: 4.648 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.925e-05/0.00692, allocations: 48.78 kB / 232.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00692, allocations: 0 / 232.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001441/0.007064, allocations: 79.92 kB / 232.9 MB, free: 4.52 MB / 234.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.0001635/0.007227, allocations: 144.1 kB / 233.1 MB, free: 4.367 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.007431, allocations: 374.2 kB / 233.4 MB, free: 3.949 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.007437, allocations: 8 kB / 233.4 MB, free: 3.941 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.007553, allocations: 258.9 kB / 233.7 MB, free: 3.648 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001021/0.007655, allocations: 27.98 kB / 233.7 MB, free: 3.621 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.008135, allocations: 373.7 kB / 234.1 MB, free: 3.219 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.495e-05/0.00817, allocations: 79.33 kB / 234.2 MB, free: 3.121 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.797e-05/0.008198, allocations: 8.5 kB / 234.2 MB, free: 3.109 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.6e-05/0.008294, allocations: 99.34 kB / 234.3 MB, free: 3.012 MB / 234.7 MB Notification: Performance of SimCode: time 5.41e-07/0.008295, allocations: 0 / 234.3 MB, free: 3.012 MB / 234.7 MB Notification: Performance of Templates: time 0.003806/0.0121, allocations: 2.955 MB / 237.2 MB, free: 52 kB / 234.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.13214270491153]