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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.005158/0.005158, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008649/0.00865, allocations: 1.935 MB / 17.79 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 224.4 MB, free: 11.99 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009778/0.0009777, allocations: 82.19 kB / 273.3 MB, free: 11.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002969/0.0002969, allocations: 4 kB / 331.8 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09057, allocations: 48.09 MB / 379.9 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2753/0.3659, allocations: 74.67 MB / 454.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001523/0.3661, allocations: 59.95 kB / 454.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001229/0.3673, allocations: 0.5393 MB / 455.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3674, allocations: 0 / 455.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.3674, allocations: 0 / 455.2 MB, free: 12.3 MB / 330.7 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.0003669/0.3677, allocations: 335.4 kB / 455.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3678, allocations: 12.03 kB / 455.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.3678, allocations: 4.531 kB / 455.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.474e-05/0.3679, allocations: 171 kB / 455.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.368, allocations: 33.53 kB / 455.7 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.368, allocations: 7.953 kB / 455.7 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.3681, allocations: 49.67 kB / 455.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3682, allocations: 4 kB / 455.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.3682, allocations: 3.938 kB / 455.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.3682, allocations: 0 / 455.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.646e-05/0.3683, allocations: 19.98 kB / 455.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.3684, allocations: 161.7 kB / 456 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.3685, allocations: 50.59 kB / 456 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.148e-06/0.3685, allocations: 0 / 456 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.3687, allocations: 79.36 kB / 456.1 MB, free: 11.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3688, allocations: 0 / 456.1 MB, free: 11.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.000256/0.369, allocations: 101.7 kB / 456.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.3691, allocations: 55.39 kB / 456.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.888e-05/0.3691, allocations: 100.9 kB / 456.3 MB, free: 10.94 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.3692, allocations: 25.7 kB / 456.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.3692, allocations: 88.7 kB / 456.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.3692, allocations: 11.81 kB / 456.5 MB, free: 10.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.3692, allocations: 4 kB / 456.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.546e-05/0.3693, allocations: 319 kB / 456.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.558e-05/0.3694, allocations: 19.98 kB / 456.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.521e-05/0.3695, allocations: 50.44 kB / 456.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.37e-05/0.3695, allocations: 17.25 kB / 456.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3695, allocations: 4 kB / 456.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001589/0.3697, allocations: 93.52 kB / 457 MB, free: 10.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3697, allocations: 7.953 kB / 457 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3697, allocations: 3.984 kB / 457 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3698, allocations: 4 kB / 457 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.818e-05/0.3698, allocations: 11.98 kB / 457 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3699, allocations: 0 / 457 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.252e-05/0.3699, allocations: 16 kB / 457 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.37, allocations: 2.016 kB / 457 MB, free: 10.25 MB / 330.7 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,$whenCondition1,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.285e-05/0.37, allocations: 121.8 kB / 457.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.3701, allocations: 4 kB / 457.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.3701, allocations: 11.92 kB / 457.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3701, allocations: 3.828 kB / 457.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3701, allocations: 0 / 457.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3701, allocations: 0 / 457.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.905e-05/0.3702, allocations: 173.5 kB / 457.3 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3702, allocations: 0 / 457.3 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.143e-05/0.3703, allocations: 4 kB / 457.3 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3703, allocations: 0 / 457.3 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.3703, allocations: 0 / 457.3 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3703, allocations: 3.953 kB / 457.3 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3703, allocations: 0 / 457.3 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/0.3705, allocations: 121.7 kB / 457.4 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3e-05/0.3706, allocations: 81.11 kB / 457.5 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.3706, allocations: 0 / 457.5 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/0.3706, allocations: 11.98 kB / 457.5 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.3707, allocations: 11.94 kB / 457.5 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.3707, allocations: 4.875 kB / 457.6 MB, free: 9.617 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.686e-05/0.3707, allocations: 75.28 kB / 457.6 MB, free: 9.543 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3708, allocations: 4.094 kB / 457.6 MB, free: 9.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001779/0.3709, allocations: 12 kB / 457.6 MB, free: 9.527 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.186e-05/0.371, allocations: 95.42 kB / 457.7 MB, free: 9.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.3712, allocations: 63.83 kB / 457.8 MB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3712, allocations: 0 / 457.8 MB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.815e-05/0.3713, allocations: 28.12 kB / 457.8 MB, free: 9.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.775e-05/0.3714, allocations: 3.984 kB / 457.8 MB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.3716, allocations: 129.1 kB / 458 MB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.3719, allocations: 0.6817 MB / 458.6 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.711e-05/0.3719, allocations: 12.17 kB / 458.6 MB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.372, allocations: 7.438 kB / 458.7 MB, free: 8.445 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.372, allocations: 0 / 458.7 MB, free: 8.445 MB / 330.7 MB Notification: Performance of Templates: time 0.002035/0.374, allocations: 0.497 MB / 459.2 MB, free: 7.949 MB / 330.7 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)