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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001297, allocations: 112.6 kB / 17.74 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 184.5 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2854/0.2854, allocations: 48.85 MB / 320.7 MB, free: 11.02 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002519/0.002519, allocations: 67.89 kB / 451.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1367, allocations: 59.16 MB / 0.4984 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003522/0.1403, allocations: 1.661 MB / 0.5 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.1418, allocations: 0.7137 MB / 0.5007 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.142, allocations: 0 / 0.5007 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.1422, allocations: 51.73 kB / 0.5007 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.1424, allocations: 55.73 kB / 0.5008 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005972/0.143, allocations: 123.7 kB / 0.5009 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.1433, allocations: 159.6 kB / 0.5011 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.1435, allocations: 29.34 kB / 0.5011 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.1436, allocations: 67.83 kB / 0.5012 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.1438, allocations: 99.64 kB / 0.5013 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.1439, allocations: 12 kB / 0.5013 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.1441, allocations: 91.86 kB / 0.5014 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.355e-05/0.1442, allocations: 35.89 kB / 0.5014 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1443, allocations: 67.61 kB / 0.5015 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.1446, allocations: 183.4 kB / 0.5016 GB, free: 9.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.1446, allocations: 7.984 kB / 0.5016 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.1446, allocations: 0 / 0.5016 GB, free: 9.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1446, allocations: 3.938 kB / 0.5016 GB, free: 9.926 MB / 398.1 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.0009541/0.1456, allocations: 0.5137 MB / 0.5021 GB, free: 9.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1456, allocations: 11.89 kB / 0.5022 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.618e-05/0.1457, allocations: 20.73 kB / 0.5022 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.1461, allocations: 227.9 kB / 0.5024 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.1461, allocations: 8.375 kB / 0.5024 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1462, allocations: 8.359 kB / 0.5024 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.1465, allocations: 176.4 kB / 0.5026 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1466, allocations: 0 / 0.5026 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.1466, allocations: 8 kB / 0.5026 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1466, allocations: 0 / 0.5026 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.1468, allocations: 95.88 kB / 0.5027 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007055/0.1475, allocations: 0.5321 MB / 0.5032 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.1479, allocations: 146.4 kB / 0.5033 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.1481, allocations: 104.8 kB / 0.5034 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1482, allocations: 3.938 kB / 0.5034 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.1485, allocations: 180.9 kB / 0.5036 GB, free: 7.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 3.878e-06/0.1485, allocations: 112 / 0.5036 GB, free: 7.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008443/0.1494, allocations: 434.9 kB / 0.504 GB, free: 7.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.1494, allocations: 81.11 kB / 0.5041 GB, free: 7.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.1496, allocations: 202.6 kB / 0.5043 GB, free: 6.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.1497, allocations: 29.64 kB / 0.5043 GB, free: 6.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/0.1498, allocations: 120.4 kB / 0.5044 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.1498, allocations: 47.44 kB / 0.5045 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.1499, allocations: 41.7 kB / 0.5045 GB, free: 6.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1501, allocations: 334.8 kB / 0.5048 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.1503, allocations: 75.95 kB / 0.5049 GB, free: 6.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.1505, allocations: 116.2 kB / 0.505 GB, free: 6.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009434/0.1514, allocations: 486.8 kB / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1514, allocations: 0 / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005609/0.152, allocations: 323.6 kB / 0.5058 GB, free: 5.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.1521, allocations: 45.59 kB / 0.5058 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1521, allocations: 3.938 kB / 0.5058 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.1521, allocations: 4 kB / 0.5058 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.1523, allocations: 23.98 kB / 0.5059 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1523, allocations: 7.938 kB / 0.5059 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1524, allocations: 23.83 kB / 0.5059 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1524, allocations: 12 kB / 0.5059 GB, free: 5.203 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti 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 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00023/0.1527, allocations: 187.5 kB / 0.5061 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.1527, allocations: 19.81 kB / 0.5061 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.1528, allocations: 13.88 kB / 0.5061 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1528, allocations: 4 kB / 0.5061 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1528, allocations: 0 / 0.5061 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.1528, allocations: 7.922 kB / 0.5061 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009555/0.1538, allocations: 0.6834 MB / 0.5068 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1538, allocations: 3.984 kB / 0.5068 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.043e-05/0.1538, allocations: 8 kB / 0.5068 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.1539, allocations: 7.984 kB / 0.5068 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.034e-05/0.1539, allocations: 7.938 kB / 0.5068 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1539, allocations: 0 / 0.5068 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1539, allocations: 0 / 0.5068 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.1549, allocations: 0.5788 MB / 0.5074 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.155, allocations: 96.83 kB / 0.5075 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.479e-05/0.1551, allocations: 7.984 kB / 0.5075 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.1552, allocations: 15.92 kB / 0.5075 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.1553, allocations: 11.98 kB / 0.5075 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.1553, allocations: 8.062 kB / 0.5075 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.1555, allocations: 151 kB / 0.5077 GB, free: 3.277 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1555, allocations: 0 / 0.5077 GB, free: 3.277 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.1559, allocations: 59.98 kB / 0.5077 GB, free: 3.219 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002559/0.1561, allocations: 119.2 kB / 0.5078 GB, free: 3.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006004/0.1567, allocations: 299.3 kB / 0.5081 GB, free: 2.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1568, allocations: 0 / 0.5081 GB, free: 2.789 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.1571, allocations: 188 kB / 0.5083 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.1575, allocations: 32.19 kB / 0.5083 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008083/0.1583, allocations: 413.6 kB / 0.5087 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.1587, allocations: 0.7201 MB / 0.5094 GB, free: 1.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.1587, allocations: 19.44 kB / 0.5095 GB, free: 1.363 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1587, allocations: 3.938 kB / 0.5095 GB, free: 1.359 MB / 398.1 MB Notification: Performance of Templates: time 0.005113/0.1638, allocations: 2.307 MB / 0.5117 GB, free: 15.05 MB / 414.1 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)