Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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.001329/0.001329, allocations: 108.3 kB / 16.46 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.0015/0.0015, 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.459/1.459, allocations: 230.6 MB / 252.8 MB, free: 8.996 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.002512/0.002512, allocations: 300.1 kB / 309.1 MB, free: 3.984 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.204/1.204, allocations: 180.9 MB / 0.5333 GB, free: 13.79 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.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",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.002753/0.002753, allocations: 103.3 kB / 0.7342 GB, free: 28.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.176, allocations: 95.34 MB / 0.8273 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002996/0.179, allocations: 1.676 MB / 0.829 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.18, allocations: 0.6117 MB / 0.8296 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.1801, allocations: 7.938 kB / 0.8296 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.1802, allocations: 35.7 kB / 0.8296 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.1805, allocations: 67.67 kB / 0.8297 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.1807, allocations: 79.84 kB / 0.8298 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1809, allocations: 127.5 kB / 0.8299 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.181, allocations: 37.75 kB / 0.8299 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.1812, allocations: 63.77 kB / 0.83 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.1813, allocations: 71.62 kB / 0.83 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.1813, allocations: 8 kB / 0.83 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.1814, allocations: 24 kB / 0.8301 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.075e-05/0.1814, allocations: 47.88 kB / 0.8301 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.1815, allocations: 59.55 kB / 0.8302 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.1817, allocations: 151.2 kB / 0.8303 GB, free: 6.801 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1817, allocations: 4 kB / 0.8303 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1817, allocations: 0 / 0.8303 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.1817, allocations: 3.938 kB / 0.8303 GB, free: 6.793 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006387/0.1824, allocations: 471.5 kB / 0.8308 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.1824, allocations: 12.03 kB / 0.8308 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.47e-05/0.1825, allocations: 38.75 kB / 0.8308 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.1826, allocations: 28.78 kB / 0.8308 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.1829, allocations: 251.7 kB / 0.8311 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.183, allocations: 4.375 kB / 0.8311 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.183, allocations: 4.375 kB / 0.8311 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.1832, allocations: 121 kB / 0.8312 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1833, allocations: 0 / 0.8312 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1833, allocations: 4 kB / 0.8312 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.1833, allocations: 3.938 kB / 0.8312 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.1835, allocations: 63.94 kB / 0.8313 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000579/0.1841, allocations: 384.5 kB / 0.8316 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.1842, allocations: 42.48 kB / 0.8317 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1843, allocations: 24.91 kB / 0.8317 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.1844, allocations: 0 / 0.8317 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.1846, allocations: 105.1 kB / 0.8318 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1846, allocations: 0 / 0.8318 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004405/0.185, allocations: 125.4 kB / 0.8319 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.1851, allocations: 77.11 kB / 0.832 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1854, allocations: 268.9 kB / 0.8323 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.1854, allocations: 29.64 kB / 0.8323 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.283e-05/0.1855, allocations: 124.1 kB / 0.8324 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.1855, allocations: 15.94 kB / 0.8324 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.1855, allocations: 17.7 kB / 0.8324 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.1857, allocations: 326.8 kB / 0.8328 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.1858, allocations: 23.97 kB / 0.8328 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1859, allocations: 51.41 kB / 0.8328 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.1862, allocations: 62.47 kB / 0.8329 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1862, allocations: 4.031 kB / 0.8329 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002887/0.1865, allocations: 105.5 kB / 0.833 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1865, allocations: 4 kB / 0.833 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1865, allocations: 0 / 0.833 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1865, allocations: 3.938 kB / 0.833 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.1866, allocations: 11.98 kB / 0.833 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.1866, allocations: 16.06 kB / 0.833 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.482e-05/0.1867, allocations: 19.89 kB / 0.833 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1867, allocations: 3.984 kB / 0.833 GB, free: 3.742 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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 0.0001046/0.1868, allocations: 121.8 kB / 0.8332 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.1868, allocations: 19.89 kB / 0.8332 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.1869, allocations: 21.19 kB / 0.8332 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1869, allocations: 0 / 0.8332 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1869, allocations: 0 / 0.8332 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1869, allocations: 4 kB / 0.8332 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.1871, allocations: 221.5 kB / 0.8334 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1871, allocations: 0 / 0.8334 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.1872, allocations: 15.92 kB / 0.8334 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1872, allocations: 0 / 0.8334 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.1872, allocations: 3.938 kB / 0.8334 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1872, allocations: 0 / 0.8334 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1872, allocations: 4 kB / 0.8334 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.1875, allocations: 124.9 kB / 0.8336 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.1875, allocations: 89.33 kB / 0.8336 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.1876, allocations: 11.94 kB / 0.8337 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.1876, allocations: 7.984 kB / 0.8337 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.1877, allocations: 7.984 kB / 0.8337 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.1877, allocations: 4 kB / 0.8337 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000185/0.1879, allocations: 192.5 kB / 0.8339 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1879, allocations: 4 kB / 0.8339 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002279/0.1881, allocations: 16 kB / 0.8339 GB, free: 2.797 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0007234/0.1888, allocations: 0.6879 MB / 0.8345 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002903/0.1891, allocations: 63.81 kB / 0.8346 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1891, allocations: 192 / 0.8346 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.1893, allocations: 27.97 kB / 0.8346 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.1895, allocations: 49.59 kB / 0.8347 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.1917, allocations: 1.758 MB / 0.8364 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1921, allocations: 0.7197 MB / 0.8371 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 6.724e-05/0.1921, allocations: 20.48 kB / 0.8371 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.792e-05/0.1922, allocations: 47.41 kB / 0.8372 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of SimCode: time 3.2e-07/0.1922, allocations: 3.938 kB / 0.8372 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.2181, allocations: 3.675 MB / 0.8408 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.287/8.506, allocations: 15.7 kB / 0.8408 GB, free: 11.71 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.683985850773752] Failed to read output from testmodel.py, exit status != 0: 8.576515147928149 8.600373219 8.414054482 Calling exit ...