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.001288/0.001288, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001572/0.001572, allocations: 215.4 kB / 22.25 MB, free: 5.082 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.404/1.404, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002426/0.002426, allocations: 284.9 kB / 312.7 MB, free: 2.91 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.255/1.255, allocations: 180.6 MB / 0.5369 GB, free: 13 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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.0028/0.0028, allocations: 98.83 kB / 0.7395 GB, free: 28.57 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1735, allocations: 95.39 MB / 0.8327 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002854/0.1764, allocations: 1.767 MB / 0.8344 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.178, allocations: 1.129 MB / 0.8355 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.042e-05/0.1781, allocations: 0 / 0.8355 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 5.176e-05/0.1782, allocations: 11.86 kB / 0.8355 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 9.9e-05/0.1783, allocations: 31.7 kB / 0.8356 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005294/0.1788, allocations: 187.4 kB / 0.8357 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.1789, allocations: 95.47 kB / 0.8358 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.1791, allocations: 24.2 kB / 0.8359 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.1792, allocations: 47.8 kB / 0.8359 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.706e-05/0.1793, allocations: 35.84 kB / 0.8359 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.1793, allocations: 11.98 kB / 0.8359 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003514/0.1797, allocations: 199.8 kB / 0.8361 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.1797, allocations: 19.92 kB / 0.8362 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.048e-05/0.1797, allocations: 43.8 kB / 0.8362 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.18, allocations: 207.3 kB / 0.8364 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1801, allocations: 4 kB / 0.8364 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1801, allocations: 0 / 0.8364 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.1801, allocations: 0 / 0.8364 GB, free: 4.992 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.0005261/0.1806, allocations: 349.5 kB / 0.8367 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.1806, allocations: 9.938 kB / 0.8367 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.1807, allocations: 38.75 kB / 0.8368 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1808, allocations: 20.88 kB / 0.8368 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.181, allocations: 146.3 kB / 0.8369 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.181, allocations: 384 / 0.8369 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.1811, allocations: 8.375 kB / 0.8369 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.1812, allocations: 73.73 kB / 0.837 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1812, allocations: 0 / 0.837 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1813, allocations: 4 kB / 0.837 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1813, allocations: 0 / 0.837 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.1814, allocations: 59.95 kB / 0.8371 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005123/0.1819, allocations: 359.1 kB / 0.8374 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.182, allocations: 38.56 kB / 0.8375 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.421e-05/0.1821, allocations: 16.97 kB / 0.8375 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.083e-05/0.1822, allocations: 16.02 kB / 0.8375 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.1822, allocations: 38.5 kB / 0.8375 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1822, allocations: 3.938 kB / 0.8375 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0002722/0.1825, allocations: 81.62 kB / 0.8376 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.1825, allocations: 51.41 kB / 0.8377 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.1826, allocations: 160.1 kB / 0.8378 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1826, allocations: 25.7 kB / 0.8378 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/0.1827, allocations: 96.14 kB / 0.8379 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.1827, allocations: 19.88 kB / 0.8379 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.1828, allocations: 13.72 kB / 0.838 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1829, allocations: 322.8 kB / 0.8383 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.91e-05/0.1829, allocations: 12 kB / 0.8383 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.511e-05/0.183, allocations: 19.92 kB / 0.8383 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.386e-05/0.1831, allocations: 32.84 kB / 0.8383 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1831, allocations: 0 / 0.8383 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000144/0.1832, allocations: 73.62 kB / 0.8384 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1832, allocations: 6.031 kB / 0.8384 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1833, allocations: 0 / 0.8384 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1833, allocations: 4 kB / 0.8384 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.646e-05/0.1834, allocations: 7.984 kB / 0.8384 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.1834, allocations: 3.938 kB / 0.8384 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.386e-05/0.1834, allocations: 8 kB / 0.8384 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.1834, allocations: 0 / 0.8384 GB, free: 2.715 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 9.333e-05/0.1835, allocations: 126.4 kB / 0.8385 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.134e-05/0.1835, allocations: 11.94 kB / 0.8386 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/0.1837, allocations: 78.02 kB / 0.8386 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1837, allocations: 0 / 0.8386 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1838, allocations: 3.938 kB / 0.8386 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.1838, allocations: 3.984 kB / 0.8386 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.1839, allocations: 156.7 kB / 0.8388 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.184, allocations: 4 kB / 0.8388 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.892e-05/0.184, allocations: 7.984 kB / 0.8388 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.184, allocations: 8.375 kB / 0.8388 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.184, allocations: 0 / 0.8388 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.184, allocations: 0 / 0.8388 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.184, allocations: 7.875 kB / 0.8388 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002026/0.1842, allocations: 175.4 kB / 0.839 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.772e-05/0.1843, allocations: 7.953 kB / 0.839 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.1843, allocations: 4 kB / 0.839 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.366e-05/0.1843, allocations: 11.98 kB / 0.839 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.1844, allocations: 11.88 kB / 0.839 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1844, allocations: 0 / 0.839 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.04e-05/0.1845, allocations: 114 kB / 0.8391 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1845, allocations: 0 / 0.8391 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002917/0.1848, allocations: 63.81 kB / 0.8392 GB, free: 1.852 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.000652/0.1854, allocations: 0.7707 MB / 0.8399 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001534/0.1856, allocations: 35.97 kB / 0.84 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1856, allocations: 0 / 0.84 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 5.53e-05/0.1856, allocations: 19.98 kB / 0.84 GB, free: 1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.1859, allocations: 19.92 kB / 0.84 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1876, allocations: 1.5 MB / 0.8415 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.1879, allocations: 0.6962 MB / 0.8422 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.435e-05/0.188, allocations: 4 kB / 0.8422 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.188, allocations: 31.36 kB / 0.8422 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of SimCode: time 3.41e-07/0.188, allocations: 4 kB / 0.8422 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.2184, allocations: 3.313 MB / 0.8454 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.987/10.21, allocations: 5.172 kB / 0.8454 GB, free: 11.46 MB / 0.5919 GB " [Timeout remaining time 650] (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: 14.388129224000295] Failed to read output from testmodel.py, exit status != 0: 10.305093154001952 10.321500531 10.138327348 Calling exit ...