Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.001283/0.001283, allocations: 110 kB / 16.45 MB, free: 6.453 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.001395/0.001395, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.384/1.384, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002407/0.002407, allocations: 284.4 kB / 309.1 MB, free: 3.969 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.192/1.192, allocations: 180.9 MB / 0.5333 GB, free: 13.8 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 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.002815/0.002815, allocations: 103.8 kB / 0.7342 GB, free: 28.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1627, allocations: 95.35 MB / 0.8273 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002994/0.1657, allocations: 1.76 MB / 0.829 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1674, allocations: 1.114 MB / 0.8301 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.789e-05/0.1675, allocations: 8 kB / 0.8301 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 5.044e-05/0.1676, allocations: 15.8 kB / 0.8301 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.1677, allocations: 27.72 kB / 0.8302 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.1682, allocations: 179.7 kB / 0.8303 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00015/0.1683, allocations: 99.47 kB / 0.8304 GB, free: 6.668 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.1684, allocations: 23.92 kB / 0.8305 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1686, allocations: 51.78 kB / 0.8305 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.13e-05/0.1687, allocations: 39.84 kB / 0.8305 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.1687, allocations: 4 kB / 0.8305 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003435/0.169, allocations: 203.7 kB / 0.8307 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.962e-05/0.169, allocations: 11.94 kB / 0.8308 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.1691, allocations: 39.8 kB / 0.8308 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.1694, allocations: 215.3 kB / 0.831 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1694, allocations: 0 / 0.831 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1694, allocations: 4 kB / 0.831 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.1694, allocations: 0 / 0.831 GB, free: 6.086 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006019/0.17, allocations: 430.6 kB / 0.8314 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1701, allocations: 12.03 kB / 0.8314 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.844e-05/0.1701, allocations: 34.75 kB / 0.8315 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.1703, allocations: 20.88 kB / 0.8315 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.1705, allocations: 188.2 kB / 0.8317 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1705, allocations: 12.31 kB / 0.8317 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.1705, allocations: 4.375 kB / 0.8317 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.1707, allocations: 73.78 kB / 0.8317 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.1707, allocations: 0 / 0.8317 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1707, allocations: 8 kB / 0.8318 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1707, allocations: 0 / 0.8318 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.1709, allocations: 43.97 kB / 0.8318 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.1714, allocations: 400 kB / 0.8322 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.1715, allocations: 42.56 kB / 0.8322 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.093e-05/0.1716, allocations: 21.05 kB / 0.8322 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.1717, allocations: 85.05 kB / 0.8323 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.1717, allocations: 38.56 kB / 0.8324 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.1717, allocations: 0 / 0.8324 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0002845/0.172, allocations: 89.55 kB / 0.8324 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.1721, allocations: 59.41 kB / 0.8325 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.1722, allocations: 144.3 kB / 0.8326 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1722, allocations: 25.7 kB / 0.8327 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.659e-05/0.1723, allocations: 96.12 kB / 0.8327 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.1723, allocations: 15.91 kB / 0.8328 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.1723, allocations: 9.719 kB / 0.8328 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1725, allocations: 326.8 kB / 0.8331 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.726e-05/0.1725, allocations: 19.92 kB / 0.8331 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-05/0.1726, allocations: 12 kB / 0.8331 GB, free: 3.668 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.1727, allocations: 36.78 kB / 0.8332 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1727, allocations: 0 / 0.8332 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001538/0.1728, allocations: 73.95 kB / 0.8332 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.1728, allocations: 8 kB / 0.8332 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1728, allocations: 0 / 0.8332 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1729, allocations: 4 kB / 0.8332 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.173, allocations: 11.98 kB / 0.8332 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.173, allocations: 3.938 kB / 0.8332 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.457e-05/0.173, allocations: 3.938 kB / 0.8333 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.173, allocations: 7.984 kB / 0.8333 GB, free: 3.512 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 8.571e-05/0.1731, allocations: 109.8 kB / 0.8334 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.1731, allocations: 15.94 kB / 0.8334 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.1734, allocations: 89.84 kB / 0.8335 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1734, allocations: 0 / 0.8335 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1734, allocations: 7.938 kB / 0.8335 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1734, allocations: 0 / 0.8335 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002273/0.1736, allocations: 185.6 kB / 0.8336 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1736, allocations: 0 / 0.8336 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.379e-05/0.1737, allocations: 11.98 kB / 0.8337 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.1737, allocations: 0 / 0.8337 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.1737, allocations: 0 / 0.8337 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1737, allocations: 0 / 0.8337 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1737, allocations: 7.875 kB / 0.8337 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.1739, allocations: 175.4 kB / 0.8338 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.174, allocations: 89.05 kB / 0.8339 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.174, allocations: 4 kB / 0.8339 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.364e-05/0.1741, allocations: 4 kB / 0.8339 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/0.1741, allocations: 3.938 kB / 0.8339 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.1741, allocations: 0 / 0.8339 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.526e-05/0.1742, allocations: 121.4 kB / 0.834 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1742, allocations: 0 / 0.834 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003215/0.1745, allocations: 63.8 kB / 0.8341 GB, free: 2.539 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007397/0.1753, allocations: 0.7707 MB / 0.8349 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001757/0.1754, allocations: 35.98 kB / 0.8349 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1754, allocations: 3.938 kB / 0.8349 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 6.258e-05/0.1755, allocations: 19.98 kB / 0.8349 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1758, allocations: 15.92 kB / 0.8349 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.1775, allocations: 1.491 MB / 0.8364 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1778, allocations: 0.6963 MB / 0.8371 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.537e-05/0.1779, allocations: 8.312 kB / 0.8371 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.1779, allocations: 27.38 kB / 0.8371 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of SimCode: time 2.91e-07/0.1779, allocations: 0 / 0.8371 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.2042, allocations: 3.209 MB / 0.8402 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.871, allocations: 9.75 kB / 0.8402 GB, free: 12.21 MB / 0.5919 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.887231275904924] Failed to read output from testmodel.py, exit status != 0: 7.936723419930786 7.95027141 7.778040927 Calling exit ...