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.001489/0.001489, allocations: 100.1 kB / 15.88 MB, free: 12 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.001724/0.001725, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.326/1.326, allocations: 205.1 MB / 222.6 MB, free: 4.953 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008375/0.008376, allocations: 1.947 MB / 271.9 MB, free: 3.77 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.001415/0.001415, allocations: 75.89 kB / 329.8 MB, free: 33.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0725/0.07393, allocations: 47.13 MB / 376.9 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00218/0.07615, allocations: 1.342 MB / 378.3 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001269/0.07629, allocations: 31.89 kB / 378.3 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.196e-05/0.07632, allocations: 0 / 378.3 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.841e-05/0.07637, allocations: 7.984 kB / 378.3 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 2.578e-05/0.0764, allocations: 0 / 378.3 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001186/0.07652, allocations: 7.984 kB / 378.3 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.989e-05/0.07659, allocations: 27.92 kB / 378.4 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.891e-05/0.07664, allocations: 3.938 kB / 378.4 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.076e-05/0.07667, allocations: 15.98 kB / 378.4 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.006e-05/0.07673, allocations: 19.91 kB / 378.4 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.07675, allocations: 0 / 378.4 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.169e-05/0.07677, allocations: 8 kB / 378.4 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.0768, allocations: 7.984 kB / 378.4 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.311e-05/0.07684, allocations: 15.92 kB / 378.4 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 4.088e-05/0.07689, allocations: 11.98 kB / 378.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.0769, allocations: 0 / 378.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.0769, allocations: 0 / 378.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.07691, allocations: 0 / 378.4 MB, free: 0.6094 MB / 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.0005356/0.07745, allocations: 355.7 kB / 378.8 MB, free: 216 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.07749, allocations: 8.031 kB / 378.8 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.07753, allocations: 0.9375 kB / 378.8 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.55e-05/0.07763, allocations: 168.4 kB / 379 MB, free: 0 / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.884e-05/0.07771, allocations: 30.34 kB / 379 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.07773, allocations: 8.359 kB / 379 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.07786, allocations: 54.17 kB / 379 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.07788, allocations: 3.938 kB / 379 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.07789, allocations: 0 / 379 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.0779, allocations: 4 kB / 379.1 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.601e-05/0.07798, allocations: 19.97 kB / 379.1 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.07814, allocations: 157.7 kB / 379.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.07826, allocations: 38.59 kB / 379.3 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.459e-05/0.07831, allocations: 12.86 kB / 379.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.07834, allocations: 8.031 kB / 379.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.07851, allocations: 83.3 kB / 379.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.07852, allocations: 0 / 379.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002668/0.07879, allocations: 105.5 kB / 379.5 MB, free: 15.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.07886, allocations: 59.34 kB / 379.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.297e-05/0.07893, allocations: 93.8 kB / 379.6 MB, free: 15.22 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.07895, allocations: 41.81 kB / 379.7 MB, free: 15.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.079, allocations: 84.05 kB / 379.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.07903, allocations: 19.75 kB / 379.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.01e-05/0.07907, allocations: 21.72 kB / 379.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.07918, allocations: 322.8 kB / 380.1 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.041e-05/0.07925, allocations: 19.98 kB / 380.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.616e-05/0.07932, allocations: 38.5 kB / 380.2 MB, free: 14.65 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.07945, allocations: 66.48 kB / 380.2 MB, free: 14.58 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.07946, allocations: 0 / 380.2 MB, free: 14.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001648/0.07963, allocations: 85.61 kB / 380.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.07965, allocations: 7.938 kB / 380.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.07966, allocations: 0 / 380.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.07968, allocations: 8.062 kB / 380.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.538e-05/0.07976, allocations: 7.984 kB / 380.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.07978, allocations: 4 kB / 380.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.058e-05/0.07985, allocations: 4 kB / 380.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.07987, allocations: 4 kB / 380.3 MB, free: 14.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 8.062e-05/0.07995, allocations: 121.8 kB / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.07997, allocations: 7.844 kB / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/0.07999, allocations: 7.969 kB / 380.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.08, allocations: 4 kB / 380.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.08001, allocations: 0 / 380.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.08002, allocations: 4 kB / 380.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.08013, allocations: 157.7 kB / 380.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.08014, allocations: 0 / 380.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.106e-05/0.08017, allocations: 8 kB / 380.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.08018, allocations: 3.938 kB / 380.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.08019, allocations: 0 / 380.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.0802, allocations: 4 kB / 380.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.08021, allocations: 0 / 380.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.08039, allocations: 117 kB / 380.8 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.08044, allocations: 84.95 kB / 380.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.08046, allocations: 0 / 380.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.863e-05/0.08052, allocations: 11.98 kB / 380.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.08057, allocations: 11.92 kB / 380.9 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.944e-06/0.08058, allocations: 4 kB / 380.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.994e-05/0.08062, allocations: 79.28 kB / 381 MB, free: 13.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08062, allocations: 0 / 381 MB, free: 13.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001977/0.08083, allocations: 12 kB / 381 MB, free: 13.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 8.059e-05/0.08091, allocations: 91.25 kB / 381.1 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001658/0.08108, allocations: 51.91 kB / 381.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.0811, allocations: 0 / 381.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.747e-05/0.08117, allocations: 24.17 kB / 381.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.08132, allocations: 16.16 kB / 381.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002969/0.08162, allocations: 153.7 kB / 381.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.08186, allocations: 0.6809 MB / 382 MB, free: 12.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.0819, allocations: 11.44 kB / 382 MB, free: 12.64 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.0819, allocations: 3.938 kB / 382 MB, free: 12.64 MB / 286.1 MB Notification: Performance of Templates: time 0.001899/0.08381, allocations: 0.697 MB / 382.7 MB, free: 11.95 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)