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.001175/0.001175, allocations: 106.8 kB / 16.41 MB, free: 6.504 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.001155/0.001155, allocations: 192.2 kB / 17.35 MB, free: 5.738 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.206/1.206, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007579/0.007579, allocations: 1.939 MB / 272.5 MB, free: 10.07 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.001441/0.001441, allocations: 73.45 kB / 378.9 MB, free: 51.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06024/0.0617, allocations: 47.14 MB / 426 MB, free: 19.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001811/0.06354, allocations: 1.278 MB / 427.3 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001417/0.0637, allocations: 39.77 kB / 427.4 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.953e-05/0.06374, allocations: 0 / 427.4 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.231e-05/0.06379, allocations: 0 / 427.4 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.663e-05/0.06382, allocations: 3.938 kB / 427.4 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001077/0.06393, allocations: 11.98 kB / 427.4 MB, free: 18.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.686e-05/0.064, allocations: 31.91 kB / 427.4 MB, free: 18.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.06404, allocations: 0 / 427.4 MB, free: 18.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.698e-05/0.06408, allocations: 19.98 kB / 427.4 MB, free: 18.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.825e-05/0.06413, allocations: 15.92 kB / 427.4 MB, free: 18.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.06415, allocations: 4 kB / 427.4 MB, free: 18.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.06416, allocations: 0 / 427.4 MB, free: 18.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.726e-05/0.06418, allocations: 11.97 kB / 427.4 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.342e-05/0.06422, allocations: 11.92 kB / 427.5 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.251e-05/0.06428, allocations: 19.97 kB / 427.5 MB, free: 18.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.06429, allocations: 0 / 427.5 MB, free: 18.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.06429, allocations: 0 / 427.5 MB, free: 18.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.0643, allocations: 0 / 427.5 MB, free: 18.52 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.0004107/0.06472, allocations: 348 kB / 427.8 MB, free: 18.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.06475, allocations: 11.89 kB / 427.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.06479, allocations: 4.938 kB / 427.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.253e-05/0.06484, allocations: 160.4 kB / 428 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.06489, allocations: 38.25 kB / 428 MB, free: 17.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.0649, allocations: 4.375 kB / 428 MB, free: 17.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.06501, allocations: 54.17 kB / 428.1 MB, free: 17.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.06503, allocations: 3.938 kB / 428.1 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.06504, allocations: 0 / 428.1 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.06505, allocations: 4 kB / 428.1 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.371e-05/0.06512, allocations: 15.92 kB / 428.1 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.06523, allocations: 161.7 kB / 428.3 MB, free: 17.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.048e-05/0.06532, allocations: 38.61 kB / 428.3 MB, free: 17.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.808e-05/0.06536, allocations: 20.94 kB / 428.3 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.06538, allocations: 0 / 428.3 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001279/0.06551, allocations: 91.14 kB / 428.4 MB, free: 17.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.06552, allocations: 0 / 428.4 MB, free: 17.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002101/0.06574, allocations: 97.64 kB / 428.5 MB, free: 17.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.982e-05/0.06577, allocations: 55.41 kB / 428.6 MB, free: 17.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.719e-05/0.06581, allocations: 97.86 kB / 428.7 MB, free: 17.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.06582, allocations: 25.7 kB / 428.7 MB, free: 17.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.029e-05/0.06585, allocations: 88.05 kB / 428.8 MB, free: 17.01 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.159e-05/0.06587, allocations: 19.73 kB / 428.8 MB, free: 16.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.0659, allocations: 21.72 kB / 428.8 MB, free: 16.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.269e-05/0.06594, allocations: 322.8 kB / 429.1 MB, free: 16.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.841e-05/0.06599, allocations: 24.06 kB / 429.1 MB, free: 16.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-05/0.06605, allocations: 42.55 kB / 429.2 MB, free: 16.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.511e-05/0.06614, allocations: 58.48 kB / 429.2 MB, free: 16.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.06615, allocations: 4 kB / 429.3 MB, free: 16.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001278/0.06628, allocations: 85.61 kB / 429.3 MB, free: 16.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.0663, allocations: 11.94 kB / 429.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.06631, allocations: 0 / 429.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.06632, allocations: 0 / 429.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.921e-05/0.0664, allocations: 8 kB / 429.4 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.06641, allocations: 0 / 429.4 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.329e-05/0.06648, allocations: 15.89 kB / 429.4 MB, free: 16.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.06649, allocations: 0 / 429.4 MB, free: 16.37 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.667e-05/0.06654, allocations: 117.9 kB / 429.5 MB, free: 16.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.06656, allocations: 11.88 kB / 429.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.717e-05/0.06658, allocations: 11.95 kB / 429.5 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.06659, allocations: 0 / 429.5 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.06659, allocations: 4 kB / 429.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.227e-05/0.06661, allocations: 81.02 kB / 429.6 MB, free: 16.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.06662, allocations: 4 kB / 429.6 MB, free: 16.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.827e-05/0.06668, allocations: 3.984 kB / 429.6 MB, free: 16.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.06672, allocations: 15.97 kB / 429.6 MB, free: 16.09 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001509/0.06688, allocations: 173.2 kB / 429.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000137/0.06702, allocations: 254.8 kB / 430 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.787e-05/0.06708, allocations: 27.98 kB / 430.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.324e-05/0.0671, allocations: 79.27 kB / 430.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of Backend: time 6.01e-07/0.06711, allocations: 0 / 430.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.06742, allocations: 106.5 kB / 430.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of SimCode: time 0.0002268/0.06766, allocations: 0.5649 MB / 430.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of Templates: time 0.002144/0.06981, allocations: 0.7243 MB / 431.5 MB, free: 14.1 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)