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.001722/0.001722, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001781/0.001781, allocations: 215.3 kB / 22.25 MB, free: 5.125 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.444/1.444, allocations: 230.6 MB / 256 MB, free: 7.992 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.002622/0.002622, allocations: 285.8 kB / 312.7 MB, free: 2.816 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.224/1.224, allocations: 180.6 MB / 0.5369 GB, free: 13.04 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.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.002893/0.002893, allocations: 106.8 kB / 0.7396 GB, free: 28.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1747, allocations: 95.38 MB / 0.8327 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003381/0.1781, allocations: 1.698 MB / 0.8344 GB, free: 7 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1793, allocations: 0.6117 MB / 0.835 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1794, allocations: 7.938 kB / 0.835 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.1796, allocations: 23.8 kB / 0.835 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.1799, allocations: 71.66 kB / 0.8351 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.1801, allocations: 71.84 kB / 0.8351 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1804, allocations: 139.4 kB / 0.8353 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.1805, allocations: 37.92 kB / 0.8353 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.1807, allocations: 67.72 kB / 0.8354 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1808, allocations: 63.75 kB / 0.8354 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1809, allocations: 11.94 kB / 0.8354 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.859e-05/0.1809, allocations: 23.98 kB / 0.8355 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.181, allocations: 47.89 kB / 0.8355 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.468e-05/0.1811, allocations: 59.55 kB / 0.8356 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1814, allocations: 155.2 kB / 0.8357 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1814, allocations: 0 / 0.8357 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1814, allocations: 0 / 0.8357 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.1814, allocations: 0 / 0.8357 GB, free: 5.609 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.0007077/0.1821, allocations: 401.3 kB / 0.8361 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1821, allocations: 9.344 kB / 0.8361 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.1822, allocations: 38.75 kB / 0.8361 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1824, allocations: 32.78 kB / 0.8362 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.1827, allocations: 185.9 kB / 0.8364 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1828, allocations: 4.375 kB / 0.8364 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.1828, allocations: 8.375 kB / 0.8364 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.1831, allocations: 116.2 kB / 0.8365 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1831, allocations: 0 / 0.8365 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.1831, allocations: 7.984 kB / 0.8365 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1831, allocations: 0 / 0.8365 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1833, allocations: 67.88 kB / 0.8365 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.184, allocations: 351.6 kB / 0.8369 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.1841, allocations: 42.48 kB / 0.8369 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1842, allocations: 28.89 kB / 0.837 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.1842, allocations: 4 kB / 0.837 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.1845, allocations: 97.08 kB / 0.837 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1845, allocations: 0 / 0.837 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004483/0.1849, allocations: 121.4 kB / 0.8372 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.185, allocations: 81.11 kB / 0.8372 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.1853, allocations: 264.8 kB / 0.8375 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.1853, allocations: 25.7 kB / 0.8375 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1854, allocations: 128.1 kB / 0.8376 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.1854, allocations: 11.95 kB / 0.8377 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.1855, allocations: 13.72 kB / 0.8377 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1856, allocations: 330.8 kB / 0.838 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.1857, allocations: 23.98 kB / 0.838 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1859, allocations: 47.41 kB / 0.838 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.1861, allocations: 74.48 kB / 0.8381 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.1861, allocations: 3.938 kB / 0.8381 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002859/0.1864, allocations: 101.5 kB / 0.8382 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1864, allocations: 6.031 kB / 0.8382 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1864, allocations: 0 / 0.8382 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.1864, allocations: 8.031 kB / 0.8382 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.1865, allocations: 15.98 kB / 0.8382 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1866, allocations: 4 kB / 0.8383 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.442e-05/0.1866, allocations: 23.88 kB / 0.8383 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.1867, allocations: 0 / 0.8383 GB, free: 2.762 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.0001391/0.1868, allocations: 130.4 kB / 0.8384 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.1868, allocations: 15.91 kB / 0.8384 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.69e-05/0.1869, allocations: 25.27 kB / 0.8384 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1869, allocations: 4 kB / 0.8384 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1869, allocations: 0 / 0.8384 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1869, allocations: 4 kB / 0.8384 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.1871, allocations: 180.7 kB / 0.8386 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1871, allocations: 0 / 0.8386 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.902e-05/0.1872, allocations: 11.98 kB / 0.8386 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1872, allocations: 3.938 kB / 0.8386 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.1872, allocations: 3.938 kB / 0.8386 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1872, allocations: 4 kB / 0.8386 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1872, allocations: 0 / 0.8386 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.1875, allocations: 133.2 kB / 0.8388 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.1875, allocations: 15.91 kB / 0.8388 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.1875, allocations: 3.938 kB / 0.8388 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.1876, allocations: 7.984 kB / 0.8388 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.1877, allocations: 11.92 kB / 0.8388 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.1877, allocations: 8 kB / 0.8388 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001783/0.1879, allocations: 192.5 kB / 0.839 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1879, allocations: 0 / 0.839 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002208/0.1881, allocations: 20 kB / 0.839 GB, free: 1.934 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.0007412/0.1888, allocations: 0.6827 MB / 0.8397 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.1891, allocations: 67.88 kB / 0.8397 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1891, allocations: 0 / 0.8397 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.1893, allocations: 27.97 kB / 0.8398 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.1896, allocations: 38.67 kB / 0.8398 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.1919, allocations: 1.762 MB / 0.8415 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.1923, allocations: 0.7235 MB / 0.8422 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.661e-05/0.1924, allocations: 20.42 kB / 0.8423 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.241e-05/0.1924, allocations: 43.42 kB / 0.8423 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of SimCode: time 7.61e-07/0.1924, allocations: 0 / 0.8423 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.2242, allocations: 3.777 MB / 0.846 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.04, allocations: 19.53 kB / 0.846 GB, free: 10.79 MB / 0.5919 GB " [Timeout remaining time 649] (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: 15.331058964999102] Failed to read output from testmodel.py, exit status != 0: 11.164220143997227 11.188232752 11.002457048 Calling exit ...