Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 192.4 kB / 16.13 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.63/1.63, allocations: 292.2 MB / 0.5484 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 66.98 kB / 0.6708 GB, free: 26.43 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1866, allocations: 114.5 MB / 0.7827 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002953/0.1896, allocations: 1.708 MB / 0.7843 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009667/0.1906, allocations: 0.5777 MB / 0.7849 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.271e-05/0.1908, allocations: 4 kB / 0.7849 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.191, allocations: 19.86 kB / 0.7849 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1912, allocations: 67.73 kB / 0.785 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001449/0.1914, allocations: 51.94 kB / 0.785 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.1916, allocations: 127.5 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.1918, allocations: 41.48 kB / 0.7852 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1919, allocations: 55.77 kB / 0.7852 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.192, allocations: 63.62 kB / 0.7853 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.192, allocations: 4 kB / 0.7853 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.1921, allocations: 20 kB / 0.7853 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.465e-05/0.1922, allocations: 35.91 kB / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.27e-05/0.1923, allocations: 63.53 kB / 0.7854 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.1925, allocations: 139.7 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1925, allocations: 0 / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.31e-07/0.1925, allocations: 0 / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.229e-06/0.1925, allocations: 4 kB / 0.7856 GB, free: 11.02 MB / 0.6075 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.0006904/0.1932, allocations: 462.6 kB / 0.786 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1933, allocations: 8.031 kB / 0.786 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.937e-05/0.1933, allocations: 16.75 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.1936, allocations: 236.8 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.1936, allocations: 384 / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.1936, allocations: 12.31 kB / 0.7863 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.1939, allocations: 117.9 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1939, allocations: 3.984 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.194, allocations: 0 / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.194, allocations: 7.938 kB / 0.7864 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.1942, allocations: 63.94 kB / 0.7865 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.1947, allocations: 388.4 kB / 0.7868 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.1949, allocations: 38.55 kB / 0.7869 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.195, allocations: 32.89 kB / 0.7869 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.195, allocations: 0 / 0.7869 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.1952, allocations: 101 kB / 0.787 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1952, allocations: 0 / 0.787 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004009/0.1957, allocations: 121.4 kB / 0.7871 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.1957, allocations: 81.11 kB / 0.7872 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.1959, allocations: 253 kB / 0.7874 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.196, allocations: 25.7 kB / 0.7874 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.196, allocations: 132 kB / 0.7876 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.1961, allocations: 11.91 kB / 0.7876 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.1961, allocations: 9.719 kB / 0.7876 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.1962, allocations: 334.8 kB / 0.7879 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1963, allocations: 27.97 kB / 0.7879 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1964, allocations: 47.41 kB / 0.788 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.1966, allocations: 70.55 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1966, allocations: 0 / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002545/0.1969, allocations: 97.41 kB / 0.7881 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1969, allocations: 15.92 kB / 0.7882 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1969, allocations: 0 / 0.7882 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.197, allocations: 3.938 kB / 0.7882 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1971, allocations: 20.02 kB / 0.7882 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1971, allocations: 0 / 0.7882 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.348e-05/0.1972, allocations: 15.89 kB / 0.7882 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1972, allocations: 4 kB / 0.7882 GB, free: 8.051 MB / 0.6075 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 9.112e-05/0.1973, allocations: 126.5 kB / 0.7883 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.1973, allocations: 15.81 kB / 0.7883 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.1973, allocations: 17.25 kB / 0.7884 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.1974, allocations: 3.938 kB / 0.7884 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1974, allocations: 7.984 kB / 0.7884 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1974, allocations: 0 / 0.7884 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001479/0.1975, allocations: 217.5 kB / 0.7886 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1975, allocations: 4.281 kB / 0.7886 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.734e-05/0.1976, allocations: 11.98 kB / 0.7886 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1976, allocations: 0 / 0.7886 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.1976, allocations: 0 / 0.7886 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1976, allocations: 3.938 kB / 0.7886 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1976, allocations: 0 / 0.7886 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/0.1979, allocations: 128.8 kB / 0.7887 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.198, allocations: 100.8 kB / 0.7888 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.198, allocations: 0 / 0.7888 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.93e-05/0.1981, allocations: 15.92 kB / 0.7888 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.1981, allocations: 0 / 0.7888 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.1981, allocations: 7.984 kB / 0.7888 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000143/0.1983, allocations: 192.5 kB / 0.789 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1983, allocations: 0 / 0.789 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002044/0.1985, allocations: 23.91 kB / 0.789 GB, free: 7.102 MB / 0.6075 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.0002087/0.1987, allocations: 114.4 kB / 0.7891 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002567/0.199, allocations: 63.88 kB / 0.7892 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.199, allocations: 0 / 0.7892 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.1991, allocations: 27.97 kB / 0.7892 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.1994, allocations: 39.69 kB / 0.7893 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004772/0.1998, allocations: 325.2 kB / 0.7896 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.2001, allocations: 0.7314 MB / 0.7903 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.604e-05/0.2002, allocations: 20.53 kB / 0.7903 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.2002, allocations: 11.44 kB / 0.7903 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2002, allocations: 0 / 0.7903 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of Templates: time 0.004075/0.2043, allocations: 1.6 MB / 0.7919 GB, free: 4.148 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)