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.001759/0.001759, allocations: 105.8 kB / 19.69 MB, free: 2.258 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.001956/0.001956, allocations: 216.2 kB / 23.01 MB, free: 5.113 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.489/1.489, allocations: 207.6 MB / 233.8 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.01/0.01, allocations: 1.972 MB / 288 MB, free: 3.859 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.002213/0.002213, allocations: 70.88 kB / 403 MB, free: 50.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07219/0.0744, allocations: 49.71 MB / 452.7 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002024/0.07643, allocations: 1.279 MB / 454 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001617/0.07659, allocations: 35.84 kB / 454 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.471e-05/0.07662, allocations: 0 / 454 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.07665, allocations: 0 / 454 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.121e-05/0.07668, allocations: 3.984 kB / 454 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.07682, allocations: 11.92 kB / 454.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.089e-05/0.07689, allocations: 31.91 kB / 454.1 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.07693, allocations: 0 / 454.1 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.217e-05/0.07696, allocations: 15.98 kB / 454.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.815e-05/0.07702, allocations: 15.92 kB / 454.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.07704, allocations: 8 kB / 454.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.678e-06/0.07705, allocations: 0 / 454.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.068e-05/0.07707, allocations: 7.984 kB / 454.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.88e-05/0.07711, allocations: 15.92 kB / 454.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.622e-05/0.07717, allocations: 19.91 kB / 454.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.07718, allocations: 4 kB / 454.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.07718, allocations: 0 / 454.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.07718, allocations: 0 / 454.2 MB, free: 4.32 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.0004452/0.07763, allocations: 270.8 kB / 454.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.07766, allocations: 11.98 kB / 454.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.0777, allocations: 8.891 kB / 454.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.756e-05/0.07775, allocations: 106.5 kB / 454.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.07781, allocations: 59.97 kB / 454.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.07782, allocations: 4.375 kB / 454.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.07794, allocations: 54.17 kB / 454.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.07795, allocations: 3.938 kB / 454.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.07796, allocations: 0 / 454.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.07796, allocations: 7.984 kB / 454.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.689e-05/0.07803, allocations: 15.98 kB / 454.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000108/0.07814, allocations: 140.7 kB / 454.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.433e-05/0.07823, allocations: 38.59 kB / 454.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.974e-05/0.07827, allocations: 12.86 kB / 454.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.07828, allocations: 0 / 454.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.07844, allocations: 95.33 kB / 455 MB, free: 3.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.07844, allocations: 0 / 455 MB, free: 3.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002353/0.07867, allocations: 101.6 kB / 455.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.07869, allocations: 51.41 kB / 455.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.07874, allocations: 97.86 kB / 455.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.07876, allocations: 29.7 kB / 455.3 MB, free: 3.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.417e-05/0.07878, allocations: 92.08 kB / 455.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.07879, allocations: 19.78 kB / 455.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.168e-05/0.07883, allocations: 21.72 kB / 455.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.07887, allocations: 322.8 kB / 455.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.052e-05/0.07892, allocations: 19.98 kB / 455.7 MB, free: 2.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-05/0.07897, allocations: 42.69 kB / 455.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.973e-05/0.07906, allocations: 54.5 kB / 455.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.07906, allocations: 4 kB / 455.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001435/0.07921, allocations: 89.89 kB / 455.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.07922, allocations: 11.94 kB / 455.9 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.07923, allocations: 4.062 kB / 455.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.07924, allocations: 0 / 455.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.123e-05/0.07932, allocations: 8 kB / 455.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.07932, allocations: 0 / 455.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.07939, allocations: 15.94 kB / 455.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.07939, allocations: 0 / 455.9 MB, free: 2.324 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.912e-05/0.07944, allocations: 113.8 kB / 456.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.07945, allocations: 15.86 kB / 456.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.07947, allocations: 12.06 kB / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.07947, allocations: 0 / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.07948, allocations: 0 / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.07948, allocations: 0 / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.169e-05/0.07954, allocations: 128.8 kB / 456.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.07954, allocations: 0 / 456.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.703e-05/0.07957, allocations: 7.984 kB / 456.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.07957, allocations: 3.938 kB / 456.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.07958, allocations: 3.938 kB / 456.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.07958, allocations: 0 / 456.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.07958, allocations: 0 / 456.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.07971, allocations: 117 kB / 456.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-06/0.07972, allocations: 7.938 kB / 456.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.07973, allocations: 0 / 456.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.883e-05/0.07978, allocations: 11.98 kB / 456.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.07982, allocations: 11.92 kB / 456.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.07983, allocations: 0 / 456.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.826e-05/0.07985, allocations: 83.28 kB / 456.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.07985, allocations: 0 / 456.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001879/0.08003, allocations: 12.19 kB / 456.5 MB, free: 1.727 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.327e-05/0.08009, allocations: 99.12 kB / 456.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.08024, allocations: 51.91 kB / 456.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.08024, allocations: 0 / 456.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.452e-05/0.08029, allocations: 24.2 kB / 456.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.08043, allocations: 4 kB / 456.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/0.08069, allocations: 151.3 kB / 456.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.128e-05/0.08079, allocations: 0.6807 MB / 457.5 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.08081, allocations: 7.438 kB / 457.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.08081, allocations: 4 kB / 457.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of Templates: time 0.001875/0.08269, allocations: 0.7088 MB / 458.2 MB, free: 15.93 MB / 334.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.62446594517678] Failed to read output from testmodel.py, exit status != 0: 0.09017758187837899 0.105949544 0.025731293000000002 Calling exit ...