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.0009375/0.0009375, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007319/0.007319, allocations: 168.9 kB / 16.26 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.667/1.667, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00949/0.00949, allocations: 1.92 MB / 272.7 MB, free: 3.289 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.0005537/0.0005538, allocations: 12 kB / 331.5 MB, free: 32.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 48.1 MB / 379.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001607/0.1052, allocations: 1.019 MB / 380.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001693/0.1054, allocations: 27.91 kB / 380.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.1054, allocations: 0 / 380.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.074e-05/0.1055, allocations: 0 / 380.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.356e-05/0.1055, allocations: 0 / 380.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001493/0.1057, allocations: 15.97 kB / 380.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.921e-05/0.1057, allocations: 27.91 kB / 380.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.413e-05/0.1058, allocations: 4 kB / 380.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.9e-05/0.1059, allocations: 11.98 kB / 380.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.404e-05/0.1059, allocations: 19.92 kB / 380.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.106, allocations: 4 kB / 380.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.042e-05/0.106, allocations: 0 / 380.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.106, allocations: 7.984 kB / 380.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.1061, allocations: 41.62 kB / 380.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.465e-05/0.1062, allocations: 23.95 kB / 380.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1062, allocations: 0 / 380.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1062, allocations: 0 / 380.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1062, allocations: 0 / 380.8 MB, free: 15.62 MB / 286.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.0005501/0.1068, allocations: 343.8 kB / 381.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.324e-05/0.1068, allocations: 12.03 kB / 381.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.012e-05/0.1069, allocations: 8.781 kB / 381.1 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.1071, allocations: 168.4 kB / 381.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-05/0.1071, allocations: 26.27 kB / 381.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.1072, allocations: 4.375 kB / 381.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.1073, allocations: 58.22 kB / 381.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1074, allocations: 3.938 kB / 381.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1074, allocations: 3.938 kB / 381.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1074, allocations: 0 / 381.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.441e-05/0.1075, allocations: 27.97 kB / 381.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003019/0.1078, allocations: 153.7 kB / 381.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.1079, allocations: 54.53 kB / 381.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.251e-05/0.108, allocations: 12.95 kB / 381.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.108, allocations: 3.984 kB / 381.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.1083, allocations: 87.23 kB / 381.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.1083, allocations: 4 kB / 381.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003381/0.1086, allocations: 105.6 kB / 381.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.1087, allocations: 55.39 kB / 381.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.742e-05/0.1088, allocations: 101.8 kB / 382 MB, free: 14.21 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.1088, allocations: 25.7 kB / 382 MB, free: 14.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.025e-05/0.1089, allocations: 96.17 kB / 382.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.1089, allocations: 7.844 kB / 382.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.1089, allocations: 17.72 kB / 382.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1091, allocations: 318.8 kB / 382.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.1092, allocations: 23.98 kB / 382.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.82e-05/0.1093, allocations: 42.5 kB / 382.5 MB, free: 13.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.1094, allocations: 54.56 kB / 382.6 MB, free: 13.6 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.1094, allocations: 4 kB / 382.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001947/0.1096, allocations: 89.52 kB / 382.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.1097, allocations: 16 kB / 382.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1097, allocations: 3.938 kB / 382.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1097, allocations: 0 / 382.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-05/0.1098, allocations: 8 kB / 382.7 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.1098, allocations: 3.984 kB / 382.7 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.1099, allocations: 16 kB / 382.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.1099, allocations: 4 kB / 382.7 MB, free: 13.45 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 0.0001197/0.1101, allocations: 121.8 kB / 382.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.1101, allocations: 11.78 kB / 382.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.1101, allocations: 3.969 kB / 382.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1101, allocations: 0 / 382.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-05/0.1102, allocations: 4 kB / 382.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1102, allocations: 0 / 382.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.1103, allocations: 161.7 kB / 383 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.1103, allocations: 7.922 kB / 383 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.995e-05/0.1104, allocations: 4 kB / 383 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1104, allocations: 3.938 kB / 383 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1104, allocations: 8 kB / 383 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1104, allocations: 192 / 383 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1104, allocations: 0 / 383 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.1106, allocations: 117 kB / 383.1 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.73e-05/0.1107, allocations: 84.95 kB / 383.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.1107, allocations: 4 kB / 383.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.37e-05/0.1108, allocations: 11.98 kB / 383.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.1108, allocations: 11.98 kB / 383.3 MB, free: 12.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.1109, allocations: 0 / 383.3 MB, free: 12.81 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.1109, allocations: 79.28 kB / 383.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1109, allocations: 0 / 383.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001908/0.1111, allocations: 8 kB / 383.3 MB, free: 12.73 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 0.0001156/0.1112, allocations: 99.19 kB / 383.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.1115, allocations: 60.05 kB / 383.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1115, allocations: 0 / 383.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.957e-05/0.1116, allocations: 27.92 kB / 383.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001578/0.1117, allocations: 4 kB / 383.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/0.1121, allocations: 141.5 kB / 383.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1125, allocations: 0.6809 MB / 384.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.505e-05/0.1126, allocations: 0 / 384.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.145e-05/0.1126, allocations: 11.44 kB / 384.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1126, allocations: 0 / 384.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of Templates: time 0.002827/0.1154, allocations: 0.5252 MB / 384.9 MB, free: 11.12 MB / 286.1 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: