Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.0009466/0.0009466, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001543/0.001543, allocations: 173 kB / 23.5 MB, free: 1.059 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.869/0.869, allocations: 158.6 MB / 185.3 MB, free: 2.93 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.01158/0.01158, allocations: 1.439 MB / 239 MB, free: 13.73 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.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.484e-06/2.484e-06, allocations: 0 / 304.6 MB, free: 61.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.906e-05, allocations: 3.594 kB / 304.6 MB, free: 61.39 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001904/0.001933, allocations: 1.314 MB / 305.9 MB, free: 60.51 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001636/0.002097, allocations: 28.22 kB / 305.9 MB, free: 60.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.706e-05/0.002124, allocations: 0 / 305.9 MB, free: 60.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.915e-05/0.002153, allocations: 5.094 kB / 305.9 MB, free: 60.49 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.948e-05/0.002182, allocations: 0 / 305.9 MB, free: 60.49 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001601/0.002343, allocations: 20.33 kB / 306 MB, free: 60.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.452e-05/0.002427, allocations: 27.09 kB / 306 MB, free: 60.47 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.563e-05/0.002473, allocations: 2.141 kB / 306 MB, free: 60.47 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.297e-05/0.002536, allocations: 16.69 kB / 306 MB, free: 60.47 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.389e-05/0.0026, allocations: 14.02 kB / 306 MB, free: 60.46 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.002622, allocations: 2.406 kB / 306 MB, free: 60.46 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-06/0.002632, allocations: 6.125 kB / 306 MB, free: 60.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.002657, allocations: 9.094 kB / 306 MB, free: 60.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.287e-05/0.0027, allocations: 8.734 kB / 306 MB, free: 60.45 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.968e-05/0.00278, allocations: 22.88 kB / 306.1 MB, free: 60.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.002782, allocations: 0 / 306.1 MB, free: 60.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002783, allocations: 1.281 kB / 306.1 MB, free: 60.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.002787, allocations: 4 kB / 306.1 MB, free: 60.44 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003924/0.003179, allocations: 365.9 kB / 306.4 MB, free: 60.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.003216, allocations: 13.73 kB / 306.4 MB, free: 60.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.003261, allocations: 5.938 kB / 306.5 MB, free: 60.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.711e-05/0.003308, allocations: 115.5 kB / 306.6 MB, free: 59.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-05/0.003368, allocations: 57.88 kB / 306.6 MB, free: 59.87 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.00338, allocations: 2.656 kB / 306.6 MB, free: 59.87 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.003491, allocations: 60.28 kB / 306.7 MB, free: 59.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.003497, allocations: 4.188 kB / 306.7 MB, free: 59.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.003507, allocations: 1.438 kB / 306.7 MB, free: 59.82 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.003514, allocations: 4.125 kB / 306.7 MB, free: 59.81 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.786e-05/0.003542, allocations: 6 kB / 306.7 MB, free: 59.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.577e-05/0.003638, allocations: 130.1 kB / 306.8 MB, free: 59.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.74e-05/0.003705, allocations: 39.91 kB / 306.9 MB, free: 59.62 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.331e-05/0.003729, allocations: 18.8 kB / 306.9 MB, free: 59.61 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.723e-06/0.003735, allocations: 0.75 kB / 306.9 MB, free: 59.61 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.003847, allocations: 73.58 kB / 307 MB, free: 59.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.003848, allocations: 4 kB / 307 MB, free: 59.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001754/0.004023, allocations: 81.28 kB / 307 MB, free: 59.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.00405, allocations: 62.64 kB / 307.1 MB, free: 59.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.306e-05/0.004103, allocations: 162.5 kB / 307.3 MB, free: 59.26 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.123e-06/0.004111, allocations: 26.89 kB / 307.3 MB, free: 59.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.004134, allocations: 133.8 kB / 307.4 MB, free: 59.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.257e-05/0.004147, allocations: 15.78 kB / 307.4 MB, free: 59.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.004178, allocations: 31.72 kB / 307.5 MB, free: 59.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/0.004217, allocations: 495.9 kB / 307.9 MB, free: 58.56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.756e-05/0.004245, allocations: 13.98 kB / 308 MB, free: 58.55 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.288e-05/0.004277, allocations: 39.8 kB / 308 MB, free: 58.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.636e-05/0.004334, allocations: 53.86 kB / 308.1 MB, free: 58.47 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.004336, allocations: 0 / 308.1 MB, free: 58.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.125e-05/0.004427, allocations: 72.77 kB / 308.1 MB, free: 58.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.004442, allocations: 5.406 kB / 308.1 MB, free: 58.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.004447, allocations: 1.219 kB / 308.1 MB, free: 58.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.004459, allocations: 2.031 kB / 308.1 MB, free: 58.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.44e-05/0.004534, allocations: 20.34 kB / 308.2 MB, free: 58.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.004541, allocations: 11.58 kB / 308.2 MB, free: 58.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.327e-05/0.004575, allocations: 13.33 kB / 308.2 MB, free: 58.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.004581, allocations: 2.469 kB / 308.2 MB, free: 58.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 4.694e-05/0.004628, allocations: 160.3 kB / 308.3 MB, free: 58.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.004639, allocations: 5.656 kB / 308.3 MB, free: 58.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.937e-05/0.004658, allocations: 8.875 kB / 308.3 MB, free: 58.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.00466, allocations: 1.312 kB / 308.4 MB, free: 58.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.004664, allocations: 3.938 kB / 308.4 MB, free: 58.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.004668, allocations: 1.953 kB / 308.4 MB, free: 58.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.149e-05/0.004719, allocations: 127.1 kB / 308.5 MB, free: 58.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.00472, allocations: 1.438 kB / 308.5 MB, free: 58.08 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.233e-05/0.004733, allocations: 2.922 kB / 308.5 MB, free: 58.08 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.004734, allocations: 1.312 kB / 308.5 MB, free: 58.08 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.004742, allocations: 5.688 kB / 308.5 MB, free: 58.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.004743, allocations: 4.547 kB / 308.5 MB, free: 58.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.004744, allocations: 3.562 kB / 308.5 MB, free: 58.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.311e-05/0.004837, allocations: 112.9 kB / 308.6 MB, free: 57.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-06/0.004843, allocations: 3.016 kB / 308.6 MB, free: 57.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.004857, allocations: 9.25 kB / 308.6 MB, free: 57.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.137e-05/0.004878, allocations: 8.578 kB / 308.6 MB, free: 57.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.004925, allocations: 9.094 kB / 308.6 MB, free: 57.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.00493, allocations: 5.469 kB / 308.6 MB, free: 57.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.552e-05/0.004946, allocations: 125.7 kB / 308.8 MB, free: 57.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004946, allocations: 1.062 kB / 308.8 MB, free: 57.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001246/0.005071, allocations: 8.812 kB / 308.8 MB, free: 57.84 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: 6 ($whenCondition2,$whenCondition3,$whenCondition1,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.118e-05/0.005132, allocations: 94.36 kB / 308.9 MB, free: 57.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.005235, allocations: 49.25 kB / 308.9 MB, free: 57.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.005236, allocations: 224 / 308.9 MB, free: 57.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.642e-05/0.005273, allocations: 31.88 kB / 308.9 MB, free: 57.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001073/0.00538, allocations: 3.781 kB / 309 MB, free: 57.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.005618, allocations: 126.2 kB / 309.1 MB, free: 57.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.134e-05/0.005639, allocations: 61.3 kB / 309.1 MB, free: 57.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.108e-05/0.00566, allocations: 3.703 kB / 309.1 MB, free: 57.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.639e-05/0.005687, allocations: 12.03 kB / 309.2 MB, free: 57.5 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.005688, allocations: 4 kB / 309.2 MB, free: 57.5 MB / 282.7 MB Notification: Performance of Templates: time 0.002121/0.007809, allocations: 0.6563 MB / 309.8 MB, free: 57.43 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Controls.PatientController.makefile [Timeout 660] (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=240 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.673655199119821]