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.001666/0.001666, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002317/0.002317, allocations: 208.9 kB / 23.73 MB, free: 4.387 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 2.102/2.102, allocations: 207.7 MB / 234.6 MB, free: 9.789 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.4404/0.4404, allocations: 49.6 MB / 336.4 MB, free: 3.875 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.002331/0.002331, allocations: 67.91 kB / 476.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1869, allocations: 62.42 MB / 0.5261 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003756/0.1907, allocations: 1.634 MB / 0.5277 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.1921, allocations: 0.6642 MB / 0.5284 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.703e-05/0.1922, allocations: 0 / 0.5284 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.1925, allocations: 51.81 kB / 0.5284 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.1926, allocations: 63.67 kB / 0.5285 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005432/0.1931, allocations: 119.7 kB / 0.5286 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.1934, allocations: 167.5 kB / 0.5288 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1935, allocations: 17.61 kB / 0.5288 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.1936, allocations: 75.75 kB / 0.5288 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1938, allocations: 95.69 kB / 0.5289 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.1939, allocations: 12 kB / 0.529 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.194, allocations: 83.86 kB / 0.529 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.023e-05/0.1941, allocations: 27.86 kB / 0.5291 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.673e-05/0.1942, allocations: 55.72 kB / 0.5291 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.1945, allocations: 191.2 kB / 0.5293 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1945, allocations: 8 kB / 0.5293 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1945, allocations: 3.938 kB / 0.5293 GB, free: 10.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.1945, allocations: 0 / 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.0008609/0.1954, allocations: 452.8 kB / 0.5297 GB, free: 10.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1954, allocations: 8.031 kB / 0.5297 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.518e-05/0.1955, allocations: 46.67 kB / 0.5298 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.1956, allocations: 20.8 kB / 0.5298 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.1959, allocations: 174.1 kB / 0.53 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.1959, allocations: 8.375 kB / 0.53 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.196, allocations: 8.375 kB / 0.53 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.1964, allocations: 213.9 kB / 0.5302 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1964, allocations: 0 / 0.5302 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.1964, allocations: 8 kB / 0.5302 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1965, allocations: 0 / 0.5302 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.1967, allocations: 129.6 kB / 0.5303 GB, free: 9.719 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007953/0.1975, allocations: 484.2 kB / 0.5308 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.1979, allocations: 152.2 kB / 0.5309 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.1981, allocations: 122.6 kB / 0.5311 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.1981, allocations: 3.938 kB / 0.5311 GB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004066/0.1985, allocations: 226.7 kB / 0.5313 GB, free: 8.652 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.1986, allocations: 0 / 0.5313 GB, free: 8.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009488/0.1995, allocations: 487 kB / 0.5317 GB, free: 8.152 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.1996, allocations: 85.09 kB / 0.5318 GB, free: 8.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.1998, allocations: 206.7 kB / 0.532 GB, free: 7.836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.1998, allocations: 33.7 kB / 0.532 GB, free: 7.797 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1999, allocations: 120.3 kB / 0.5322 GB, free: 7.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.2, allocations: 35.7 kB / 0.5322 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.2001, allocations: 41.7 kB / 0.5322 GB, free: 7.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.2002, allocations: 338.8 kB / 0.5326 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.2005, allocations: 105.7 kB / 0.5327 GB, free: 7.145 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.2007, allocations: 165.8 kB / 0.5328 GB, free: 6.961 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.2017, allocations: 486.8 kB / 0.5333 GB, free: 6.445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2017, allocations: 0 / 0.5333 GB, free: 6.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006331/0.2023, allocations: 376.6 kB / 0.5336 GB, free: 6.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.2024, allocations: 37.69 kB / 0.5337 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2024, allocations: 0 / 0.5337 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.2024, allocations: 8.125 kB / 0.5337 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.2026, allocations: 27.98 kB / 0.5337 GB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.2026, allocations: 7.938 kB / 0.5337 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.2027, allocations: 23.81 kB / 0.5337 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.2027, allocations: 12 kB / 0.5338 GB, free: 5.938 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.0002626/0.203, allocations: 183.4 kB / 0.5339 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.203, allocations: 19.91 kB / 0.5339 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.2031, allocations: 21.81 kB / 0.534 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2031, allocations: 4 kB / 0.534 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2031, allocations: 0 / 0.534 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.2031, allocations: 7.922 kB / 0.534 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.2042, allocations: 0.6687 MB / 0.5346 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2042, allocations: 0 / 0.5346 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.333e-05/0.2043, allocations: 8 kB / 0.5346 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.2043, allocations: 3.938 kB / 0.5346 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.2043, allocations: 15.98 kB / 0.5347 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2043, allocations: 0 / 0.5347 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2043, allocations: 0 / 0.5347 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.2054, allocations: 0.6447 MB / 0.5353 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.2054, allocations: 19.83 kB / 0.5353 GB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.2055, allocations: 8 kB / 0.5353 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.2056, allocations: 24.03 kB / 0.5353 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.2057, allocations: 7.984 kB / 0.5353 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.2057, allocations: 8 kB / 0.5354 GB, free: 4.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001469/0.2059, allocations: 148.2 kB / 0.5355 GB, free: 4.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2059, allocations: 0 / 0.5355 GB, free: 4.035 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.2062, allocations: 63.86 kB / 0.5356 GB, free: 3.973 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.001485/0.2077, allocations: 1.209 MB / 0.5367 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000626/0.2083, allocations: 334.5 kB / 0.5371 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2083, allocations: 0 / 0.5371 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.2086, allocations: 196.9 kB / 0.5372 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.209, allocations: 44.28 kB / 0.5373 GB, free: 2.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3899/0.5989, allocations: 2.621 MB / 0.5398 GB, free: 22.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.5991, allocations: 112 kB / 0.5399 GB, free: 22.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.5992, allocations: 10.67 kB / 0.54 GB, free: 22.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.5993, allocations: 45.86 kB / 0.54 GB, free: 22.08 MB / 414.1 MB Notification: Performance of SimCode: time 1.943e-06/0.5993, allocations: 1.594 kB / 0.54 GB, free: 22.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04323/0.6425, allocations: 5.006 MB / 0.5449 GB, free: 20.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.94, allocations: 21.23 kB / 0.5449 GB, free: 20.87 MB / 414.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 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: 18.168720786925405] Failed to read output from testmodel.py, exit status != 0: 14.05494585307315 14.087217952 13.888254819 Calling exit ...