Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.483/2.483, allocations: 287.9 MB / 302.9 MB, free: 8.254 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001716/0.001716, allocations: 178.7 kB / 371.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.4 MB / 0.6301 GB, free: 10.41 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 92.36 kB / 0.7434 GB, free: 6.422 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004748, allocations: 22.98 kB / 0.8662 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1729, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002958/0.176, allocations: 1.328 MB / 0.98 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.1776, allocations: 0.5352 MB / 0.9806 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1778, allocations: 3.938 kB / 0.9806 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.178, allocations: 23.84 kB / 0.9806 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004153/0.1785, allocations: 63.86 kB / 0.9807 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.1787, allocations: 55.86 kB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.179, allocations: 83.83 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1793, allocations: 37.42 kB / 0.9808 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.1795, allocations: 47.7 kB / 0.9809 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1796, allocations: 47.77 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.1797, allocations: 4 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.1798, allocations: 12 kB / 0.9809 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1799, allocations: 35.89 kB / 0.981 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.167e-05/0.18, allocations: 45.58 kB / 0.981 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.1803, allocations: 100 kB / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.794e-06/0.1803, allocations: 0 / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.856e-06/0.1803, allocations: 0 / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.496e-06/0.1803, allocations: 0 / 0.9811 GB, free: 25.75 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.0008938/0.1812, allocations: 454.6 kB / 0.9815 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.1813, allocations: 12.02 kB / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.392e-05/0.1814, allocations: 19.72 kB / 0.9816 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004225/0.1819, allocations: 231.6 kB / 0.9818 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1819, allocations: 4 kB / 0.9818 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.182, allocations: 4 kB / 0.9818 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005369/0.1825, allocations: 117.6 kB / 0.9819 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1826, allocations: 4 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.1826, allocations: 7.984 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.831e-06/0.1826, allocations: 0 / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/0.1832, allocations: 83.88 kB / 0.982 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.1843, allocations: 392.5 kB / 0.9824 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.1846, allocations: 54.44 kB / 0.9824 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.1847, allocations: 0 / 0.9824 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004799/0.1852, allocations: 105.1 kB / 0.9825 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 3.215e-06/0.1852, allocations: 0 / 0.9825 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0008939/0.1861, allocations: 141.4 kB / 0.9827 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.543e-05/0.1862, allocations: 77.11 kB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005138/0.1867, allocations: 257 kB / 0.983 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1868, allocations: 29.7 kB / 0.983 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1869, allocations: 135.9 kB / 0.9831 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.187, allocations: 11.89 kB / 0.9831 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-06/0.187, allocations: 0 / 0.9831 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.96e-05/0.1871, allocations: 326.8 kB / 0.9835 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.1874, allocations: 35.97 kB / 0.9835 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.1877, allocations: 55.41 kB / 0.9835 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.188, allocations: 36 kB / 0.9836 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.013e-06/0.188, allocations: 4 kB / 0.9836 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006677/0.1887, allocations: 121.4 kB / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.1887, allocations: 4 kB / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1887, allocations: 4 kB / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1888, allocations: 7.875 kB / 0.9837 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.189, allocations: 15.98 kB / 0.9837 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.733e-06/0.189, allocations: 0 / 0.9837 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1893, allocations: 20.05 kB / 0.9838 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.1893, allocations: 0 / 0.9838 GB, free: 22.79 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 0.0001708/0.1895, allocations: 129.8 kB / 0.9839 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.714e-05/0.1896, allocations: 23.67 kB / 0.9839 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.35e-05/0.1897, allocations: 13.25 kB / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.915e-06/0.1897, allocations: 3.984 kB / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.403e-06/0.1897, allocations: 4 kB / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1897, allocations: 0 / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.1901, allocations: 213.6 kB / 0.9841 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1901, allocations: 0 / 0.9841 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1903, allocations: 15.98 kB / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.972e-06/0.1903, allocations: 0 / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1903, allocations: 7.953 kB / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.425e-06/0.1904, allocations: 0 / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.152e-06/0.1904, allocations: 288 / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006171/0.191, allocations: 144.8 kB / 0.9843 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.733e-05/0.1911, allocations: 96.84 kB / 0.9844 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.66e-05/0.1912, allocations: 4 kB / 0.9844 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.1914, allocations: 23.94 kB / 0.9844 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.1915, allocations: 3.984 kB / 0.9844 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.1916, allocations: 4 kB / 0.9844 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003566/0.1919, allocations: 192.5 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.065e-06/0.192, allocations: 3.938 kB / 0.9846 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006486/0.1926, allocations: 19.91 kB / 0.9846 GB, free: 21.81 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.0003345/0.193, allocations: 120.5 kB / 0.9847 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005887/0.1936, allocations: 75.95 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.597e-06/0.1936, allocations: 0 / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.1939, allocations: 35.97 kB / 0.9848 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.1944, allocations: 37.44 kB / 0.9849 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009535/0.1954, allocations: 314.2 kB / 0.9852 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.1957, allocations: 0.7199 MB / 0.9859 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001503/0.1959, allocations: 20.47 kB / 0.9859 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.196, allocations: 15.44 kB / 0.9859 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of SimCode: time 1.942e-06/0.196, allocations: 0 / 0.9859 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of Templates: time 0.009496/0.2055, allocations: 1.566 MB / 0.9874 GB, free: 18.89 MB / 0.6198 GB