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.001066/0.001066, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.43/1.43, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008138/0.008138, allocations: 1.928 MB / 271.7 MB, free: 3.336 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.00138/0.00138, allocations: 64.23 kB / 329.8 MB, free: 32.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06993/0.07132, allocations: 47.14 MB / 377 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002283/0.07363, allocations: 1.277 MB / 378.2 MB, free: 356 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001492/0.0738, allocations: 31.89 kB / 378.3 MB, free: 324 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.408e-05/0.07384, allocations: 0 / 378.3 MB, free: 324 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.825e-05/0.07388, allocations: 3.984 kB / 378.3 MB, free: 320 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 2.505e-05/0.07392, allocations: 3.938 kB / 378.3 MB, free: 316 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.07405, allocations: 11.98 kB / 378.3 MB, free: 304 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.434e-05/0.07412, allocations: 19.98 kB / 378.3 MB, free: 284 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.058e-05/0.07418, allocations: 11.98 kB / 378.3 MB, free: 272 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.179e-05/0.07422, allocations: 12 kB / 378.3 MB, free: 260 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.983e-05/0.07428, allocations: 19.91 kB / 378.4 MB, free: 240 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.07431, allocations: 4 kB / 378.4 MB, free: 236 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.898e-06/0.07432, allocations: 0 / 378.4 MB, free: 236 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.347e-05/0.07435, allocations: 7.984 kB / 378.4 MB, free: 228 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.131e-05/0.0744, allocations: 15.92 kB / 378.4 MB, free: 212 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 6.052e-05/0.07447, allocations: 19.97 kB / 378.4 MB, free: 192 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.07448, allocations: 0 / 378.4 MB, free: 192 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07448, allocations: 0 / 378.4 MB, free: 192 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.0745, allocations: 3.938 kB / 378.4 MB, free: 188 kB / 270.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.0005334/0.07504, allocations: 351.7 kB / 378.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.07508, allocations: 19.83 kB / 378.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.07512, allocations: 4.844 kB / 378.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.713e-05/0.07522, allocations: 164.4 kB / 378.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.698e-05/0.07528, allocations: 34.27 kB / 379 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.0753, allocations: 4.375 kB / 379 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.07544, allocations: 54.23 kB / 379 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.07546, allocations: 3.938 kB / 379 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.07547, allocations: 0 / 379 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.07548, allocations: 0 / 379 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.757e-05/0.07556, allocations: 15.97 kB / 379 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.07572, allocations: 161.7 kB / 379.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.07584, allocations: 46.52 kB / 379.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.791e-05/0.0759, allocations: 16.95 kB / 379.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.07591, allocations: 3.984 kB / 379.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.07611, allocations: 83.31 kB / 379.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.07612, allocations: 0 / 379.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002761/0.0764, allocations: 105.5 kB / 379.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.07645, allocations: 55.41 kB / 379.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.995e-05/0.07653, allocations: 101.8 kB / 379.6 MB, free: 14.78 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.07655, allocations: 29.7 kB / 379.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.811e-05/0.0766, allocations: 84.05 kB / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.07662, allocations: 15.84 kB / 379.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.07667, allocations: 21.7 kB / 379.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.07678, allocations: 318.8 kB / 380.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.052e-05/0.07684, allocations: 20.11 kB / 380.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.616e-05/0.07692, allocations: 38.56 kB / 380.1 MB, free: 14.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.07704, allocations: 58.5 kB / 380.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.07705, allocations: 0 / 380.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000181/0.07724, allocations: 101.8 kB / 380.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.07726, allocations: 7.938 kB / 380.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.07727, allocations: 0 / 380.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.07729, allocations: 4 kB / 380.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.564e-05/0.07737, allocations: 11.92 kB / 380.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.07738, allocations: 4 kB / 380.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.067e-05/0.07746, allocations: 4.188 kB / 380.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.07748, allocations: 7.938 kB / 380.3 MB, free: 14.02 MB / 286.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 7.443e-05/0.07756, allocations: 121.8 kB / 380.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.07758, allocations: 11.84 kB / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.056e-05/0.0776, allocations: 7.969 kB / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.07761, allocations: 0 / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.07762, allocations: 0 / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.07764, allocations: 0 / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.07776, allocations: 161.7 kB / 380.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.07777, allocations: 0 / 380.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.048e-05/0.0778, allocations: 4 kB / 380.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.07781, allocations: 3.938 kB / 380.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.07783, allocations: 4 kB / 380.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.07784, allocations: 0 / 380.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.07784, allocations: 0 / 380.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.07803, allocations: 113 kB / 380.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.07807, allocations: 88.95 kB / 380.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.07809, allocations: 0 / 380.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/0.07816, allocations: 11.98 kB / 380.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/0.07821, allocations: 11.98 kB / 380.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.07823, allocations: 4 kB / 380.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.054e-05/0.07827, allocations: 75.28 kB / 380.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.07827, allocations: 0 / 380.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000197/0.07848, allocations: 12 kB / 380.9 MB, free: 13.31 MB / 286.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.719e-05/0.07856, allocations: 91.25 kB / 381 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00018/0.07874, allocations: 56.06 kB / 381.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.07876, allocations: 4.062 kB / 381.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.306e-05/0.07884, allocations: 27.92 kB / 381.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.07898, allocations: 4 kB / 381.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.07929, allocations: 121.5 kB / 381.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.07954, allocations: 0.6844 MB / 381.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.31e-05/0.07958, allocations: 11.94 kB / 381.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.07961, allocations: 15.42 kB / 381.9 MB, free: 12.24 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.07962, allocations: 0 / 381.9 MB, free: 12.24 MB / 286.1 MB Notification: Performance of Templates: time 0.002386/0.08201, allocations: 0.619 MB / 382.6 MB, free: 11.62 MB / 286.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)