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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002067/0.002067, allocations: 174.8 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 2.033/2.033, allocations: 205.2 MB / 219.4 MB, free: 14.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.001123/0.001123, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3776/0.3776, allocations: 48.78 MB / 364.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.317e-05/3.319e-05, allocations: 0 / 432.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1615, allocations: 60.25 MB / 492.8 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5103/0.6719, allocations: 86.78 MB / 0.566 GB, free: 2.246 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.6723, allocations: 81.38 kB / 0.5661 GB, free: 2.203 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01176/0.6841, allocations: 3.771 MB / 0.5698 GB, free: 14.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.6841, allocations: 0 / 0.5698 GB, free: 14.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.6842, allocations: 4 kB / 0.5698 GB, free: 14.99 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.000646/0.6848, allocations: 495.4 kB / 0.5702 GB, free: 14.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.6849, allocations: 8.031 kB / 0.5702 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.619e-05/0.6849, allocations: 41.91 kB / 0.5703 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.685, allocations: 19.77 kB / 0.5703 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.6853, allocations: 239.3 kB / 0.5705 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.6853, allocations: 7 kB / 0.5705 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.6854, allocations: 11.98 kB / 0.5706 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.6857, allocations: 160.4 kB / 0.5707 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.6857, allocations: 4 kB / 0.5707 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.6857, allocations: 7.953 kB / 0.5707 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.6857, allocations: 0 / 0.5707 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.6859, allocations: 88.34 kB / 0.5708 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006914/0.6866, allocations: 0.5466 MB / 0.5713 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.6869, allocations: 128.1 kB / 0.5715 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.687, allocations: 97.83 kB / 0.5715 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.687, allocations: 4 kB / 0.5716 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.6873, allocations: 177.7 kB / 0.5717 GB, free: 13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.6873, allocations: 0 / 0.5717 GB, free: 13 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005853/0.6879, allocations: 342.9 kB / 0.572 GB, free: 12.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.688, allocations: 85.11 kB / 0.5721 GB, free: 12.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.6882, allocations: 179 kB / 0.5723 GB, free: 12.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.6882, allocations: 33.64 kB / 0.5723 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.6883, allocations: 114.4 kB / 0.5724 GB, free: 12.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.6883, allocations: 42.64 kB / 0.5725 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.6883, allocations: 7.812 kB / 0.5725 GB, free: 12.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.6885, allocations: 330.2 kB / 0.5728 GB, free: 11.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.6886, allocations: 69.61 kB / 0.5729 GB, free: 11.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.6887, allocations: 117.7 kB / 0.573 GB, free: 11.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.6889, allocations: 107.5 kB / 0.5731 GB, free: 11.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6889, allocations: 0 / 0.5731 GB, free: 11.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004373/0.6894, allocations: 325.5 kB / 0.5734 GB, free: 11.42 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.6894, allocations: 33.69 kB / 0.5734 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.6894, allocations: 4 kB / 0.5734 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.6894, allocations: 3.938 kB / 0.5734 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.6896, allocations: 35.92 kB / 0.5735 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.6896, allocations: 0 / 0.5735 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.6898, allocations: 31.95 kB / 0.5735 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.6898, allocations: 11.81 kB / 0.5735 GB, free: 11.3 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.0001791/0.69, allocations: 162.9 kB / 0.5737 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.69, allocations: 19.77 kB / 0.5737 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.6901, allocations: 20.47 kB / 0.5737 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.6901, allocations: 3.984 kB / 0.5737 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.6901, allocations: 0 / 0.5737 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.6901, allocations: 0 / 0.5737 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009079/0.691, allocations: 0.7115 MB / 0.5744 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.691, allocations: 7.938 kB / 0.5744 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.546e-05/0.6911, allocations: 4 kB / 0.5744 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.6911, allocations: 0 / 0.5744 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.6912, allocations: 7.984 kB / 0.5744 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.6912, allocations: 0 / 0.5744 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6912, allocations: 0 / 0.5744 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.6919, allocations: 0.5795 MB / 0.575 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.692, allocations: 92.94 kB / 0.5751 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.692, allocations: 7.188 kB / 0.5751 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.6922, allocations: 19.98 kB / 0.5751 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.6923, allocations: 11.8 kB / 0.5751 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.6923, allocations: 8 kB / 0.5751 GB, free: 9.777 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.6924, allocations: 146.1 kB / 0.5753 GB, free: 9.652 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6924, allocations: 4 kB / 0.5753 GB, free: 9.648 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003422/0.6928, allocations: 63.05 kB / 0.5753 GB, free: 9.59 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.001058/0.6939, allocations: 1.093 MB / 0.5764 GB, free: 8.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000362/0.6942, allocations: 262.8 kB / 0.5766 GB, free: 8.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6942, allocations: 0 / 0.5766 GB, free: 8.367 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001904/0.6944, allocations: 165.9 kB / 0.5768 GB, free: 8.234 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.6947, allocations: 33.8 kB / 0.5768 GB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007715/0.6955, allocations: 332.9 kB / 0.5772 GB, free: 7.879 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.6959, allocations: 0.7316 MB / 0.5779 GB, free: 7.125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.13e-05/0.6959, allocations: 12.77 kB / 0.5779 GB, free: 7.109 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.957e-05/0.696, allocations: 42.23 kB / 0.5779 GB, free: 7.094 MB / 394.7 MB Notification: Performance of SimCode: time 3.1e-07/0.696, allocations: 0 / 0.5779 GB, free: 7.094 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.7117, allocations: 3.789 MB / 0.5816 GB, free: 3.309 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.712, allocations: 140.6 kB / 0.5818 GB, free: 3.082 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.709, allocations: 0 / 0.5818 GB, free: 3.082 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)