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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.759/1.759, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3265/0.3265, allocations: 49.6 MB / 336.4 MB, free: 3.883 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 72.38 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1476, allocations: 62.41 MB / 0.5261 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.00354/0.1511, allocations: 1.642 MB / 0.5277 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.1527, allocations: 0.6564 MB / 0.5284 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.1528, allocations: 4 kB / 0.5284 GB, free: 11.83 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002438/0.153, allocations: 51.75 kB / 0.5284 GB, free: 11.78 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1531, allocations: 63.72 kB / 0.5285 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005665/0.1537, allocations: 123.6 kB / 0.5286 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003235/0.154, allocations: 163.6 kB / 0.5288 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1542, allocations: 13.62 kB / 0.5288 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1543, allocations: 75.75 kB / 0.5288 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.1545, allocations: 103.6 kB / 0.5289 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.1545, allocations: 8 kB / 0.529 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.1547, allocations: 79.92 kB / 0.529 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.227e-05/0.1548, allocations: 39.84 kB / 0.5291 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.289e-05/0.1549, allocations: 43.73 kB / 0.5291 GB, free: 11.08 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.1552, allocations: 195.2 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.1552, allocations: 11.92 kB / 0.5293 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1552, allocations: 0 / 0.5293 GB, free: 10.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.1552, allocations: 3.938 kB / 0.5293 GB, free: 10.87 MB / 414.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.0009112/0.1561, allocations: 452.8 kB / 0.5297 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.1562, allocations: 8.031 kB / 0.5298 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.283e-05/0.1563, allocations: 42.73 kB / 0.5298 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.1563, allocations: 24.8 kB / 0.5298 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.1566, allocations: 174.1 kB / 0.53 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1566, allocations: 4.375 kB / 0.53 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.1567, allocations: 8.375 kB / 0.53 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.157, allocations: 209.9 kB / 0.5302 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1571, allocations: 0 / 0.5302 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.1571, allocations: 8 kB / 0.5302 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1571, allocations: 0 / 0.5302 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.1573, allocations: 133.6 kB / 0.5303 GB, free: 9.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007799/0.1581, allocations: 484.2 kB / 0.5308 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.1585, allocations: 164.1 kB / 0.5309 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.1587, allocations: 114.7 kB / 0.5311 GB, free: 8.906 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1587, allocations: 7.984 kB / 0.5311 GB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.1591, allocations: 218.7 kB / 0.5313 GB, free: 8.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.475e-06/0.1591, allocations: 0 / 0.5313 GB, free: 8.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001005/0.1601, allocations: 498.4 kB / 0.5317 GB, free: 8.148 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.1602, allocations: 81.11 kB / 0.5318 GB, free: 8.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.1604, allocations: 206.7 kB / 0.532 GB, free: 7.836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1604, allocations: 25.7 kB / 0.532 GB, free: 7.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1605, allocations: 124.4 kB / 0.5322 GB, free: 7.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.1606, allocations: 39.69 kB / 0.5322 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.71e-05/0.1607, allocations: 41.7 kB / 0.5322 GB, free: 7.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.1609, allocations: 330.8 kB / 0.5326 GB, free: 7.262 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1611, allocations: 113.6 kB / 0.5327 GB, free: 7.145 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/0.1613, allocations: 149.9 kB / 0.5328 GB, free: 6.977 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000999/0.1623, allocations: 486.8 kB / 0.5333 GB, free: 6.461 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1623, allocations: 4 kB / 0.5333 GB, free: 6.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006035/0.1629, allocations: 368.6 kB / 0.5336 GB, free: 6.078 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/0.163, allocations: 42.31 kB / 0.5337 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.163, allocations: 0 / 0.5337 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.163, allocations: 8.125 kB / 0.5337 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.1631, allocations: 31.91 kB / 0.5337 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.1632, allocations: 4 kB / 0.5337 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.1633, allocations: 23.81 kB / 0.5337 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.1633, allocations: 12 kB / 0.5337 GB, free: 5.953 MB / 414.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.0002495/0.1636, allocations: 179.5 kB / 0.5339 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.1636, allocations: 19.91 kB / 0.5339 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.1637, allocations: 17.8 kB / 0.534 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1637, allocations: 11.94 kB / 0.534 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1637, allocations: 4 kB / 0.534 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1637, allocations: 3.938 kB / 0.534 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1647, allocations: 0.6725 MB / 0.5346 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.1647, allocations: 7.984 kB / 0.5346 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-05/0.1648, allocations: 4 kB / 0.5346 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.1648, allocations: 3.938 kB / 0.5346 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.1648, allocations: 4 kB / 0.5346 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1648, allocations: 4 kB / 0.5347 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1648, allocations: 3.938 kB / 0.5347 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.1659, allocations: 0.6409 MB / 0.5353 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/0.1659, allocations: 23.81 kB / 0.5353 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.166, allocations: 8 kB / 0.5353 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.1661, allocations: 23.98 kB / 0.5353 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.1662, allocations: 11.98 kB / 0.5353 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.1662, allocations: 4 kB / 0.5354 GB, free: 4.191 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1663, allocations: 152.2 kB / 0.5355 GB, free: 4.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1663, allocations: 0 / 0.5355 GB, free: 4.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.1667, allocations: 55.94 kB / 0.5355 GB, free: 3.988 MB / 414.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.001451/0.1681, allocations: 1.213 MB / 0.5367 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006543/0.1688, allocations: 338.5 kB / 0.5371 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1688, allocations: 0 / 0.5371 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.1691, allocations: 196.9 kB / 0.5372 GB, free: 2.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.1695, allocations: 40.19 kB / 0.5373 GB, free: 2.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2401/0.4096, allocations: 2.616 MB / 0.5398 GB, free: 22.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.4097, allocations: 112.4 kB / 0.5399 GB, free: 22.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.158e-05/0.4098, allocations: 10.02 kB / 0.54 GB, free: 22.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.812e-05/0.4099, allocations: 47.08 kB / 0.54 GB, free: 22.12 MB / 414.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4099, allocations: 0 / 0.54 GB, free: 22.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.4448, allocations: 5.015 MB / 0.5449 GB, free: 20.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.59, allocations: 10.61 kB / 0.5449 GB, free: 20.92 MB / 414.1 MB " [Timeout remaining time 648] (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/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.824341990984976] Failed to read output from testmodel.py, exit status != 0: 11.694777145981789 11.717493523 11.558277064 Calling exit ...