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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001996/0.001996, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.002449/0.002449, allocations: 286.2 kB / 303 MB, free: 9.492 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.212/1.212, allocations: 180.9 MB / 0.5261 GB, free: 14.65 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.00444/0.00444, allocations: 107 kB / 0.7248 GB, free: 40 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1786, allocations: 94.16 MB / 0.8167 GB, free: 5.512 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003369/0.182, allocations: 1.647 MB / 0.8183 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.183, allocations: 0.5472 MB / 0.8188 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.266e-05/0.1831, allocations: 0 / 0.8188 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.1833, allocations: 31.77 kB / 0.8189 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.1836, allocations: 59.69 kB / 0.8189 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.1838, allocations: 67.84 kB / 0.819 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.184, allocations: 135.5 kB / 0.8191 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.1842, allocations: 37.48 kB / 0.8192 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.1843, allocations: 59.7 kB / 0.8192 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.1845, allocations: 63.7 kB / 0.8193 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.1845, allocations: 8 kB / 0.8193 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.1846, allocations: 23.97 kB / 0.8193 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.449e-05/0.1846, allocations: 47.78 kB / 0.8194 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.862e-05/0.1847, allocations: 63.59 kB / 0.8194 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.185, allocations: 143.5 kB / 0.8196 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.185, allocations: 0 / 0.8196 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.684e-06/0.185, allocations: 8 kB / 0.8196 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.185, allocations: 0 / 0.8196 GB, free: 2.562 MB / 0.5606 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.0007285/0.1857, allocations: 466.4 kB / 0.82 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.1858, allocations: 12.03 kB / 0.82 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.1858, allocations: 42.75 kB / 0.8201 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.797e-05/0.1859, allocations: 16.84 kB / 0.8201 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.1863, allocations: 252.9 kB / 0.8203 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1863, allocations: 384 / 0.8203 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.1863, allocations: 12.31 kB / 0.8203 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.1866, allocations: 109.8 kB / 0.8204 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1866, allocations: 3.984 kB / 0.8204 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.1866, allocations: 0 / 0.8204 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.1866, allocations: 4 kB / 0.8204 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.1868, allocations: 67.94 kB / 0.8205 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.1875, allocations: 380.5 kB / 0.8209 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.1876, allocations: 38.55 kB / 0.8209 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.1878, allocations: 32.91 kB / 0.8209 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.1878, allocations: 0 / 0.8209 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/0.188, allocations: 101 kB / 0.821 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.188, allocations: 0 / 0.821 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004515/0.1885, allocations: 129.4 kB / 0.8212 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.1885, allocations: 81.11 kB / 0.8212 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.1888, allocations: 249 kB / 0.8215 GB, free: 400 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1889, allocations: 33.69 kB / 0.8215 GB, free: 360 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.189, allocations: 124.1 kB / 0.8216 GB, free: 232 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.189, allocations: 7.953 kB / 0.8216 GB, free: 224 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.189, allocations: 17.7 kB / 0.8216 GB, free: 200 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002048/0.1892, allocations: 334.8 kB / 0.822 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1893, allocations: 27.97 kB / 0.822 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.1895, allocations: 47.41 kB / 0.822 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.1897, allocations: 66.56 kB / 0.8221 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1897, allocations: 0 / 0.8221 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002615/0.1899, allocations: 97.48 kB / 0.8222 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1899, allocations: 14.53 kB / 0.8222 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.1899, allocations: 7.938 kB / 0.8222 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.19, allocations: 7.875 kB / 0.8222 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1901, allocations: 15.98 kB / 0.8222 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.1901, allocations: 0 / 0.8222 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.789e-05/0.1902, allocations: 19.88 kB / 0.8223 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.1902, allocations: 0 / 0.8223 GB, free: 15.54 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.0001157/0.1903, allocations: 125.8 kB / 0.8224 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.1903, allocations: 19.91 kB / 0.8224 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.1904, allocations: 29.17 kB / 0.8224 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1904, allocations: 0 / 0.8224 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1904, allocations: 0 / 0.8224 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1904, allocations: 0 / 0.8224 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.1906, allocations: 209.6 kB / 0.8226 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1906, allocations: 0 / 0.8226 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.349e-05/0.1906, allocations: 12.27 kB / 0.8226 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1907, allocations: 3.984 kB / 0.8226 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1907, allocations: 7.938 kB / 0.8226 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1907, allocations: 8 kB / 0.8227 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1907, allocations: 0 / 0.8227 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.1909, allocations: 128.9 kB / 0.8228 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.348e-05/0.191, allocations: 89.02 kB / 0.8229 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.191, allocations: 7.938 kB / 0.8229 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.973e-05/0.1911, allocations: 11.98 kB / 0.8229 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.1912, allocations: 7.984 kB / 0.8229 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.1912, allocations: 4 kB / 0.8229 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002288/0.1914, allocations: 192.5 kB / 0.8231 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1914, allocations: 0 / 0.8231 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000217/0.1916, allocations: 16 kB / 0.8231 GB, free: 14.59 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.0007354/0.1924, allocations: 0.6827 MB / 0.8238 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002821/0.1926, allocations: 63.88 kB / 0.8238 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1927, allocations: 0 / 0.8238 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1928, allocations: 27.91 kB / 0.8238 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.1931, allocations: 55.53 kB / 0.8239 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1954, allocations: 1.752 MB / 0.8256 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.1958, allocations: 0.7197 MB / 0.8263 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.314e-05/0.1958, allocations: 20.72 kB / 0.8263 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.64e-05/0.1959, allocations: 39.42 kB / 0.8264 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/0.1959, allocations: 4 kB / 0.8264 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.2229, allocations: 3.649 MB / 0.8299 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.294/8.517, allocations: 7.625 kB / 0.8299 GB, free: 7.543 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 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.599829410668463] Failed to read output from testmodel.py, exit status != 0: 8.59081431524828 8.615168312 8.42555529 Calling exit ...