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.001176/0.001176, allocations: 105.2 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.001234/0.001234, allocations: 186.5 kB / 18.68 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.504/1.504, allocations: 205.1 MB / 224.6 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.3382/0.3382, allocations: 48.85 MB / 320.8 MB, free: 11.01 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.001663/0.001663, allocations: 75.84 kB / 451.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1351, allocations: 59.16 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.004557/0.1397, allocations: 1.644 MB / 0.5 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.1417, allocations: 0.7097 MB / 0.5007 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002189/0.142, allocations: 0 / 0.5007 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.1423, allocations: 59.73 kB / 0.5008 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002159/0.1426, allocations: 59.73 kB / 0.5008 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008728/0.1435, allocations: 119.7 kB / 0.5009 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000415/0.1439, allocations: 163.5 kB / 0.5011 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1441, allocations: 25.42 kB / 0.5011 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.1443, allocations: 67.81 kB / 0.5012 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.1445, allocations: 103.6 kB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.1446, allocations: 12 kB / 0.5013 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000213/0.1448, allocations: 83.88 kB / 0.5014 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-05/0.1449, allocations: 31.89 kB / 0.5014 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.145, allocations: 67.59 kB / 0.5015 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.1455, allocations: 191.2 kB / 0.5016 GB, free: 9.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.248e-05/0.1455, allocations: 0 / 0.5016 GB, free: 9.922 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1455, allocations: 3.938 kB / 0.5016 GB, free: 9.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.008e-05/0.1456, allocations: 0 / 0.5016 GB, free: 9.918 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.0009841/0.1465, allocations: 0.5214 MB / 0.5022 GB, free: 9.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.1466, allocations: 15.89 kB / 0.5022 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.805e-05/0.1467, allocations: 20.8 kB / 0.5022 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1471, allocations: 228 kB / 0.5024 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1471, allocations: 8.359 kB / 0.5024 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.811e-05/0.1471, allocations: 12.36 kB / 0.5024 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.1475, allocations: 176.4 kB / 0.5026 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1475, allocations: 3.938 kB / 0.5026 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.1476, allocations: 3.984 kB / 0.5026 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.1476, allocations: 4 kB / 0.5026 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.1478, allocations: 91.94 kB / 0.5027 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007068/0.1485, allocations: 0.5399 MB / 0.5032 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.1489, allocations: 134.5 kB / 0.5033 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.1491, allocations: 108.8 kB / 0.5034 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.1491, allocations: 0 / 0.5034 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.1495, allocations: 192.9 kB / 0.5036 GB, free: 7.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.114e-06/0.1495, allocations: 3.938 kB / 0.5036 GB, free: 7.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008615/0.1503, allocations: 419.2 kB / 0.504 GB, free: 7.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.1504, allocations: 85.11 kB / 0.5041 GB, free: 7.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.1506, allocations: 198.6 kB / 0.5043 GB, free: 6.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1506, allocations: 29.7 kB / 0.5043 GB, free: 6.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.116e-05/0.1507, allocations: 124.4 kB / 0.5045 GB, free: 6.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.1508, allocations: 39.69 kB / 0.5045 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.1509, allocations: 45.7 kB / 0.5045 GB, free: 6.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.151, allocations: 334.8 kB / 0.5049 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.1512, allocations: 83.89 kB / 0.5049 GB, free: 6.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.1514, allocations: 120.2 kB / 0.505 GB, free: 6.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.1523, allocations: 478.8 kB / 0.5055 GB, free: 5.633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1524, allocations: 4 kB / 0.5055 GB, free: 5.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000531/0.1529, allocations: 331.6 kB / 0.5058 GB, free: 5.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.153, allocations: 45.55 kB / 0.5059 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.153, allocations: 4 kB / 0.5059 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.153, allocations: 0 / 0.5059 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1531, allocations: 31.97 kB / 0.5059 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.1532, allocations: 0 / 0.5059 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.1533, allocations: 19.92 kB / 0.5059 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.1533, allocations: 15.94 kB / 0.5059 GB, free: 5.172 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.0002049/0.1535, allocations: 191.5 kB / 0.5061 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.1536, allocations: 15.91 kB / 0.5061 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.1536, allocations: 21.86 kB / 0.5062 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1536, allocations: 0 / 0.5062 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1536, allocations: 0 / 0.5062 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.1537, allocations: 89.02 kB / 0.5062 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.1537, allocations: 15.92 kB / 0.5063 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.1539, allocations: 15.98 kB / 0.5063 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.1539, allocations: 11.97 kB / 0.5063 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006976/0.1546, allocations: 489.8 kB / 0.5068 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009456/0.1556, allocations: 0.6563 MB / 0.5074 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002306/0.1558, allocations: 131.8 kB / 0.5075 GB, free: 3.469 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.156, allocations: 147 kB / 0.5077 GB, free: 3.324 MB / 398.1 MB Notification: Performance of Backend: time 9.32e-07/0.156, allocations: 0 / 0.5077 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007104/0.1567, allocations: 310.1 kB / 0.508 GB, free: 3.004 MB / 398.1 MB Notification: Performance of SimCode: time 0.0008968/0.1576, allocations: 0.8133 MB / 0.5087 GB, free: 2.133 MB / 398.1 MB Notification: Performance of Templates: time 0.006289/0.1639, allocations: 2.441 MB / 0.5111 GB, free: 15.69 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)