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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.843/1.843, allocations: 288.4 MB / 303.4 MB, free: 8.098 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.001085/0.001085, allocations: 192.4 kB / 372 MB, free: 10.26 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.728/1.728, allocations: 205.4 MB / 0.6307 GB, free: 9.887 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.000797/0.0007971, allocations: 90.34 kB / 0.7441 GB, free: 5.809 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 11.03 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1868, allocations: 115.3 MB / 0.9796 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001813/0.1886, allocations: 1.328 MB / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007674/0.1894, allocations: 0.5622 MB / 0.9814 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.679e-05/0.1896, allocations: 4 kB / 0.9814 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.1898, allocations: 15.86 kB / 0.9814 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002268/0.19, allocations: 63.67 kB / 0.9815 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001448/0.1901, allocations: 55.94 kB / 0.9816 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.1903, allocations: 111.6 kB / 0.9817 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.1904, allocations: 41.45 kB / 0.9817 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1906, allocations: 39.8 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.555e-05/0.1907, allocations: 55.69 kB / 0.9818 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.1907, allocations: 8 kB / 0.9818 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.1907, allocations: 8 kB / 0.9818 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.1908, allocations: 35.89 kB / 0.9818 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.841e-05/0.1908, allocations: 49.58 kB / 0.9819 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.191, allocations: 104 kB / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.191, allocations: 0 / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.683e-06/0.191, allocations: 0 / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.191, allocations: 0 / 0.982 GB, free: 25.16 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.0005131/0.1915, allocations: 446.7 kB / 0.9824 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1916, allocations: 12.02 kB / 0.9824 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.635e-05/0.1916, allocations: 27.7 kB / 0.9825 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.1918, allocations: 227.6 kB / 0.9827 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1919, allocations: 4 kB / 0.9827 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.1919, allocations: 7.984 kB / 0.9827 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000294/0.1922, allocations: 117.6 kB / 0.9828 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1922, allocations: 0 / 0.9828 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.1922, allocations: 3.938 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1922, allocations: 4 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.1925, allocations: 83.88 kB / 0.9829 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.193, allocations: 388.5 kB / 0.9833 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.1932, allocations: 54.48 kB / 0.9833 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1933, allocations: 36.89 kB / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.1933, allocations: 7.953 kB / 0.9833 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.1936, allocations: 101.1 kB / 0.9834 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.1936, allocations: 0 / 0.9834 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004453/0.194, allocations: 141.4 kB / 0.9836 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.1941, allocations: 85.11 kB / 0.9837 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.1943, allocations: 249 kB / 0.9839 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.1943, allocations: 25.7 kB / 0.9839 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.871e-05/0.1944, allocations: 132 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.1944, allocations: 11.91 kB / 0.9841 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-06/0.1944, allocations: 0 / 0.9841 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.549e-05/0.1945, allocations: 326.8 kB / 0.9844 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1946, allocations: 35.91 kB / 0.9844 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.1947, allocations: 55.41 kB / 0.9845 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.1948, allocations: 36 kB / 0.9845 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1948, allocations: 0 / 0.9845 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002653/0.1951, allocations: 125.3 kB / 0.9846 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1951, allocations: 7.938 kB / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1952, allocations: 0 / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1952, allocations: 0 / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1953, allocations: 20.08 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1953, allocations: 4 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.19e-05/0.1954, allocations: 11.98 kB / 0.9847 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.1954, allocations: 4 kB / 0.9847 GB, free: 22.18 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.491e-05/0.1955, allocations: 127.4 kB / 0.9848 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.1955, allocations: 23.67 kB / 0.9848 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.1956, allocations: 17.25 kB / 0.9848 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1956, allocations: 8.266 kB / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1956, allocations: 0 / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1956, allocations: 3.938 kB / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.1957, allocations: 221.6 kB / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1957, allocations: 0 / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.162e-05/0.1958, allocations: 11.98 kB / 0.9851 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1958, allocations: 4 kB / 0.9851 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.1958, allocations: 3.953 kB / 0.9851 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1958, allocations: 4 kB / 0.9851 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1958, allocations: 4 kB / 0.9851 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.1961, allocations: 136.8 kB / 0.9852 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.1961, allocations: 100.8 kB / 0.9853 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.1962, allocations: 4 kB / 0.9853 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.545e-05/0.1963, allocations: 15.94 kB / 0.9853 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.1963, allocations: 7.984 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.1963, allocations: 4 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001214/0.1965, allocations: 188.5 kB / 0.9855 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.31e-07/0.1965, allocations: 0 / 0.9855 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001973/0.1967, allocations: 27.91 kB / 0.9855 GB, free: 21.19 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.0001938/0.1969, allocations: 118.1 kB / 0.9856 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002823/0.1972, allocations: 71.89 kB / 0.9857 GB, free: 21 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1972, allocations: 3.984 kB / 0.9857 GB, free: 21 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1973, allocations: 36.17 kB / 0.9857 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.1976, allocations: 48.31 kB / 0.9858 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004625/0.198, allocations: 310.1 kB / 0.9861 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.1982, allocations: 0.7238 MB / 0.9868 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.96e-05/0.1983, allocations: 20.55 kB / 0.9868 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.1983, allocations: 11.44 kB / 0.9868 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.1983, allocations: 0 / 0.9868 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of Templates: time 0.004048/0.2024, allocations: 1.561 MB / 0.9884 GB, free: 18.27 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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 & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)