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.0007978/0.0007978, allocations: 93.06 kB / 19.65 MB, free: 272 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.0008471/0.0008471, allocations: 165 kB / 23.02 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.8684/0.8684, allocations: 158.6 MB / 184.9 MB, free: 2.918 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.01413/0.01413, allocations: 1.447 MB / 238.7 MB, free: 13.65 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.543e-06/1.543e-06, allocations: 0 / 304.6 MB, free: 61.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.006e-05, allocations: 5.406 kB / 304.6 MB, free: 61.02 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00429/0.00431, allocations: 1.542 MB / 306.2 MB, free: 60 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009644/0.005274, allocations: 0.7253 MB / 306.9 MB, free: 59.53 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.05e-05/0.005345, allocations: 1.062 kB / 306.9 MB, free: 59.53 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.005485, allocations: 56 kB / 306.9 MB, free: 59.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.883e-05/0.005584, allocations: 61.53 kB / 307 MB, free: 59.5 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.006085, allocations: 170.3 kB / 307.2 MB, free: 59.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.00627, allocations: 159.6 kB / 307.3 MB, free: 59.37 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.006351, allocations: 13.98 kB / 307.3 MB, free: 59.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.006484, allocations: 104.8 kB / 307.4 MB, free: 59.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.006646, allocations: 95.16 kB / 307.5 MB, free: 59.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.006673, allocations: 14.28 kB / 307.5 MB, free: 59.31 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.006862, allocations: 147.1 kB / 307.7 MB, free: 59.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.006926, allocations: 29.47 kB / 307.7 MB, free: 59.26 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.456e-05/0.006991, allocations: 44.83 kB / 307.8 MB, free: 59.24 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.007263, allocations: 242.2 kB / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.007265, allocations: 1.156 kB / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.007266, allocations: 0 / 308 MB, free: 59.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.007271, allocations: 0 / 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.0005469/0.007818, allocations: 0.5534 MB / 308.5 MB, free: 58.63 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.007855, allocations: 13.02 kB / 308.6 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.965e-05/0.007914, allocations: 23.92 kB / 308.6 MB, free: 58.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.008079, allocations: 165.3 kB / 308.7 MB, free: 58.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.922e-05/0.008128, allocations: 59.25 kB / 308.8 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.008148, allocations: 11.25 kB / 308.8 MB, free: 58.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.008353, allocations: 166.1 kB / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.008362, allocations: 192 / 309 MB, free: 58.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.00838, allocations: 8.094 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.008389, allocations: 1.375 kB / 309 MB, free: 58.26 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.516e-05/0.008474, allocations: 99.55 kB / 309.1 MB, free: 58.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003335/0.008807, allocations: 346.8 kB / 309.4 MB, free: 57.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.008936, allocations: 137.9 kB / 309.6 MB, free: 57.78 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.441e-05/0.009, allocations: 105.2 kB / 309.7 MB, free: 57.69 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.009008, allocations: 6.688 kB / 309.7 MB, free: 57.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.009191, allocations: 249.2 kB / 309.9 MB, free: 57.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.112e-06/0.009193, allocations: 0 / 309.9 MB, free: 57.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004006/0.009593, allocations: 441.8 kB / 310.3 MB, free: 57.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.009628, allocations: 117.3 kB / 310.5 MB, free: 57.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.009731, allocations: 230.3 kB / 310.7 MB, free: 56.9 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.009744, allocations: 29.64 kB / 310.7 MB, free: 56.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.009788, allocations: 161.6 kB / 310.9 MB, free: 56.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.009827, allocations: 59.08 kB / 310.9 MB, free: 56.67 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.009879, allocations: 51.55 kB / 311 MB, free: 56.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.815e-05/0.009927, allocations: 0.5034 MB / 311.5 MB, free: 56.13 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.566e-05/0.01, allocations: 94.53 kB / 311.6 MB, free: 56.06 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.232e-05/0.01008, allocations: 100.5 kB / 311.7 MB, free: 55.99 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.01022, allocations: 225.4 kB / 311.9 MB, free: 55.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.01022, allocations: 1.125 kB / 311.9 MB, free: 55.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002776/0.0105, allocations: 351.3 kB / 312.2 MB, free: 55.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.01053, allocations: 71.42 kB / 312.3 MB, free: 55.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01053, allocations: 0 / 312.3 MB, free: 55.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.01055, allocations: 5.656 kB / 312.3 MB, free: 55.53 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.76e-05/0.01064, allocations: 26.27 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.01064, allocations: 0 / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.286e-05/0.01071, allocations: 15.61 kB / 312.3 MB, free: 55.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.01072, allocations: 10.88 kB / 312.4 MB, free: 55.52 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.64e-05/0.01081, allocations: 239.7 kB / 312.6 MB, free: 55.28 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.01084, allocations: 31.8 kB / 312.6 MB, free: 55.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.01087, allocations: 22.02 kB / 312.6 MB, free: 55.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.01087, allocations: 2.234 kB / 312.6 MB, free: 55.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.01088, allocations: 5.312 kB / 312.6 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01088, allocations: 4.5 kB / 312.7 MB, free: 55.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.01099, allocations: 188.8 kB / 312.8 MB, free: 55.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.01099, allocations: 5.156 kB / 312.8 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/0.01102, allocations: 9.344 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01102, allocations: 5.25 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.01104, allocations: 7.266 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.01104, allocations: 0 / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01104, allocations: 1.062 kB / 312.9 MB, free: 55.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000321/0.01136, allocations: 435.7 kB / 313.3 MB, free: 54.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.01138, allocations: 27.69 kB / 313.3 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.0114, allocations: 10.75 kB / 313.3 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.685e-05/0.01145, allocations: 9.422 kB / 313.3 MB, free: 54.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.01151, allocations: 27.11 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.01153, allocations: 10.48 kB / 313.4 MB, free: 54.76 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.732e-05/0.01157, allocations: 165.8 kB / 313.5 MB, free: 54.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01157, allocations: 0 / 313.5 MB, free: 54.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.01178, allocations: 74.75 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.0001577/0.01193, allocations: 153.8 kB / 313.8 MB, free: 54.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.01219, allocations: 391.7 kB / 314.1 MB, free: 54.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01219, allocations: 0 / 314.1 MB, free: 54.22 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.01231, allocations: 259.4 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.0001621/0.01247, allocations: 25.56 kB / 314.4 MB, free: 54 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.01285, allocations: 360.3 kB / 314.8 MB, free: 53.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.395e-05/0.01288, allocations: 79.97 kB / 314.9 MB, free: 53.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.048e-05/0.01291, allocations: 13.2 kB / 314.9 MB, free: 53.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.577e-05/0.01294, allocations: 15.69 kB / 314.9 MB, free: 53.64 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01294, allocations: 0 / 314.9 MB, free: 53.64 MB / 282.7 MB Notification: Performance of Templates: time 0.003937/0.01687, allocations: 2.743 MB / 317.6 MB, free: 51.61 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.8698956221342087]