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-master/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-master/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.0008995/0.0008998, allocations: 172.1 kB / 16.12 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007328/0.007327, allocations: 1.925 MB / 18.79 MB, free: 3.02 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.288/1.288, allocations: 205.4 MB / 225.5 MB, free: 5.27 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.0007774/0.0007773, allocations: 94.27 kB / 274.3 MB, free: 5.871 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003385, allocations: 12 kB / 333.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2008, allocations: 48.07 MB / 381.1 MB, free: 44.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08059/0.2815, allocations: 74.7 MB / 455.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001741/0.2817, allocations: 55.97 kB / 455.9 MB, free: 2.914 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001218/0.2829, allocations: 0.5378 MB / 456.4 MB, free: 2.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2829, allocations: 0 / 456.4 MB, free: 2.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.2829, allocations: 0 / 456.4 MB, free: 2.375 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.0003787/0.2833, allocations: 339.2 kB / 456.7 MB, free: 1.996 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2833, allocations: 8.031 kB / 456.8 MB, free: 1.988 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.2834, allocations: 12.84 kB / 456.8 MB, free: 1.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.034e-05/0.2835, allocations: 172.3 kB / 456.9 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.559e-05/0.2836, allocations: 30.27 kB / 457 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.2836, allocations: 384 / 457 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.2837, allocations: 54.11 kB / 457 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2837, allocations: 3.938 kB / 457 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.2837, allocations: 0 / 457 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2837, allocations: 7.938 kB / 457 MB, free: 1.668 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.044e-05/0.2838, allocations: 27.91 kB / 457.1 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.284, allocations: 161.7 kB / 457.2 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.2841, allocations: 46.55 kB / 457.3 MB, free: 1.379 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.169e-05/0.2842, allocations: 16.94 kB / 457.3 MB, free: 1.359 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.2842, allocations: 4 kB / 457.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.2844, allocations: 83.3 kB / 457.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.2844, allocations: 0 / 457.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.000261/0.2847, allocations: 113.6 kB / 457.5 MB, free: 1.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.2847, allocations: 51.41 kB / 457.5 MB, free: 1.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.303e-05/0.2848, allocations: 105.8 kB / 457.6 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2848, allocations: 25.7 kB / 457.7 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.2849, allocations: 84.08 kB / 457.7 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.2849, allocations: 15.81 kB / 457.8 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.2849, allocations: 0 / 457.8 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.913e-05/0.285, allocations: 322.8 kB / 458.1 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.702e-05/0.2851, allocations: 20.12 kB / 458.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.73e-05/0.2851, allocations: 46.48 kB / 458.1 MB, free: 448 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.2853, allocations: 58.56 kB / 458.2 MB, free: 380 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2853, allocations: 0 / 458.2 MB, free: 380 kB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001601/0.2854, allocations: 97.5 kB / 458.3 MB, free: 276 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2855, allocations: 7.938 kB / 458.3 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2855, allocations: 4 kB / 458.3 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2855, allocations: 0 / 458.3 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.67e-05/0.2856, allocations: 11.94 kB / 458.3 MB, free: 252 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2856, allocations: 4.062 kB / 458.3 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.907e-05/0.2857, allocations: 19.92 kB / 458.3 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.2857, allocations: 0 / 458.3 MB, free: 228 kB / 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 7.41e-05/0.2858, allocations: 113.8 kB / 458.4 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.2858, allocations: 7.938 kB / 458.4 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.112e-05/0.2858, allocations: 11.95 kB / 458.5 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2858, allocations: 0 / 458.5 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2858, allocations: 0 / 458.5 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2858, allocations: 4 kB / 458.5 MB, free: 84 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.2859, allocations: 161.6 kB / 458.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.286, allocations: 0 / 458.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.254e-05/0.286, allocations: 11.92 kB / 458.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.286, allocations: 3.938 kB / 458.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.286, allocations: 0 / 458.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.286, allocations: 3.938 kB / 458.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.286, allocations: 4 kB / 458.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.2862, allocations: 105.1 kB / 458.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/0.2863, allocations: 89.03 kB / 458.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.2863, allocations: 0 / 458.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.2863, allocations: 8 kB / 458.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.2864, allocations: 7.984 kB / 458.9 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-06/0.2864, allocations: 7.984 kB / 458.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.2865, allocations: 79.28 kB / 458.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2865, allocations: 192 / 458.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001822/0.2866, allocations: 16 kB / 459 MB, free: 15.51 MB / 346.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.47e-05/0.2867, allocations: 91.19 kB / 459 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.2869, allocations: 59.89 kB / 459.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2869, allocations: 224 / 459.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.79e-05/0.287, allocations: 35.92 kB / 459.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.2871, allocations: 6.25 kB / 459.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000287/0.2874, allocations: 141.3 kB / 459.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.2877, allocations: 0.677 MB / 460 MB, free: 14.44 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.268e-05/0.2877, allocations: 8 kB / 460 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.902e-05/0.2878, allocations: 15.44 kB / 460 MB, free: 14.42 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2878, allocations: 0 / 460 MB, free: 14.42 MB / 346.7 MB Notification: Performance of Templates: time 0.002119/0.2899, allocations: 0.5078 MB / 460.5 MB, free: 13.91 MB / 346.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)