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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 124.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 190.7 kB / 21.4 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 207.6 MB / 231.8 MB, free: 4.094 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5196/0.5196, allocations: 49.52 MB / 333.2 MB, free: 0.7578 MB / 254.1 MB " [Timeout remaining time 179] 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=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") [Timeout 660] "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.002294/0.002294, allocations: 63.25 kB / 471.9 MB, free: 40.87 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1503, allocations: 62.35 MB / 0.5217 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002592/0.1529, allocations: 1.66 MB / 0.5234 GB, free: 192 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.1542, allocations: 0.7059 MB / 0.5241 GB, free: 15.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.1543, allocations: 0 / 0.5241 GB, free: 15.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.1545, allocations: 47.81 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1546, allocations: 71.66 kB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.1551, allocations: 119.7 kB / 0.5243 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.1553, allocations: 159.6 kB / 0.5244 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1555, allocations: 21.42 kB / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.249e-05/0.1555, allocations: 71.75 kB / 0.5245 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.1557, allocations: 103.7 kB / 0.5246 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.1558, allocations: 8 kB / 0.5246 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1559, allocations: 91.8 kB / 0.5247 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.49e-05/0.156, allocations: 39.84 kB / 0.5248 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.1561, allocations: 63.59 kB / 0.5248 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.1564, allocations: 195.2 kB / 0.525 GB, free: 14.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1564, allocations: 4 kB / 0.525 GB, free: 14.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1564, allocations: 0 / 0.525 GB, free: 14.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1564, allocations: 0 / 0.525 GB, free: 14.49 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.0008449/0.1572, allocations: 0.5136 MB / 0.5255 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1573, allocations: 15.89 kB / 0.5255 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.526e-05/0.1573, allocations: 24.78 kB / 0.5255 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.1577, allocations: 231.9 kB / 0.5258 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.1577, allocations: 4.375 kB / 0.5258 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.1577, allocations: 12.38 kB / 0.5258 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003514/0.1581, allocations: 172.4 kB / 0.5259 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1581, allocations: 4 kB / 0.526 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.1581, allocations: 4 kB / 0.526 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1581, allocations: 0 / 0.526 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.1583, allocations: 103.8 kB / 0.5261 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.159, allocations: 0.5322 MB / 0.5266 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.1593, allocations: 126.4 kB / 0.5267 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1595, allocations: 84.81 kB / 0.5268 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.1595, allocations: 4 kB / 0.5268 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.1598, allocations: 192.9 kB / 0.527 GB, free: 12.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.1598, allocations: 0 / 0.527 GB, free: 12.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008379/0.1607, allocations: 419.2 kB / 0.5274 GB, free: 11.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.1608, allocations: 85.11 kB / 0.5274 GB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.161, allocations: 202.6 kB / 0.5276 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.161, allocations: 29.7 kB / 0.5277 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.1611, allocations: 124.4 kB / 0.5278 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.1611, allocations: 39.81 kB / 0.5278 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.1612, allocations: 41.7 kB / 0.5279 GB, free: 11.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.1614, allocations: 334.8 kB / 0.5282 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.1616, allocations: 87.89 kB / 0.5283 GB, free: 10.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.1618, allocations: 112.2 kB / 0.5284 GB, free: 10.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000944/0.1627, allocations: 491.5 kB / 0.5288 GB, free: 10.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1627, allocations: 0 / 0.5288 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005426/0.1633, allocations: 330.8 kB / 0.5292 GB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.042e-05/0.1633, allocations: 37.69 kB / 0.5292 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1633, allocations: 0 / 0.5292 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1633, allocations: 8.125 kB / 0.5292 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.1635, allocations: 27.98 kB / 0.5292 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1635, allocations: 0 / 0.5292 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.1636, allocations: 27.8 kB / 0.5293 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.1636, allocations: 8 kB / 0.5293 GB, free: 9.781 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.0002225/0.1639, allocations: 196.2 kB / 0.5294 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.1639, allocations: 15.91 kB / 0.5295 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.971e-05/0.1639, allocations: 25.88 kB / 0.5295 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1639, allocations: 0 / 0.5295 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1639, allocations: 0 / 0.5295 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.1639, allocations: 11.92 kB / 0.5295 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009412/0.1649, allocations: 0.6796 MB / 0.5302 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1649, allocations: 0 / 0.5302 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.957e-05/0.1649, allocations: 4 kB / 0.5302 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.1649, allocations: 11.98 kB / 0.5302 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.165, allocations: 3.938 kB / 0.5302 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.165, allocations: 4 kB / 0.5302 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.165, allocations: 0 / 0.5302 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009177/0.1659, allocations: 0.5753 MB / 0.5307 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.972e-05/0.166, allocations: 96.92 kB / 0.5308 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.166, allocations: 11.98 kB / 0.5309 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1661, allocations: 11.98 kB / 0.5309 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.1662, allocations: 7.984 kB / 0.5309 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.1662, allocations: 12 kB / 0.5309 GB, free: 8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.1663, allocations: 143.2 kB / 0.531 GB, free: 7.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1663, allocations: 0 / 0.531 GB, free: 7.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.1667, allocations: 67.94 kB / 0.5311 GB, free: 7.793 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.0002057/0.1669, allocations: 123.2 kB / 0.5312 GB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005255/0.1674, allocations: 259.3 kB / 0.5314 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1674, allocations: 0 / 0.5314 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.1677, allocations: 167.4 kB / 0.5316 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.168, allocations: 39.88 kB / 0.5316 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000798/0.1688, allocations: 401.4 kB / 0.532 GB, free: 6.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1692, allocations: 0.7318 MB / 0.5327 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.1692, allocations: 11.44 kB / 0.5328 GB, free: 5.992 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1692, allocations: 0 / 0.5328 GB, free: 5.992 MB / 398.1 MB Notification: Performance of Templates: time 0.004773/0.174, allocations: 2.316 MB / 0.535 GB, free: 3.676 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.18519767500402] Failed to read output from testmodel.py, exit status != 0: 0.18253466399619356 0.19509527099999996 0.035957161 Calling exit ...