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.001269/0.001269, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001411/0.001411, allocations: 216.6 kB / 22.25 MB, free: 5.242 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.369/1.369, allocations: 230.6 MB / 256 MB, free: 7.793 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.002434/0.002434, allocations: 290.1 kB / 312.7 MB, free: 2.598 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.166/1.166, allocations: 180.6 MB / 0.5369 GB, free: 14.53 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.002847/0.002847, allocations: 105.4 kB / 0.7395 GB, free: 28.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1656, allocations: 95.38 MB / 0.8326 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003077/0.1687, allocations: 1.657 MB / 0.8342 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1698, allocations: 0.5689 MB / 0.8348 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.1699, allocations: 7.938 kB / 0.8348 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1701, allocations: 39.7 kB / 0.8348 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.1703, allocations: 57.19 kB / 0.8349 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.1705, allocations: 83.83 kB / 0.835 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.1707, allocations: 131.6 kB / 0.8351 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.1709, allocations: 25.95 kB / 0.8351 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.171, allocations: 71.7 kB / 0.8352 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.1711, allocations: 59.69 kB / 0.8353 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.1712, allocations: 8 kB / 0.8353 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.059e-05/0.1712, allocations: 27.98 kB / 0.8353 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.711e-05/0.1713, allocations: 51.77 kB / 0.8353 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.725e-05/0.1714, allocations: 43.67 kB / 0.8354 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.1716, allocations: 151.3 kB / 0.8355 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1716, allocations: 0 / 0.8355 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.422e-06/0.1716, allocations: 3.938 kB / 0.8355 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.1716, allocations: 0 / 0.8355 GB, free: 5.344 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.0005976/0.1722, allocations: 413.2 kB / 0.8359 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1723, allocations: 9.938 kB / 0.8359 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.255e-05/0.1723, allocations: 42.73 kB / 0.836 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.1724, allocations: 24.8 kB / 0.836 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.1727, allocations: 185.9 kB / 0.8362 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1728, allocations: 4.375 kB / 0.8362 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.1728, allocations: 8.375 kB / 0.8362 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.1731, allocations: 165.1 kB / 0.8363 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1731, allocations: 0 / 0.8363 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.1731, allocations: 7.984 kB / 0.8363 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.1731, allocations: 4 kB / 0.8364 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.1733, allocations: 63.94 kB / 0.8364 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005905/0.1739, allocations: 335.7 kB / 0.8367 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.174, allocations: 42.48 kB / 0.8368 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1742, allocations: 28.89 kB / 0.8368 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.1742, allocations: 4 kB / 0.8368 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.1744, allocations: 148.4 kB / 0.8369 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1744, allocations: 0 / 0.8369 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004249/0.1749, allocations: 125.5 kB / 0.8371 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.1749, allocations: 77.11 kB / 0.8371 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.1752, allocations: 260.8 kB / 0.8374 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.1752, allocations: 29.7 kB / 0.8374 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.164e-05/0.1753, allocations: 124.1 kB / 0.8375 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1753, allocations: 11.91 kB / 0.8375 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.1754, allocations: 13.72 kB / 0.8376 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1755, allocations: 334.8 kB / 0.8379 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.1756, allocations: 23.98 kB / 0.8379 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.1757, allocations: 77.05 kB / 0.838 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.1759, allocations: 66.52 kB / 0.838 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1759, allocations: 4.031 kB / 0.838 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002672/0.1762, allocations: 101.5 kB / 0.8381 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.1762, allocations: 8 kB / 0.8381 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1762, allocations: 0 / 0.8381 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1762, allocations: 3.938 kB / 0.8382 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1763, allocations: 15.92 kB / 0.8382 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.1764, allocations: 12.09 kB / 0.8382 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.357e-05/0.1764, allocations: 11.92 kB / 0.8382 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.1764, allocations: 4 kB / 0.8382 GB, free: 2.352 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.000117/0.1766, allocations: 130.5 kB / 0.8383 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.1766, allocations: 19.86 kB / 0.8383 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.1766, allocations: 25.2 kB / 0.8384 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1766, allocations: 0 / 0.8384 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1766, allocations: 0 / 0.8384 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1766, allocations: 4 kB / 0.8384 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.1768, allocations: 172.7 kB / 0.8385 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1768, allocations: 4 kB / 0.8385 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.1769, allocations: 15.98 kB / 0.8385 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1769, allocations: 0 / 0.8385 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1769, allocations: 7.875 kB / 0.8386 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.1769, allocations: 4 kB / 0.8386 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1769, allocations: 0 / 0.8386 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.1772, allocations: 129.1 kB / 0.8387 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.524e-05/0.1772, allocations: 11.91 kB / 0.8387 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.1772, allocations: 11.92 kB / 0.8387 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/0.1773, allocations: 8 kB / 0.8387 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.1773, allocations: 7.984 kB / 0.8387 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1774, allocations: 4 kB / 0.8387 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001764/0.1775, allocations: 188.5 kB / 0.8389 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1775, allocations: 0 / 0.8389 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002197/0.1778, allocations: 24 kB / 0.8389 GB, free: 1.531 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.0007097/0.1785, allocations: 0.6803 MB / 0.8396 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002702/0.1787, allocations: 63.94 kB / 0.8397 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1787, allocations: 3.938 kB / 0.8397 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1789, allocations: 31.91 kB / 0.8397 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.1791, allocations: 40.36 kB / 0.8397 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.1813, allocations: 1.766 MB / 0.8414 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.1814, allocations: 114.1 kB / 0.8416 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 6.554e-05/0.1815, allocations: 12.48 kB / 0.8416 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.621e-05/0.1816, allocations: 51.34 kB / 0.8416 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/0.1816, allocations: 4 kB / 0.8416 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0327/0.2143, allocations: 4.287 MB / 0.8458 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.07, allocations: 5.484 kB / 0.8458 GB, free: 10.51 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.039049525279552] Failed to read output from testmodel.py, exit status != 0: 11.169871761929244 11.186469245 11.011780462 Calling exit ...