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.001007/0.001007, allocations: 85.91 kB / 19.87 MB, free: 4.625 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.0009683/0.0009683, allocations: 169.7 kB / 23.27 MB, free: 1.23 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.9428/0.9428, allocations: 158.6 MB / 185.2 MB, free: 2.809 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.006519/0.006519, allocations: 1.435 MB / 239 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.543e-06/1.543e-06, allocations: 0 / 305.1 MB, free: 60.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.216e-05/1.371e-05, allocations: 2.312 kB / 305.1 MB, free: 60.88 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002239/0.002253, allocations: 1.548 MB / 306.6 MB, free: 59.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.003257, allocations: 0.7064 MB / 307.3 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.174e-05/0.003328, allocations: 5.031 kB / 307.3 MB, free: 59.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.003476, allocations: 64.61 kB / 307.4 MB, free: 59.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.003596, allocations: 69.83 kB / 307.5 MB, free: 59.35 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.004124, allocations: 172.5 kB / 307.6 MB, free: 59.28 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.004342, allocations: 164.7 kB / 307.8 MB, free: 59.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.039e-05/0.004423, allocations: 10.53 kB / 307.8 MB, free: 59.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.004582, allocations: 107.6 kB / 307.9 MB, free: 59.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.004755, allocations: 109.1 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.004781, allocations: 9.469 kB / 308 MB, free: 59.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.005005, allocations: 156.8 kB / 308.2 MB, free: 59.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.222e-05/0.005068, allocations: 33.97 kB / 308.2 MB, free: 59.1 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.803e-05/0.005126, allocations: 41.41 kB / 308.2 MB, free: 59.08 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.005424, allocations: 240.4 kB / 308.5 MB, free: 58.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.005425, allocations: 1.375 kB / 308.5 MB, free: 58.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005426, allocations: 0 / 308.5 MB, free: 58.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.005431, allocations: 0.7969 kB / 308.5 MB, free: 58.99 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.0005381/0.005969, allocations: 0.5595 MB / 309 MB, free: 58.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.006008, allocations: 17.58 kB / 309.1 MB, free: 58.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.006063, allocations: 28.53 kB / 309.1 MB, free: 58.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.006214, allocations: 165.8 kB / 309.2 MB, free: 58.29 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.006259, allocations: 62.03 kB / 309.3 MB, free: 58.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.006281, allocations: 8.188 kB / 309.3 MB, free: 58.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.006448, allocations: 158 kB / 309.5 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.006456, allocations: 0.75 kB / 309.5 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.006468, allocations: 6.156 kB / 309.5 MB, free: 58.1 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.006473, allocations: 2.75 kB / 309.5 MB, free: 58.1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.336e-05/0.006547, allocations: 91.03 kB / 309.6 MB, free: 58.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000319/0.006866, allocations: 322.7 kB / 309.9 MB, free: 57.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.006974, allocations: 128.4 kB / 310 MB, free: 57.65 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.935e-05/0.007024, allocations: 95.06 kB / 310.1 MB, free: 57.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.004e-06/0.007031, allocations: 2.75 kB / 310.1 MB, free: 57.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.007197, allocations: 254.5 kB / 310.4 MB, free: 57.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.007198, allocations: 0 / 310.4 MB, free: 57.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003418/0.00754, allocations: 416.3 kB / 310.8 MB, free: 57.11 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.00757, allocations: 124.8 kB / 310.9 MB, free: 56.97 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.00767, allocations: 233 kB / 311.1 MB, free: 56.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.007685, allocations: 34.75 kB / 311.1 MB, free: 56.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4e-05/0.007725, allocations: 162.4 kB / 311.3 MB, free: 56.6 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.007764, allocations: 64.2 kB / 311.4 MB, free: 56.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.007816, allocations: 54.14 kB / 311.4 MB, free: 56.51 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.007869, allocations: 0.506 MB / 311.9 MB, free: 56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.371e-05/0.007922, allocations: 91.12 kB / 312 MB, free: 55.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.138e-05/0.007974, allocations: 87.97 kB / 312.1 MB, free: 55.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.008086, allocations: 209 kB / 312.3 MB, free: 55.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.008088, allocations: 0 / 312.3 MB, free: 55.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002712/0.00836, allocations: 347.2 kB / 312.6 MB, free: 55.5 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.008404, allocations: 75.55 kB / 312.7 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.00841, allocations: 0 / 312.7 MB, free: 55.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.008424, allocations: 5.047 kB / 312.7 MB, free: 55.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.352e-05/0.008507, allocations: 18.12 kB / 312.7 MB, free: 55.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.008512, allocations: 2.453 kB / 312.7 MB, free: 55.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.43e-05/0.008577, allocations: 19.41 kB / 312.8 MB, free: 55.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.008589, allocations: 9.25 kB / 312.8 MB, free: 55.41 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.955e-05/0.008678, allocations: 246.8 kB / 313 MB, free: 55.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.00871, allocations: 40.47 kB / 313 MB, free: 55.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.487e-05/0.008735, allocations: 19.8 kB / 313.1 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.008737, allocations: 1.281 kB / 313.1 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.008739, allocations: 1.344 kB / 313.1 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.008743, allocations: 0.6562 kB / 313.1 MB, free: 55.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.008845, allocations: 155.4 kB / 313.2 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.008846, allocations: 1.562 kB / 313.2 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.597e-05/0.008872, allocations: 12.98 kB / 313.2 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.008874, allocations: 0.7031 kB / 313.2 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.008888, allocations: 7.109 kB / 313.2 MB, free: 55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.008891, allocations: 10.12 kB / 313.3 MB, free: 54.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.008892, allocations: 0 / 313.3 MB, free: 54.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.009172, allocations: 420.1 kB / 313.7 MB, free: 54.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.009187, allocations: 20.48 kB / 313.7 MB, free: 54.71 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.009212, allocations: 9.656 kB / 313.7 MB, free: 54.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.594e-05/0.009258, allocations: 13.73 kB / 313.7 MB, free: 54.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.931e-05/0.009307, allocations: 19.78 kB / 313.7 MB, free: 54.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.009327, allocations: 13.47 kB / 313.7 MB, free: 54.7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.533e-05/0.009373, allocations: 167.3 kB / 313.9 MB, free: 54.56 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009373, allocations: 0 / 313.9 MB, free: 54.56 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.009589, allocations: 78.23 kB / 314 MB, free: 54.55 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.0001525/0.009741, allocations: 165 kB / 314.1 MB, free: 54.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.009954, allocations: 368.8 kB / 314.5 MB, free: 54.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.009956, allocations: 1.562 kB / 314.5 MB, free: 54.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.01007, allocations: 253.3 kB / 314.8 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.000153/0.01022, allocations: 28.08 kB / 314.8 MB, free: 53.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003264/0.01055, allocations: 366.5 kB / 315.1 MB, free: 53.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.268e-05/0.01058, allocations: 81.11 kB / 315.2 MB, free: 53.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.078e-05/0.01061, allocations: 9.438 kB / 315.2 MB, free: 53.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.01071, allocations: 116.9 kB / 315.3 MB, free: 53.52 MB / 282.7 MB Notification: Performance of SimCode: time 4e-07/0.01071, allocations: 0 / 315.3 MB, free: 53.52 MB / 282.7 MB Notification: Performance of Templates: time 0.003845/0.01456, allocations: 2.991 MB / 318.3 MB, free: 51.02 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.873720739968121]