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.001222/0.001222, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.001097/0.001097, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2884/0.2884, allocations: 48.85 MB / 320.7 MB, free: 11.03 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.001447/0.001447, allocations: 67.91 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1388, allocations: 59.16 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003406/0.1422, allocations: 1.646 MB / 0.5 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1436, allocations: 0.7097 MB / 0.5007 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.337e-05/0.1437, allocations: 0 / 0.5007 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.1439, allocations: 55.73 kB / 0.5007 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.973e-05/0.144, allocations: 55.73 kB / 0.5008 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.1446, allocations: 119.7 kB / 0.5009 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002762/0.1449, allocations: 167.6 kB / 0.5011 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.145, allocations: 25.36 kB / 0.5011 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.1451, allocations: 67.83 kB / 0.5012 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.1453, allocations: 103.6 kB / 0.5013 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.1453, allocations: 8 kB / 0.5013 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.1455, allocations: 91.92 kB / 0.5013 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.779e-05/0.1456, allocations: 39.89 kB / 0.5014 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.339e-05/0.1457, allocations: 63.61 kB / 0.5014 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.146, allocations: 195.4 kB / 0.5016 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.146, allocations: 0 / 0.5016 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.146, allocations: 0 / 0.5016 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.146, allocations: 3.938 kB / 0.5016 GB, free: 9.922 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.0008541/0.1469, allocations: 0.5176 MB / 0.5021 GB, free: 9.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1469, allocations: 11.89 kB / 0.5022 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.147, allocations: 20.75 kB / 0.5022 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.1473, allocations: 223.9 kB / 0.5024 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.1474, allocations: 4.375 kB / 0.5024 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.1474, allocations: 4.375 kB / 0.5024 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.1478, allocations: 180.4 kB / 0.5026 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1478, allocations: 7.938 kB / 0.5026 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.1478, allocations: 0 / 0.5026 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1478, allocations: 0 / 0.5026 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.148, allocations: 99.86 kB / 0.5027 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.1487, allocations: 0.5321 MB / 0.5032 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.149, allocations: 146.4 kB / 0.5033 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.1492, allocations: 104.8 kB / 0.5034 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1493, allocations: 0 / 0.5034 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.1496, allocations: 180.9 kB / 0.5036 GB, free: 7.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 3.226e-06/0.1496, allocations: 112 / 0.5036 GB, free: 7.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008333/0.1504, allocations: 438.9 kB / 0.504 GB, free: 7.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.1505, allocations: 81.11 kB / 0.5041 GB, free: 7.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.1507, allocations: 202.6 kB / 0.5043 GB, free: 6.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1507, allocations: 25.7 kB / 0.5043 GB, free: 6.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.1508, allocations: 120.4 kB / 0.5044 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.1509, allocations: 47.44 kB / 0.5045 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.072e-05/0.1509, allocations: 41.7 kB / 0.5045 GB, free: 6.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1511, allocations: 334.8 kB / 0.5048 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1513, allocations: 79.94 kB / 0.5049 GB, free: 6.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.1515, allocations: 112.2 kB / 0.505 GB, free: 6.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009341/0.1524, allocations: 486.8 kB / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1524, allocations: 0 / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005665/0.153, allocations: 327.6 kB / 0.5058 GB, free: 5.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.153, allocations: 45.62 kB / 0.5058 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.153, allocations: 3.938 kB / 0.5058 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1531, allocations: 4 kB / 0.5058 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1532, allocations: 27.92 kB / 0.5059 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.1532, allocations: 7.984 kB / 0.5059 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.1534, allocations: 19.84 kB / 0.5059 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.1534, allocations: 11.98 kB / 0.5059 GB, free: 5.199 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.0002118/0.1536, allocations: 187.4 kB / 0.5061 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.1537, allocations: 19.81 kB / 0.5061 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.1537, allocations: 13.88 kB / 0.5061 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1537, allocations: 11.92 kB / 0.5061 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1537, allocations: 0 / 0.5061 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1537, allocations: 3.938 kB / 0.5061 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009431/0.1547, allocations: 0.6835 MB / 0.5068 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1547, allocations: 0 / 0.5068 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.483e-05/0.1548, allocations: 7.984 kB / 0.5068 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1548, allocations: 4 kB / 0.5068 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.1548, allocations: 7.938 kB / 0.5068 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1548, allocations: 3.938 kB / 0.5068 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1548, allocations: 3.938 kB / 0.5068 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008901/0.1557, allocations: 0.5749 MB / 0.5074 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1558, allocations: 100.8 kB / 0.5075 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.1558, allocations: 4 kB / 0.5075 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.156, allocations: 15.98 kB / 0.5075 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.156, allocations: 7.984 kB / 0.5075 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.1561, allocations: 11.98 kB / 0.5075 GB, free: 3.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.1562, allocations: 159 kB / 0.5077 GB, free: 3.266 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1562, allocations: 0 / 0.5077 GB, free: 3.266 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1565, allocations: 52 kB / 0.5077 GB, free: 3.215 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.0001971/0.1567, allocations: 123.2 kB / 0.5078 GB, free: 3.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005233/0.1573, allocations: 299.3 kB / 0.5081 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1573, allocations: 0 / 0.5081 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002611/0.1575, allocations: 191.3 kB / 0.5083 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.1579, allocations: 23.98 kB / 0.5083 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007909/0.1587, allocations: 410.5 kB / 0.5087 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.1591, allocations: 0.7279 MB / 0.5094 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.1591, allocations: 15.44 kB / 0.5095 GB, free: 1.359 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1591, allocations: 0 / 0.5095 GB, free: 1.359 MB / 398.1 MB Notification: Performance of Templates: time 0.00489/0.164, allocations: 2.334 MB / 0.5117 GB, free: 15.02 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)