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.001297/0.001297, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001381/0.001381, allocations: 222.8 kB / 23 MB, free: 4.914 MB / 14.72 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 1.31/1.31, allocations: 207.7 MB / 233.9 MB, free: 9.801 MB / 190.1 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.008336/0.008336, allocations: 1.97 MB / 288.1 MB, free: 3.676 MB / 222.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 65.2 kB / 403 MB, free: 50.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05922/0.06145, allocations: 49.7 MB / 452.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001803/0.06325, allocations: 1.283 MB / 454 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001359/0.06339, allocations: 31.89 kB / 454 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.06342, allocations: 0 / 454 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.589e-05/0.06344, allocations: 0 / 454 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.269e-05/0.06346, allocations: 3.938 kB / 454 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001217/0.06359, allocations: 15.98 kB / 454 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.724e-05/0.06365, allocations: 23.97 kB / 454.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.0637, allocations: 3.938 kB / 454.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.998e-05/0.06373, allocations: 15.98 kB / 454.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.168e-05/0.06378, allocations: 11.98 kB / 454.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.0638, allocations: 7.984 kB / 454.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.005e-05/0.06381, allocations: 0 / 454.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.06383, allocations: 15.92 kB / 454.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/0.06386, allocations: 0 / 454.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.061e-05/0.06393, allocations: 27.84 kB / 454.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.06393, allocations: 4 kB / 454.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.06393, allocations: 0 / 454.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.06394, allocations: 3.938 kB / 454.1 MB, free: 4.152 MB / 318.1 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.0004337/0.06437, allocations: 272.8 kB / 454.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.802e-05/0.0644, allocations: 15.98 kB / 454.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.06443, allocations: 4.891 kB / 454.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.609e-05/0.06448, allocations: 110.5 kB / 454.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.404e-05/0.06453, allocations: 55.97 kB / 454.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.06454, allocations: 4.375 kB / 454.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.06466, allocations: 50.23 kB / 454.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.06467, allocations: 3.938 kB / 454.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.06467, allocations: 0 / 454.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.06468, allocations: 0 / 454.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.551e-05/0.06474, allocations: 23.97 kB / 454.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.704e-05/0.06483, allocations: 109.3 kB / 454.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.383e-05/0.06492, allocations: 38.59 kB / 454.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.806e-05/0.06496, allocations: 16.86 kB / 454.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.06497, allocations: 96 / 454.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.06511, allocations: 83.34 kB / 454.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.06511, allocations: 3.938 kB / 454.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002302/0.06534, allocations: 105.5 kB / 455 MB, free: 3.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.146e-05/0.06536, allocations: 55.41 kB / 455.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.559e-05/0.06541, allocations: 97.86 kB / 455.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/0.06542, allocations: 29.81 kB / 455.2 MB, free: 2.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.027e-05/0.06544, allocations: 92.03 kB / 455.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.06545, allocations: 15.91 kB / 455.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.06548, allocations: 25.72 kB / 455.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.268e-05/0.06552, allocations: 314.8 kB / 455.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.949e-05/0.06556, allocations: 23.92 kB / 455.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.174e-05/0.06562, allocations: 46.56 kB / 455.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.799e-05/0.0657, allocations: 58.48 kB / 455.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.06571, allocations: 4 kB / 455.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001286/0.06583, allocations: 85.61 kB / 455.9 MB, free: 2.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.297e-06/0.06584, allocations: 4 kB / 455.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.06585, allocations: 7.922 kB / 455.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.06586, allocations: 0 / 455.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.887e-05/0.06593, allocations: 15.92 kB / 455.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.06593, allocations: 0 / 455.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.274e-05/0.066, allocations: 11.95 kB / 455.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.066, allocations: 4.062 kB / 455.9 MB, free: 2.195 MB / 318.1 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.468e-05/0.06605, allocations: 117.8 kB / 456 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-06/0.06606, allocations: 4 kB / 456 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.908e-05/0.06608, allocations: 12 kB / 456 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.06608, allocations: 0 / 456 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.06608, allocations: 0 / 456 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.06608, allocations: 0 / 456 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.67e-05/0.06613, allocations: 113.3 kB / 456.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.06613, allocations: 0 / 456.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.589e-05/0.06616, allocations: 4 kB / 456.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.06616, allocations: 4 kB / 456.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.06617, allocations: 0 / 456.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.06617, allocations: 3.938 kB / 456.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.06617, allocations: 3.938 kB / 456.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.0663, allocations: 113 kB / 456.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-06/0.0663, allocations: 3.938 kB / 456.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.06632, allocations: 4.188 kB / 456.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.899e-05/0.06637, allocations: 11.92 kB / 456.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.06641, allocations: 11.92 kB / 456.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.06641, allocations: 4 kB / 456.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.554e-05/0.06643, allocations: 83.28 kB / 456.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.06643, allocations: 0 / 456.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001846/0.06661, allocations: 8 kB / 456.4 MB, free: 1.637 MB / 318.1 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 5.133e-05/0.06667, allocations: 95.23 kB / 456.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001445/0.06681, allocations: 56.38 kB / 456.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.06681, allocations: 3.938 kB / 456.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.378e-05/0.06687, allocations: 20.09 kB / 456.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.06699, allocations: 12.2 kB / 456.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002438/0.06723, allocations: 159.4 kB / 456.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.456e-05/0.06726, allocations: 59.36 kB / 456.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.06728, allocations: 7.438 kB / 456.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.06728, allocations: 0 / 456.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of Templates: time 0.001784/0.06907, allocations: 0.72 MB / 457.5 MB, free: 464 kB / 318.1 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=480 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.125686474144459] Failed to read output from testmodel.py, exit status != 0: 0.07585126534104347 0.090762361 0.023897623 Calling exit ...