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.001194/0.001194, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009301/0.0009301, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.7913/0.7913, allocations: 158.6 MB / 186 MB, free: 2.793 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.005859/0.005859, allocations: 1.439 MB / 239.8 MB, free: 13.5 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.312e-06/1.312e-06, allocations: 0 / 305.9 MB, free: 60.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.357e-05/1.488e-05, allocations: 3.688 kB / 305.9 MB, free: 60.87 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.00191/0.001925, allocations: 1.543 MB / 307.4 MB, free: 59.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008731/0.002798, allocations: 0.706 MB / 308.1 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.342e-05/0.002862, allocations: 5.062 kB / 308.1 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.002997, allocations: 59.7 kB / 308.2 MB, free: 59.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.003102, allocations: 73.45 kB / 308.2 MB, free: 59.35 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005055/0.003607, allocations: 170.4 kB / 308.4 MB, free: 59.28 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.003819, allocations: 168.4 kB / 308.6 MB, free: 59.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.384e-05/0.003893, allocations: 13.84 kB / 308.6 MB, free: 59.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.004027, allocations: 100.5 kB / 308.7 MB, free: 59.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.004194, allocations: 113.1 kB / 308.8 MB, free: 59.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.004218, allocations: 10.06 kB / 308.8 MB, free: 59.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.004403, allocations: 147.5 kB / 308.9 MB, free: 59.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.004462, allocations: 43.41 kB / 309 MB, free: 59.1 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.075e-05/0.004512, allocations: 37.92 kB / 309 MB, free: 59.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.004771, allocations: 240.1 kB / 309.3 MB, free: 59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.004772, allocations: 0 / 309.3 MB, free: 59 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004773, allocations: 0 / 309.3 MB, free: 59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.004777, allocations: 1.312 kB / 309.3 MB, free: 59 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.0004746/0.005252, allocations: 0.5635 MB / 309.8 MB, free: 58.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.005283, allocations: 13.64 kB / 309.8 MB, free: 58.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.005337, allocations: 27.64 kB / 309.9 MB, free: 58.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.005471, allocations: 165.8 kB / 310 MB, free: 58.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.00551, allocations: 65.75 kB / 310.1 MB, free: 58.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.005528, allocations: 8.156 kB / 310.1 MB, free: 58.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.005674, allocations: 155.3 kB / 310.3 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.005681, allocations: 192 / 310.3 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.005693, allocations: 6.016 kB / 310.3 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.005698, allocations: 2.531 kB / 310.3 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.732e-05/0.005765, allocations: 95.91 kB / 310.4 MB, free: 58.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002721/0.006037, allocations: 318.8 kB / 310.7 MB, free: 57.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.00615, allocations: 127.8 kB / 310.8 MB, free: 57.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.144e-05/0.006201, allocations: 94.36 kB / 310.9 MB, free: 57.58 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.463e-06/0.006208, allocations: 1.375 kB / 310.9 MB, free: 57.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.006388, allocations: 254.5 kB / 311.1 MB, free: 57.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.00639, allocations: 0 / 311.1 MB, free: 57.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003465/0.006736, allocations: 414 kB / 311.5 MB, free: 57.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.006769, allocations: 119.3 kB / 311.7 MB, free: 56.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.753e-05/0.006867, allocations: 245.6 kB / 311.9 MB, free: 56.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.006881, allocations: 38.33 kB / 311.9 MB, free: 56.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.006923, allocations: 163.1 kB / 312.1 MB, free: 56.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.817e-05/0.006961, allocations: 59.61 kB / 312.2 MB, free: 56.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-05/0.007011, allocations: 50.64 kB / 312.2 MB, free: 56.51 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.007068, allocations: 0.5051 MB / 312.7 MB, free: 56.01 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.386e-05/0.007122, allocations: 91.3 kB / 312.8 MB, free: 55.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.387e-05/0.007176, allocations: 93.44 kB / 312.9 MB, free: 55.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.00729, allocations: 204.5 kB / 313.1 MB, free: 55.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.007291, allocations: 1.406 kB / 313.1 MB, free: 55.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002415/0.007533, allocations: 342 kB / 313.4 MB, free: 55.5 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.007567, allocations: 75.5 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.007571, allocations: 0.6562 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.007581, allocations: 1.406 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.326e-05/0.007654, allocations: 22.78 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.007657, allocations: 1.188 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.031e-05/0.007717, allocations: 16.58 kB / 313.5 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.00773, allocations: 13.78 kB / 313.5 MB, free: 55.42 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.764e-05/0.007818, allocations: 249.1 kB / 313.8 MB, free: 55.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.00785, allocations: 40.23 kB / 313.8 MB, free: 55.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.007874, allocations: 19.17 kB / 313.9 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.007876, allocations: 2.375 kB / 313.9 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.007879, allocations: 0 / 313.9 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.007884, allocations: 4.484 kB / 313.9 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.007989, allocations: 157.8 kB / 314 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.007991, allocations: 1.562 kB / 314 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.008026, allocations: 6.875 kB / 314 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.008029, allocations: 1.312 kB / 314 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.008049, allocations: 11.97 kB / 314 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.008051, allocations: 9.031 kB / 314 MB, free: 54.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.008052, allocations: 4 kB / 314 MB, free: 54.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.00845, allocations: 415.7 kB / 314.5 MB, free: 54.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.008466, allocations: 22.12 kB / 314.5 MB, free: 54.71 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.008492, allocations: 4.594 kB / 314.5 MB, free: 54.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.633e-05/0.008549, allocations: 18.81 kB / 314.5 MB, free: 54.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.008593, allocations: 17.64 kB / 314.5 MB, free: 54.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.008611, allocations: 12.84 kB / 314.5 MB, free: 54.7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.139e-05/0.008663, allocations: 164.3 kB / 314.7 MB, free: 54.57 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008663, allocations: 0 / 314.7 MB, free: 54.57 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002241/0.008887, allocations: 77.42 kB / 314.8 MB, free: 54.56 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.0001609/0.009048, allocations: 168.9 kB / 314.9 MB, free: 54.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.009286, allocations: 367 kB / 315.3 MB, free: 54.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.009287, allocations: 0 / 315.3 MB, free: 54.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.009396, allocations: 253.5 kB / 315.5 MB, free: 53.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.009554, allocations: 21.45 kB / 315.6 MB, free: 53.95 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.00991, allocations: 364.8 kB / 315.9 MB, free: 53.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.368e-05/0.009954, allocations: 81.55 kB / 316 MB, free: 53.61 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.46e-05/0.009988, allocations: 13.45 kB / 316 MB, free: 53.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.01011, allocations: 117.8 kB / 316.1 MB, free: 53.53 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01011, allocations: 1.438 kB / 316.1 MB, free: 53.53 MB / 282.7 MB Notification: Performance of Templates: time 0.004141/0.01425, allocations: 3.043 MB / 319.2 MB, free: 50.97 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.6614365549758077]