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.0009457/0.0009501, allocations: 172.2 kB / 17.39 MB, free: 4.309 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 / 223.5 MB, free: 9.031 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.000748/0.0007478, allocations: 85.36 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6331/0.6331, allocations: 48.78 MB / 369 MB, free: 47.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004481, allocations: 15.98 kB / 439.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1457, allocations: 60.26 MB / 0.4884 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5073/0.6531, allocations: 86.8 MB / 0.5732 GB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003735/0.6535, allocations: 80.34 kB / 0.5733 GB, free: 11.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01094/0.6645, allocations: 3.798 MB / 0.577 GB, free: 7.738 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.6646, allocations: 0 / 0.577 GB, free: 7.738 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.935e-05/0.6646, allocations: 7.938 kB / 0.577 GB, free: 7.73 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.001031/0.6656, allocations: 0.5098 MB / 0.5775 GB, free: 7.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.6657, allocations: 8.875 kB / 0.5775 GB, free: 7.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.6659, allocations: 20.75 kB / 0.5775 GB, free: 7.133 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.6663, allocations: 231.8 kB / 0.5777 GB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.6663, allocations: 4.375 kB / 0.5777 GB, free: 6.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.831e-05/0.6664, allocations: 12.36 kB / 0.5777 GB, free: 6.852 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.6668, allocations: 193.6 kB / 0.5779 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.6669, allocations: 192 / 0.5779 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.6669, allocations: 7.922 kB / 0.5779 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.6669, allocations: 4 kB / 0.5779 GB, free: 6.637 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000266/0.6672, allocations: 117.2 kB / 0.578 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000907/0.6681, allocations: 0.5594 MB / 0.5786 GB, free: 5.906 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.6686, allocations: 162.4 kB / 0.5787 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.6688, allocations: 124.8 kB / 0.5789 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.6689, allocations: 3.984 kB / 0.5789 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.6692, allocations: 213 kB / 0.5791 GB, free: 5.383 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 2.976e-06/0.6693, allocations: 0 / 0.5791 GB, free: 5.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009758/0.6702, allocations: 494.2 kB / 0.5795 GB, free: 4.891 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/0.6703, allocations: 81.11 kB / 0.5796 GB, free: 4.793 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.6705, allocations: 198.7 kB / 0.5798 GB, free: 4.586 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.6706, allocations: 29.7 kB / 0.5798 GB, free: 4.551 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.531e-05/0.6706, allocations: 128.3 kB / 0.58 GB, free: 4.418 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.6707, allocations: 31.72 kB / 0.58 GB, free: 4.387 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.6707, allocations: 11.94 kB / 0.58 GB, free: 4.375 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.6708, allocations: 336.2 kB / 0.5803 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.671, allocations: 95.94 kB / 0.5804 GB, free: 3.945 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.6712, allocations: 136.2 kB / 0.5805 GB, free: 3.797 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009845/0.6722, allocations: 0.5639 MB / 0.5811 GB, free: 3.195 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.6722, allocations: 0 / 0.5811 GB, free: 3.195 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006389/0.6729, allocations: 374.9 kB / 0.5815 GB, free: 2.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.6729, allocations: 41.69 kB / 0.5815 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.673, allocations: 0 / 0.5815 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.673, allocations: 4 kB / 0.5815 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.6731, allocations: 34.11 kB / 0.5815 GB, free: 2.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.6732, allocations: 4 kB / 0.5815 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.6733, allocations: 27.95 kB / 0.5816 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.6734, allocations: 8 kB / 0.5816 GB, free: 2.695 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,$PRE.digitalPI.e_int,$whenCondition2,digitalPI.e,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.0002642/0.6736, allocations: 184.2 kB / 0.5817 GB, free: 2.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.6737, allocations: 18.25 kB / 0.5818 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.6737, allocations: 21.86 kB / 0.5818 GB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.6737, allocations: 4 kB / 0.5818 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6738, allocations: 0 / 0.5818 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.6738, allocations: 3.938 kB / 0.5818 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009635/0.6747, allocations: 0.7605 MB / 0.5825 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.6748, allocations: 0 / 0.5825 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.214e-05/0.6748, allocations: 7.984 kB / 0.5825 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.6748, allocations: 4 kB / 0.5825 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.6749, allocations: 8 kB / 0.5825 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.6749, allocations: 0 / 0.5825 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6749, allocations: 3.938 kB / 0.5826 GB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009081/0.6758, allocations: 0.6541 MB / 0.5832 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.6759, allocations: 92.42 kB / 0.5833 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.6759, allocations: 8 kB / 0.5833 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.6761, allocations: 19.97 kB / 0.5833 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.6762, allocations: 11.94 kB / 0.5833 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.6762, allocations: 15.92 kB / 0.5833 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.6763, allocations: 158.5 kB / 0.5835 GB, free: 0.625 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6764, allocations: 0 / 0.5835 GB, free: 0.625 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003706/0.6767, allocations: 63.92 kB / 0.5835 GB, free: 0.5625 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.0002658/0.677, allocations: 139.7 kB / 0.5837 GB, free: 428 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005263/0.6775, allocations: 311.8 kB / 0.584 GB, free: 104 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.6776, allocations: 0 / 0.584 GB, free: 104 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.6779, allocations: 195.6 kB / 0.5842 GB, free: 15.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.6783, allocations: 45.48 kB / 0.5842 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009291/0.6793, allocations: 397.5 kB / 0.5846 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.6797, allocations: 0.7282 MB / 0.5853 GB, free: 14.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.324e-05/0.6798, allocations: 8.641 kB / 0.5853 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.933e-05/0.6798, allocations: 15.44 kB / 0.5853 GB, free: 14.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.9e-07/0.6798, allocations: 0 / 0.5853 GB, free: 14.68 MB / 410.7 MB Notification: Performance of Templates: time 0.007186/0.687, allocations: 2.059 MB / 0.5873 GB, free: 12.66 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)