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.0008655/0.0008655, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008491/0.0008491, allocations: 174.3 kB / 23.21 MB, free: 1.352 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.8354/0.8354, allocations: 158.6 MB / 185 MB, free: 3.055 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.005678/0.005678, allocations: 1.428 MB / 238.7 MB, free: 13.95 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.203e-06/1.203e-06, allocations: 0 / 353.7 MB, free: 15.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.578e-05/1.698e-05, allocations: 2.281 kB / 353.7 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.0014/0.001417, allocations: 1.514 MB / 355.2 MB, free: 13.87 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006921/0.002109, allocations: 0.6999 MB / 355.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.698e-05/0.002166, allocations: 0 / 355.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.002278, allocations: 59.8 kB / 356 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.769e-05/0.002355, allocations: 75.7 kB / 356.1 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.002752, allocations: 159.6 kB / 356.2 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000141/0.002893, allocations: 175.5 kB / 356.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.163e-05/0.002975, allocations: 8 kB / 356.4 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.762e-05/0.003072, allocations: 99.83 kB / 356.5 MB, free: 12.59 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.003206, allocations: 123.8 kB / 356.6 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.003227, allocations: 8 kB / 356.6 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.003361, allocations: 147.8 kB / 356.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.379e-05/0.003415, allocations: 35.84 kB / 356.8 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.039e-05/0.003465, allocations: 43.91 kB / 356.9 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.00368, allocations: 271.3 kB / 357.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.003682, allocations: 0 / 357.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.003683, allocations: 0 / 357.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.003687, allocations: 0 / 357.1 MB, free: 11.98 MB / 282.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.0004721/0.004159, allocations: 476.7 kB / 357.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.00419, allocations: 11.98 kB / 357.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.004231, allocations: 20.84 kB / 357.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.004392, allocations: 165.4 kB / 357.8 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.004436, allocations: 59.97 kB / 357.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.004451, allocations: 8.375 kB / 357.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.004626, allocations: 201.6 kB / 358 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.004634, allocations: 4.188 kB / 358 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.004647, allocations: 8.125 kB / 358.1 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.004651, allocations: 0 / 358.1 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.004763, allocations: 155.3 kB / 358.2 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002867/0.005049, allocations: 296.3 kB / 358.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.005203, allocations: 178 kB / 358.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.078e-05/0.005294, allocations: 152.2 kB / 358.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.005304, allocations: 11.88 kB / 358.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.005492, allocations: 302.2 kB / 359.1 MB, free: 9.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.005493, allocations: 3.984 kB / 359.1 MB, free: 9.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004246/0.005918, allocations: 0.5918 MB / 359.7 MB, free: 9.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.005953, allocations: 118.8 kB / 359.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.112e-05/0.006044, allocations: 206.7 kB / 360 MB, free: 8.766 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.006056, allocations: 29.7 kB / 360.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.308e-05/0.006089, allocations: 108.6 kB / 360.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.006121, allocations: 59.59 kB / 360.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.006165, allocations: 45.69 kB / 360.3 MB, free: 8.512 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.461e-05/0.006199, allocations: 330.8 kB / 360.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.4e-05/0.006293, allocations: 151.6 kB / 360.7 MB, free: 8.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.209e-05/0.006375, allocations: 155.8 kB / 360.9 MB, free: 7.855 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.006541, allocations: 306.4 kB / 361.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.006543, allocations: 0 / 361.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002718/0.006815, allocations: 478 kB / 361.7 MB, free: 7.035 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.006844, allocations: 74.36 kB / 361.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.006849, allocations: 4 kB / 361.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.00686, allocations: 0 / 361.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.441e-05/0.006925, allocations: 27.92 kB / 361.8 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.006929, allocations: 0 / 361.8 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.00699, allocations: 19.88 kB / 361.8 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.007002, allocations: 12 kB / 361.8 MB, free: 6.891 MB / 282.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.412e-05/0.007086, allocations: 219.2 kB / 362 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.007104, allocations: 27.8 kB / 362 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.209e-05/0.007126, allocations: 25.97 kB / 362.1 MB, free: 6.605 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.007128, allocations: 7.922 kB / 362.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.007132, allocations: 0 / 362.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.007135, allocations: 0 / 362.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.482e-05/0.00722, allocations: 173.2 kB / 362.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.007221, allocations: 0 / 362.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.158e-05/0.007243, allocations: 11.94 kB / 362.3 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.007244, allocations: 3.938 kB / 362.3 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.007256, allocations: 11.98 kB / 362.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.007257, allocations: 0 / 362.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.007258, allocations: 0 / 362.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003078/0.007566, allocations: 0.5197 MB / 362.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.007579, allocations: 19.83 kB / 362.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.007604, allocations: 12 kB / 362.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.754e-05/0.007651, allocations: 15.98 kB / 362.8 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.0077, allocations: 19.91 kB / 362.9 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.007717, allocations: 8 kB / 362.9 MB, free: 5.734 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.282e-05/0.00777, allocations: 143.2 kB / 363 MB, free: 5.594 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00777, allocations: 0 / 363 MB, free: 5.594 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001772/0.007947, allocations: 87.81 kB / 363.1 MB, free: 5.508 MB / 282.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.0001481/0.008095, allocations: 168.7 kB / 363.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.008387, allocations: 477.5 kB / 363.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.008389, allocations: 0 / 363.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.008511, allocations: 294.1 kB / 364 MB, free: 4.496 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.008659, allocations: 19.98 kB / 364 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/0.009081, allocations: 460 kB / 364.5 MB, free: 3.977 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.148e-05/0.009143, allocations: 118.5 kB / 364.6 MB, free: 3.844 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.009169, allocations: 20.44 kB / 364.6 MB, free: 3.824 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.00917, allocations: 0 / 364.6 MB, free: 3.824 MB / 282.7 MB Notification: Performance of Templates: time 0.002578/0.01175, allocations: 2.568 MB / 367.2 MB, free: 1.254 MB / 282.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=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.22907149977982] Failed to read output from testmodel.py, exit status != 0: 0.015425211749970913 0.023682402 0.018422393000000002 Calling exit ...