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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00585/0.005851, allocations: 95.61 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 197.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009622/0.009622, allocations: 1.928 MB / 271.8 MB, free: 3.246 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 68.31 kB / 378.2 MB, free: 476 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09052, allocations: 47.13 MB / 425.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.2106/0.3012, allocations: 1.275 MB / 426.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002107/0.3014, allocations: 32.75 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.53e-05/0.3015, allocations: 0 / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.508e-05/0.3016, allocations: 2.844 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.701e-05/0.3016, allocations: 3.938 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.3018, allocations: 11.81 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3019, allocations: 26.06 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.51e-05/0.302, allocations: 5.562 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.403e-05/0.302, allocations: 16.22 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.065e-05/0.3021, allocations: 15.94 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.3021, allocations: 0.5312 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.428e-05/0.3022, allocations: 2.406 kB / 426.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.3022, allocations: 13.7 kB / 426.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.3023, allocations: 11.61 kB / 426.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.685e-05/0.3023, allocations: 17.39 kB / 426.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3024, allocations: 4.25 kB / 426.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3024, allocations: 0 / 426.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3024, allocations: 0 / 426.8 MB, free: 11.02 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.0005518/0.3029, allocations: 346.8 kB / 427.1 MB, free: 10.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.303, allocations: 12.89 kB / 427.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.303, allocations: 7.453 kB / 427.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.682e-05/0.3031, allocations: 172.9 kB / 427.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.126e-05/0.3032, allocations: 33.66 kB / 427.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.3032, allocations: 4.922 kB / 427.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.3034, allocations: 48.28 kB / 427.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3034, allocations: 3.938 kB / 427.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.3034, allocations: 2.094 kB / 427.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3034, allocations: 0 / 427.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.35e-05/0.3035, allocations: 19.11 kB / 427.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.3037, allocations: 163.6 kB / 427.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3038, allocations: 45.55 kB / 427.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.116e-05/0.3039, allocations: 16.48 kB / 427.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.3039, allocations: 0.9375 kB / 427.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.3041, allocations: 84.45 kB / 427.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3042, allocations: 0 / 427.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002825/0.3044, allocations: 105.8 kB / 427.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.3045, allocations: 54.81 kB / 427.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.468e-05/0.3045, allocations: 97.53 kB / 428 MB, free: 9.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.3046, allocations: 27.39 kB / 428 MB, free: 9.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.98e-05/0.3046, allocations: 90.59 kB / 428.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.3046, allocations: 22.3 kB / 428.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.3047, allocations: 22.03 kB / 428.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.259e-05/0.3047, allocations: 316.6 kB / 428.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.096e-05/0.3048, allocations: 18.91 kB / 428.5 MB, free: 9.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.715e-05/0.3049, allocations: 40.86 kB / 428.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.305, allocations: 62.44 kB / 428.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.305, allocations: 0 / 428.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001613/0.3052, allocations: 88.19 kB / 428.7 MB, free: 9.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3052, allocations: 10.16 kB / 428.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.3052, allocations: 0.5156 kB / 428.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3052, allocations: 1.531 kB / 428.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.177e-05/0.3053, allocations: 8.781 kB / 428.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3053, allocations: 10.2 kB / 428.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.3054, allocations: 14.06 kB / 428.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3054, allocations: 7.609 kB / 428.7 MB, free: 9.363 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 6.709e-05/0.3055, allocations: 121.7 kB / 428.8 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.3055, allocations: 6.297 kB / 428.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.608e-05/0.3055, allocations: 7.906 kB / 428.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.3055, allocations: 1.625 kB / 428.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3055, allocations: 0 / 428.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3056, allocations: 4.984 kB / 428.8 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.152e-05/0.3056, allocations: 157.4 kB / 429 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3056, allocations: 0.7969 kB / 429 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.806e-05/0.3057, allocations: 3.328 kB / 429 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.3057, allocations: 6.125 kB / 429 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3057, allocations: 3.906 kB / 429 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3057, allocations: 5.406 kB / 429 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3057, allocations: 3.938 kB / 429 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.3059, allocations: 117.7 kB / 429.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.3059, allocations: 83.14 kB / 429.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.306, allocations: 3.109 kB / 429.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.448e-05/0.306, allocations: 9.844 kB / 429.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.3061, allocations: 7.922 kB / 429.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.3061, allocations: 1.516 kB / 429.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.175e-05/0.3061, allocations: 81.91 kB / 429.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3061, allocations: 0 / 429.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001938/0.3063, allocations: 13.2 kB / 429.3 MB, free: 8.781 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 7.952e-05/0.3064, allocations: 94.73 kB / 429.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.3066, allocations: 51.69 kB / 429.5 MB, free: 8.691 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3066, allocations: 0 / 429.5 MB, free: 8.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.593e-05/0.3067, allocations: 27.69 kB / 429.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.3069, allocations: 7.484 kB / 429.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/0.3072, allocations: 124.9 kB / 429.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001519/0.3074, allocations: 0.6786 MB / 430.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.369e-05/0.3074, allocations: 8.344 kB / 430.3 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.3074, allocations: 10.77 kB / 430.3 MB, free: 7.871 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3075, allocations: 1.719 kB / 430.3 MB, free: 7.871 MB / 318.1 MB Notification: Performance of Templates: time 0.002854/0.3103, allocations: 0.6295 MB / 431 MB, free: 7.828 MB / 318.1 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile (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)