Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.0008951/0.0008951, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009432/0.0009432, allocations: 173 kB / 23.03 MB, free: 1.543 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.7969/0.7969, allocations: 158.6 MB / 184.9 MB, free: 2.914 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.00534/0.00534, allocations: 1.443 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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 304.6 MB, free: 61.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.701e-05, allocations: 5.094 kB / 304.6 MB, free: 61.02 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001925/0.001942, allocations: 1.536 MB / 306.1 MB, free: 59.99 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008615/0.002804, allocations: 0.7222 MB / 306.9 MB, free: 59.53 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.002865, allocations: 1.469 kB / 306.9 MB, free: 59.53 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.00301, allocations: 58.69 kB / 306.9 MB, free: 59.51 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.003119, allocations: 62.31 kB / 307 MB, free: 59.5 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.003635, allocations: 169.3 kB / 307.2 MB, free: 59.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.003832, allocations: 161.1 kB / 307.3 MB, free: 59.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.7e-05/0.003909, allocations: 9.25 kB / 307.3 MB, free: 59.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.004033, allocations: 105.2 kB / 307.4 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.004196, allocations: 99.28 kB / 307.5 MB, free: 59.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.004221, allocations: 14.16 kB / 307.5 MB, free: 59.3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.004406, allocations: 143.3 kB / 307.7 MB, free: 59.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.725e-05/0.004463, allocations: 32.83 kB / 307.7 MB, free: 59.26 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.125e-05/0.004524, allocations: 45.84 kB / 307.8 MB, free: 59.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.004792, allocations: 238 kB / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004794, allocations: 0 / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004796, allocations: 0 / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.0048, allocations: 1.125 kB / 308 MB, free: 59.14 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.0005409/0.005341, allocations: 0.5521 MB / 308.5 MB, free: 58.63 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.005375, allocations: 12.61 kB / 308.5 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.392e-05/0.005449, allocations: 24.86 kB / 308.6 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.005656, allocations: 169.2 kB / 308.7 MB, free: 58.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.379e-05/0.00572, allocations: 66.47 kB / 308.8 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.005738, allocations: 7.906 kB / 308.8 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.005943, allocations: 165.5 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.005953, allocations: 192 / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.005967, allocations: 7.625 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.005976, allocations: 1.375 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.31e-05/0.006069, allocations: 98.75 kB / 309.1 MB, free: 58.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003501/0.006419, allocations: 343.3 kB / 309.4 MB, free: 57.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.006556, allocations: 146 kB / 309.6 MB, free: 57.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.546e-05/0.006622, allocations: 101.5 kB / 309.7 MB, free: 57.69 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.895e-06/0.00663, allocations: 6.688 kB / 309.7 MB, free: 57.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.006811, allocations: 249.5 kB / 309.9 MB, free: 57.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.212e-06/0.006813, allocations: 0 / 309.9 MB, free: 57.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004409/0.007254, allocations: 441.7 kB / 310.3 MB, free: 57.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.00729, allocations: 116.9 kB / 310.5 MB, free: 57.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.007395, allocations: 230.1 kB / 310.7 MB, free: 56.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.007409, allocations: 31.83 kB / 310.7 MB, free: 56.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.007449, allocations: 158.5 kB / 310.9 MB, free: 56.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.00749, allocations: 60.45 kB / 310.9 MB, free: 56.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.007542, allocations: 50.09 kB / 311 MB, free: 56.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.983e-05/0.007592, allocations: 0.5046 MB / 311.5 MB, free: 56.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.264e-05/0.007665, allocations: 100.3 kB / 311.6 MB, free: 56.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-05/0.007729, allocations: 95.27 kB / 311.7 MB, free: 55.99 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.007863, allocations: 225.8 kB / 311.9 MB, free: 55.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.007866, allocations: 0 / 311.9 MB, free: 55.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002622/0.008128, allocations: 351 kB / 312.2 MB, free: 55.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.00816, allocations: 75.56 kB / 312.3 MB, free: 55.53 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.008165, allocations: 0.6562 kB / 312.3 MB, free: 55.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.008177, allocations: 5.375 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.501e-05/0.008262, allocations: 21.73 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.008267, allocations: 1.375 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.008329, allocations: 14.64 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.008343, allocations: 11.41 kB / 312.4 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 8.443e-05/0.008428, allocations: 238 kB / 312.6 MB, free: 55.28 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.008458, allocations: 32.89 kB / 312.6 MB, free: 55.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.008482, allocations: 22.05 kB / 312.6 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.008485, allocations: 6.625 kB / 312.6 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.008488, allocations: 0 / 312.6 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.008492, allocations: 5.656 kB / 312.7 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.008598, allocations: 189.3 kB / 312.8 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.008599, allocations: 0 / 312.8 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.643e-05/0.008625, allocations: 10.5 kB / 312.8 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.008628, allocations: 4.641 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.008644, allocations: 10.77 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.008646, allocations: 2.125 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.008648, allocations: 3.984 kB / 312.9 MB, free: 55.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.00897, allocations: 424.4 kB / 313.3 MB, free: 54.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.008986, allocations: 25.25 kB / 313.3 MB, free: 54.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.009016, allocations: 16.39 kB / 313.3 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.532e-05/0.009061, allocations: 7.688 kB / 313.3 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.009122, allocations: 29.52 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.009143, allocations: 11.47 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.797e-05/0.009191, allocations: 162.9 kB / 313.5 MB, free: 54.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009191, allocations: 0 / 313.5 MB, free: 54.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002023/0.009393, allocations: 75.77 kB / 313.6 MB, free: 54.62 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.000167/0.00956, allocations: 159.7 kB / 313.8 MB, free: 54.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002655/0.009825, allocations: 388.9 kB / 314.1 MB, free: 54.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.009827, allocations: 0 / 314.1 MB, free: 54.22 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.009963, allocations: 257 kB / 314.4 MB, free: 54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001662/0.01013, allocations: 31.16 kB / 314.4 MB, free: 53.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003889/0.01052, allocations: 356.5 kB / 314.8 MB, free: 53.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.509e-05/0.01055, allocations: 79 kB / 314.8 MB, free: 53.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.01058, allocations: 12.95 kB / 314.9 MB, free: 53.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.802e-05/0.01061, allocations: 19.77 kB / 314.9 MB, free: 53.64 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01061, allocations: 1.188 kB / 314.9 MB, free: 53.64 MB / 282.7 MB Notification: Performance of Templates: time 0.004096/0.01471, allocations: 2.927 MB / 317.8 MB, free: 51.44 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Test.TestPatientController1.makefile [Timeout 660] (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=240 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.5193589041009545]