Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.657/1.657, allocations: 288.4 MB / 303.3 MB, free: 8.109 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 179.4 kB / 372 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.4 MB / 0.6307 GB, free: 9.988 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006736/0.0006733, allocations: 100.9 kB / 0.744 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 19.77 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1782, allocations: 115.3 MB / 0.9796 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001706/0.18, allocations: 1.328 MB / 0.9809 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000761/0.1808, allocations: 0.5622 MB / 0.9815 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.1809, allocations: 3.938 kB / 0.9815 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.1811, allocations: 19.92 kB / 0.9815 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.1813, allocations: 61.98 kB / 0.9816 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.1815, allocations: 51.94 kB / 0.9816 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.1816, allocations: 111.6 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.1818, allocations: 37.47 kB / 0.9818 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1819, allocations: 47.78 kB / 0.9818 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.182, allocations: 51.7 kB / 0.9819 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.1821, allocations: 4 kB / 0.9819 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.104e-05/0.1821, allocations: 15.98 kB / 0.9819 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.314e-05/0.1822, allocations: 35.91 kB / 0.9819 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.298e-05/0.1823, allocations: 41.58 kB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.1824, allocations: 108 kB / 0.9821 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1824, allocations: 3.938 kB / 0.9821 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1824, allocations: 0 / 0.9821 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.1824, allocations: 4 kB / 0.9821 GB, free: 25.07 MB / 0.6198 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.0005268/0.183, allocations: 446.6 kB / 0.9825 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.183, allocations: 12.02 kB / 0.9825 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.1831, allocations: 46.48 kB / 0.9825 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.1831, allocations: 15.81 kB / 0.9826 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1833, allocations: 227.7 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.1834, allocations: 8 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.1834, allocations: 8 kB / 0.9828 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.1837, allocations: 105.6 kB / 0.9829 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1837, allocations: 0 / 0.9829 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.1837, allocations: 11.94 kB / 0.9829 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1837, allocations: 7.875 kB / 0.9829 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.1839, allocations: 75.94 kB / 0.983 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.1844, allocations: 396.4 kB / 0.9834 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.1846, allocations: 42.56 kB / 0.9834 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.1847, allocations: 44.84 kB / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.1847, allocations: 0 / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.185, allocations: 105.1 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.185, allocations: 0 / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004356/0.1854, allocations: 149.4 kB / 0.9837 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.1855, allocations: 77.11 kB / 0.9838 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.1857, allocations: 245 kB / 0.984 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1857, allocations: 29.7 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.1857, allocations: 136 kB / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.1858, allocations: 7.906 kB / 0.9842 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.1858, allocations: 0 / 0.9842 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.1858, allocations: 326.8 kB / 0.9845 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1859, allocations: 27.97 kB / 0.9845 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1861, allocations: 63.41 kB / 0.9846 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.1862, allocations: 31.91 kB / 0.9846 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1862, allocations: 8.031 kB / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002631/0.1865, allocations: 117.3 kB / 0.9847 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1865, allocations: 8.094 kB / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1865, allocations: 4 kB / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1865, allocations: 0 / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.1866, allocations: 15.98 kB / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1867, allocations: 0 / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.966e-05/0.1867, allocations: 23.89 kB / 0.9848 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.1868, allocations: 0 / 0.9848 GB, free: 22.05 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.748e-05/0.1868, allocations: 129.8 kB / 0.9849 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.1869, allocations: 20.05 kB / 0.9849 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.725e-05/0.1869, allocations: 21.23 kB / 0.9849 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1869, allocations: 3.984 kB / 0.9849 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1869, allocations: 4 kB / 0.9849 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-06/0.1869, allocations: 3.938 kB / 0.9849 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.187, allocations: 217.5 kB / 0.9851 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1871, allocations: 4 kB / 0.9851 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.439e-05/0.1871, allocations: 23.92 kB / 0.9852 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1872, allocations: 0 / 0.9852 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.1872, allocations: 3.953 kB / 0.9852 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1872, allocations: 3.984 kB / 0.9852 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1872, allocations: 0 / 0.9852 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.1874, allocations: 136.9 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.1875, allocations: 100.8 kB / 0.9854 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.1875, allocations: 0 / 0.9854 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.591e-05/0.1876, allocations: 19.94 kB / 0.9854 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.1877, allocations: 4 kB / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.1877, allocations: 8 kB / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001241/0.1878, allocations: 188.5 kB / 0.9856 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1878, allocations: 0 / 0.9856 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001987/0.188, allocations: 24.03 kB / 0.9856 GB, free: 21.05 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005618/0.1886, allocations: 0.6899 MB / 0.9863 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.1889, allocations: 67.94 kB / 0.9864 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1889, allocations: 8.188 kB / 0.9864 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.189, allocations: 35.91 kB / 0.9864 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.1893, allocations: 41.45 kB / 0.9865 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.1906, allocations: 0.9258 MB / 0.9874 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.1907, allocations: 0.716 MB / 0.9881 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.895e-05/0.1908, allocations: 28.69 kB / 0.9881 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.273e-05/0.1909, allocations: 39.42 kB / 0.9881 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of SimCode: time 2.21e-07/0.1909, allocations: 8 kB / 0.9881 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01349/0.2044, allocations: 3.218 MB / 0.9913 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.2046, allocations: 195.4 kB / 0.9915 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.059, allocations: 0 / 0.9915 GB, free: 15.09 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)