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.00126/0.00126, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001493/0.001493, allocations: 173 kB / 23.02 MB, free: 1.547 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.7976/0.7976, allocations: 158.6 MB / 184.9 MB, free: 2.902 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.006614/0.006614, allocations: 1.439 MB / 238.7 MB, free: 13.66 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.573e-06/1.573e-06, allocations: 0.5156 kB / 304.6 MB, free: 61.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.469e-05/1.626e-05, allocations: 3.688 kB / 304.6 MB, free: 61.04 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001781/0.001797, allocations: 1.55 MB / 306.2 MB, free: 60.01 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008423/0.002639, allocations: 0.7184 MB / 306.9 MB, free: 59.55 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.443e-05/0.002694, allocations: 1.094 kB / 306.9 MB, free: 59.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.002831, allocations: 64.84 kB / 307 MB, free: 59.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.954e-05/0.00293, allocations: 73.91 kB / 307 MB, free: 59.52 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.003429, allocations: 164.9 kB / 307.2 MB, free: 59.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.003632, allocations: 160.3 kB / 307.3 MB, free: 59.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.19e-05/0.003714, allocations: 18.38 kB / 307.4 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.003848, allocations: 107.5 kB / 307.5 MB, free: 59.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.004023, allocations: 114.2 kB / 307.6 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.004047, allocations: 9.5 kB / 307.6 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.004229, allocations: 148.4 kB / 307.7 MB, free: 59.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.294e-05/0.004292, allocations: 34.89 kB / 307.8 MB, free: 59.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.092e-05/0.004352, allocations: 45.3 kB / 307.8 MB, free: 59.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002659/0.004618, allocations: 236.5 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.004621, allocations: 1.344 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.004622, allocations: 4 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.004626, allocations: 0 / 308 MB, free: 59.16 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.0005458/0.005172, allocations: 0.5596 MB / 308.6 MB, free: 58.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.005205, allocations: 14.48 kB / 308.6 MB, free: 58.64 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.903e-05/0.005264, allocations: 27.06 kB / 308.6 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.00542, allocations: 162 kB / 308.8 MB, free: 58.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.005469, allocations: 63.75 kB / 308.9 MB, free: 58.4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.005487, allocations: 11.19 kB / 308.9 MB, free: 58.4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.005663, allocations: 166.3 kB / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.005671, allocations: 192 / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.005684, allocations: 6.719 kB / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.005691, allocations: 1.188 kB / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.841e-05/0.00577, allocations: 103.5 kB / 309.1 MB, free: 58.2 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.006104, allocations: 354.1 kB / 309.5 MB, free: 57.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.006247, allocations: 135.6 kB / 309.6 MB, free: 57.78 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.539e-05/0.006313, allocations: 100.9 kB / 309.7 MB, free: 57.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.006321, allocations: 9.828 kB / 309.7 MB, free: 57.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.006505, allocations: 249.3 kB / 310 MB, free: 57.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.006506, allocations: 0 / 310 MB, free: 57.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003972/0.006903, allocations: 443 kB / 310.4 MB, free: 57.22 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.00694, allocations: 116.3 kB / 310.5 MB, free: 57.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.007049, allocations: 239.1 kB / 310.8 MB, free: 56.9 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.007062, allocations: 30.39 kB / 310.8 MB, free: 56.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.139e-05/0.007104, allocations: 166.9 kB / 311 MB, free: 56.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.007142, allocations: 60.14 kB / 311 MB, free: 56.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.007194, allocations: 54.98 kB / 311.1 MB, free: 56.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.246e-05/0.007246, allocations: 0.5065 MB / 311.6 MB, free: 56.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.932e-05/0.007315, allocations: 92.97 kB / 311.7 MB, free: 56.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.178e-05/0.007377, allocations: 101.1 kB / 311.8 MB, free: 55.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.007513, allocations: 222.8 kB / 312 MB, free: 55.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.007515, allocations: 3.938 kB / 312 MB, free: 55.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002632/0.007778, allocations: 353.1 kB / 312.3 MB, free: 55.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.007811, allocations: 71.84 kB / 312.4 MB, free: 55.53 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.007815, allocations: 0 / 312.4 MB, free: 55.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.007828, allocations: 7.891 kB / 312.4 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.119e-05/0.007919, allocations: 23.09 kB / 312.4 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.007925, allocations: 8.922 kB / 312.4 MB, free: 55.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.931e-05/0.007984, allocations: 12.73 kB / 312.4 MB, free: 55.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.007997, allocations: 8.797 kB / 312.5 MB, free: 55.51 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 9.327e-05/0.008091, allocations: 244.3 kB / 312.7 MB, free: 55.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.008123, allocations: 37.67 kB / 312.7 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.00815, allocations: 23.56 kB / 312.8 MB, free: 55.24 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.008153, allocations: 2.047 kB / 312.8 MB, free: 55.24 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.008158, allocations: 0 / 312.8 MB, free: 55.24 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.008162, allocations: 1.438 kB / 312.8 MB, free: 55.24 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.008283, allocations: 191.9 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.008284, allocations: 1.219 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-05/0.008312, allocations: 9.094 kB / 313 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.008316, allocations: 4.641 kB / 313 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.008332, allocations: 11.41 kB / 313 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.008334, allocations: 0.6562 kB / 313 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.008335, allocations: 2 kB / 313 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.008708, allocations: 431.3 kB / 313.4 MB, free: 54.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.008727, allocations: 24.77 kB / 313.4 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.008755, allocations: 9.406 kB / 313.4 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.141e-05/0.008816, allocations: 19.23 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.981e-05/0.008886, allocations: 22.56 kB / 313.5 MB, free: 54.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.008915, allocations: 14.84 kB / 313.5 MB, free: 54.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.746e-05/0.008993, allocations: 170.2 kB / 313.6 MB, free: 54.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.008993, allocations: 0 / 313.6 MB, free: 54.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002124/0.009205, allocations: 78.16 kB / 313.7 MB, free: 54.61 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.0001558/0.009361, allocations: 154.5 kB / 313.9 MB, free: 54.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002646/0.009626, allocations: 395 kB / 314.3 MB, free: 54.21 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.009627, allocations: 4 kB / 314.3 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.009744, allocations: 260.7 kB / 314.5 MB, free: 53.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.00991, allocations: 27.8 kB / 314.5 MB, free: 53.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003818/0.01029, allocations: 370.7 kB / 314.9 MB, free: 53.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.778e-05/0.01033, allocations: 77.73 kB / 315 MB, free: 53.63 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.283e-05/0.01036, allocations: 10.03 kB / 315 MB, free: 53.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.01039, allocations: 18.28 kB / 315 MB, free: 53.62 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01039, allocations: 0 / 315 MB, free: 53.62 MB / 282.7 MB Notification: Performance of Templates: time 0.004333/0.01472, allocations: 2.932 MB / 317.9 MB, free: 51.32 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=240 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.53119330201298]