Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001522/0.001522, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001527/0.001527, allocations: 105.1 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6634/0.6634, allocations: 48.78 MB / 367.9 MB, free: 47.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003792, allocations: 8 kB / 438.6 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.182, allocations: 60.24 MB / 498.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5826/0.7648, allocations: 86.77 MB / 0.5719 GB, free: 11.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000379/0.7652, allocations: 79.95 kB / 0.572 GB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01096/0.7762, allocations: 3.795 MB / 0.5757 GB, free: 8.109 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.459e-06/0.7763, allocations: 3.938 kB / 0.5757 GB, free: 8.105 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.7763, allocations: 0 / 0.5757 GB, free: 8.105 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007764/0.7771, allocations: 0.5057 MB / 0.5762 GB, free: 7.543 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.7772, allocations: 8.031 kB / 0.5762 GB, free: 7.535 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.45e-05/0.7773, allocations: 19.81 kB / 0.5762 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.7776, allocations: 230.5 kB / 0.5764 GB, free: 7.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.7777, allocations: 12 kB / 0.5765 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.7777, allocations: 8 kB / 0.5765 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/0.7781, allocations: 185.3 kB / 0.5766 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.7782, allocations: 0 / 0.5766 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.7782, allocations: 8.344 kB / 0.5766 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.7782, allocations: 3.953 kB / 0.5767 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.7785, allocations: 115.9 kB / 0.5768 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007507/0.7792, allocations: 0.5594 MB / 0.5773 GB, free: 6.293 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.7796, allocations: 174.4 kB / 0.5775 GB, free: 6.113 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.7796, allocations: 0 / 0.5775 GB, free: 6.113 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.7799, allocations: 196.5 kB / 0.5777 GB, free: 5.906 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.7799, allocations: 4 kB / 0.5777 GB, free: 5.902 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009774/0.7809, allocations: 0.5691 MB / 0.5782 GB, free: 5.305 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.781, allocations: 81.11 kB / 0.5783 GB, free: 5.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.7812, allocations: 177.7 kB / 0.5785 GB, free: 5.023 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.7812, allocations: 33.7 kB / 0.5785 GB, free: 4.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.05e-05/0.7813, allocations: 120.3 kB / 0.5786 GB, free: 4.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.7813, allocations: 39.67 kB / 0.5787 GB, free: 4.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.7814, allocations: 8 kB / 0.5787 GB, free: 4.812 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7815, allocations: 330.8 kB / 0.579 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.7817, allocations: 96.88 kB / 0.5791 GB, free: 4.387 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.7819, allocations: 132.3 kB / 0.5792 GB, free: 4.242 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.7821, allocations: 142.8 kB / 0.5793 GB, free: 4.098 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.7821, allocations: 4 kB / 0.5793 GB, free: 4.094 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005588/0.7827, allocations: 374.9 kB / 0.5797 GB, free: 3.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.7827, allocations: 40.83 kB / 0.5797 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.7828, allocations: 3.984 kB / 0.5797 GB, free: 3.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.7828, allocations: 3.984 kB / 0.5797 GB, free: 3.664 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.783, allocations: 35.92 kB / 0.5798 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.783, allocations: 0 / 0.5798 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.7831, allocations: 38.89 kB / 0.5798 GB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.7832, allocations: 8 kB / 0.5798 GB, free: 3.586 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp fixed = true ) "Integrated error" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002431/0.7834, allocations: 183.4 kB / 0.58 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.7835, allocations: 23.77 kB / 0.58 GB, free: 3.367 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.688e-05/0.7835, allocations: 21.86 kB / 0.58 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.7835, allocations: 0 / 0.58 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.7835, allocations: 4 kB / 0.58 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.7836, allocations: 0 / 0.58 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.7846, allocations: 0.7547 MB / 0.5808 GB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7846, allocations: 4 kB / 0.5808 GB, free: 2.527 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.718e-05/0.7846, allocations: 11.92 kB / 0.5808 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.7847, allocations: 0 / 0.5808 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.7847, allocations: 8 kB / 0.5808 GB, free: 2.508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.7847, allocations: 0 / 0.5808 GB, free: 2.508 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.7847, allocations: 0 / 0.5808 GB, free: 2.508 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.7856, allocations: 0.647 MB / 0.5814 GB, free: 1.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.046e-05/0.7857, allocations: 96.91 kB / 0.5815 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.7857, allocations: 6.375 kB / 0.5815 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.7859, allocations: 19.98 kB / 0.5815 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.786, allocations: 7.984 kB / 0.5816 GB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.786, allocations: 11.98 kB / 0.5816 GB, free: 1.684 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.7861, allocations: 158.5 kB / 0.5817 GB, free: 1.531 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7861, allocations: 0 / 0.5817 GB, free: 1.531 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000382/0.7865, allocations: 63.88 kB / 0.5818 GB, free: 1.469 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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 0.0002518/0.7868, allocations: 129.1 kB / 0.5819 GB, free: 1.332 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000524/0.7873, allocations: 316.1 kB / 0.5822 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.7873, allocations: 0 / 0.5822 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.7875, allocations: 199.6 kB / 0.5824 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.7879, allocations: 28.83 kB / 0.5824 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007704/0.7887, allocations: 405.1 kB / 0.5828 GB, free: 364 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.7891, allocations: 0.7321 MB / 0.5835 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.701e-05/0.7891, allocations: 8.641 kB / 0.5835 GB, free: 15.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.7892, allocations: 17.22 kB / 0.5835 GB, free: 15.57 MB / 410.7 MB Notification: Performance of SimCode: time 7.11e-07/0.7892, allocations: 0 / 0.5835 GB, free: 15.57 MB / 410.7 MB Notification: Performance of Templates: time 0.0062/0.7954, allocations: 2.037 MB / 0.5855 GB, free: 13.59 MB / 410.7 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)