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.001208/0.001208, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.938/1.938, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00106/0.00106, allocations: 86.69 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3673/0.3673, allocations: 48.78 MB / 364.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.431e-05, allocations: 4 kB / 432.5 MB, free: 16.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1408, allocations: 60.26 MB / 492.7 MB, free: 4.383 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5369/0.6778, allocations: 86.78 MB / 0.5659 GB, free: 2.301 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.6781, allocations: 76.77 kB / 0.566 GB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01093/0.689, allocations: 3.766 MB / 0.5697 GB, free: 15.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6891, allocations: 0 / 0.5697 GB, free: 15.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.6891, allocations: 4 kB / 0.5697 GB, free: 15.05 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.0006877/0.6898, allocations: 492.5 kB / 0.5701 GB, free: 14.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.6898, allocations: 8.031 kB / 0.5701 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.724e-05/0.6899, allocations: 28.09 kB / 0.5702 GB, free: 14.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.6903, allocations: 230.1 kB / 0.5704 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.6903, allocations: 7.562 kB / 0.5704 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.6904, allocations: 8 kB / 0.5704 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.6907, allocations: 158.2 kB / 0.5705 GB, free: 14.08 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.6907, allocations: 0 / 0.5705 GB, free: 14.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.6907, allocations: 3.75 kB / 0.5706 GB, free: 14.08 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.6907, allocations: 7.953 kB / 0.5706 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.6909, allocations: 89.16 kB / 0.5706 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007126/0.6916, allocations: 0.5529 MB / 0.5712 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.6919, allocations: 131.9 kB / 0.5713 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.692, allocations: 92.53 kB / 0.5714 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.6921, allocations: 4 kB / 0.5714 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.6923, allocations: 172.8 kB / 0.5716 GB, free: 13.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 3.907e-06/0.6924, allocations: 3.938 kB / 0.5716 GB, free: 13.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006316/0.693, allocations: 342 kB / 0.5719 GB, free: 12.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.6931, allocations: 85.11 kB / 0.572 GB, free: 12.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.6933, allocations: 186.3 kB / 0.5722 GB, free: 12.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.6934, allocations: 25.7 kB / 0.5722 GB, free: 12.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.068e-05/0.6935, allocations: 120.7 kB / 0.5723 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.6935, allocations: 42.59 kB / 0.5723 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.6935, allocations: 3.438 kB / 0.5723 GB, free: 12.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6937, allocations: 329.9 kB / 0.5727 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.6938, allocations: 72.67 kB / 0.5727 GB, free: 12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.694, allocations: 113.1 kB / 0.5728 GB, free: 11.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.6941, allocations: 110.3 kB / 0.5729 GB, free: 11.81 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.6941, allocations: 0 / 0.5729 GB, free: 11.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004638/0.6946, allocations: 315.4 kB / 0.5732 GB, free: 11.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.6947, allocations: 41.72 kB / 0.5733 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.6947, allocations: 0 / 0.5733 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.6947, allocations: 4 kB / 0.5733 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.6949, allocations: 35.05 kB / 0.5733 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.6949, allocations: 7.922 kB / 0.5733 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.6951, allocations: 27.83 kB / 0.5733 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.6951, allocations: 15.88 kB / 0.5734 GB, free: 11.41 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 = false ) "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 () * 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.0002005/0.6953, allocations: 164.1 kB / 0.5735 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.6954, allocations: 19.77 kB / 0.5735 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.6954, allocations: 21.08 kB / 0.5736 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.6954, allocations: 0 / 0.5736 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6954, allocations: 0 / 0.5736 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.6954, allocations: 0 / 0.5736 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009422/0.6964, allocations: 0.714 MB / 0.5743 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6964, allocations: 0 / 0.5743 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.9e-05/0.6965, allocations: 7.984 kB / 0.5743 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.6965, allocations: 0 / 0.5743 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.6965, allocations: 11.61 kB / 0.5743 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.6965, allocations: 4 kB / 0.5743 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.6965, allocations: 0 / 0.5743 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008315/0.6974, allocations: 0.5619 MB / 0.5748 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.6975, allocations: 101 kB / 0.5749 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.6975, allocations: 11.06 kB / 0.5749 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.6977, allocations: 19.98 kB / 0.575 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.6977, allocations: 10.86 kB / 0.575 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.6978, allocations: 8 kB / 0.575 GB, free: 9.891 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001357/0.6979, allocations: 155.2 kB / 0.5751 GB, free: 9.758 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6979, allocations: 0 / 0.5751 GB, free: 9.758 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003535/0.6983, allocations: 67.75 kB / 0.5752 GB, free: 9.695 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) * 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.00024/0.6985, allocations: 132.1 kB / 0.5753 GB, free: 9.562 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.6989, allocations: 265.3 kB / 0.5756 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6989, allocations: 0 / 0.5756 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.6991, allocations: 170.7 kB / 0.5757 GB, free: 9.223 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.6995, allocations: 36.84 kB / 0.5758 GB, free: 9.191 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006477/0.7001, allocations: 259.9 kB / 0.576 GB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.7005, allocations: 0.7282 MB / 0.5767 GB, free: 8.191 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.057e-05/0.7006, allocations: 4.781 kB / 0.5767 GB, free: 8.184 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.7006, allocations: 19.44 kB / 0.5767 GB, free: 8.164 MB / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7007, allocations: 0 / 0.5767 GB, free: 8.164 MB / 394.7 MB Notification: Performance of Templates: time 0.005429/0.7061, allocations: 2.037 MB / 0.5787 GB, free: 6.141 MB / 394.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)