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.554/1.554, allocations: 288.4 MB / 303.7 MB, free: 8.027 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.0009215/0.0009215, allocations: 179 kB / 372.3 MB, free: 10.15 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.285/1.285, allocations: 205.4 MB / 0.631 GB, free: 9.918 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.0007387/0.0007387, allocations: 94.12 kB / 0.7444 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004481, allocations: 27.53 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1925, allocations: 115.3 MB / 0.9801 GB, free: 27.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001663/0.1942, allocations: 1.328 MB / 0.9814 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0006915/0.1949, allocations: 0.5583 MB / 0.982 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.195, allocations: 0 / 0.982 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1951, allocations: 23.84 kB / 0.982 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.1953, allocations: 55.75 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001126/0.1955, allocations: 55.94 kB / 0.9821 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.1956, allocations: 111.6 kB / 0.9822 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1957, allocations: 49.45 kB / 0.9823 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.553e-05/0.1958, allocations: 43.78 kB / 0.9823 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.433e-05/0.1959, allocations: 47.77 kB / 0.9823 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.1959, allocations: 4 kB / 0.9823 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.271e-05/0.196, allocations: 19.92 kB / 0.9824 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.196, allocations: 35.89 kB / 0.9824 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.817e-05/0.1961, allocations: 77.31 kB / 0.9825 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1962, allocations: 96.03 kB / 0.9826 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1962, allocations: 0 / 0.9826 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1962, allocations: 0 / 0.9826 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.299e-06/0.1962, allocations: 4 kB / 0.9826 GB, free: 24.84 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.0004423/0.1967, allocations: 456.2 kB / 0.983 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.1967, allocations: 8.031 kB / 0.983 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/0.1968, allocations: 24.59 kB / 0.983 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.197, allocations: 232.9 kB / 0.9833 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.197, allocations: 4.375 kB / 0.9833 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.197, allocations: 4.375 kB / 0.9833 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.1972, allocations: 122 kB / 0.9834 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1973, allocations: 0 / 0.9834 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1973, allocations: 0 / 0.9834 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.1973, allocations: 3.984 kB / 0.9834 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.1975, allocations: 79.94 kB / 0.9835 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004527/0.198, allocations: 392.3 kB / 0.9838 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.1981, allocations: 50.5 kB / 0.9839 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-05/0.1982, allocations: 32.89 kB / 0.9839 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.1982, allocations: 8 kB / 0.9839 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.1984, allocations: 101.1 kB / 0.984 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1984, allocations: 4 kB / 0.984 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004081/0.1989, allocations: 149.3 kB / 0.9842 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.351e-05/0.1989, allocations: 81.11 kB / 0.9842 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.1991, allocations: 256.9 kB / 0.9845 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.1991, allocations: 25.7 kB / 0.9845 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.623e-05/0.1991, allocations: 128 kB / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.278e-05/0.1992, allocations: 11.81 kB / 0.9846 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-06/0.1992, allocations: 0 / 0.9846 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.1992, allocations: 326.8 kB / 0.985 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1994, allocations: 35.97 kB / 0.985 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.965e-05/0.1995, allocations: 51.41 kB / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.1997, allocations: 90.48 kB / 0.9851 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1997, allocations: 4 kB / 0.9851 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002296/0.1999, allocations: 117.4 kB / 0.9852 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.1999, allocations: 8.094 kB / 0.9852 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1999, allocations: 0 / 0.9852 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1999, allocations: 3.938 kB / 0.9853 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.915e-05/0.2, allocations: 15.98 kB / 0.9853 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2001, allocations: 0 / 0.9853 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.275e-05/0.2002, allocations: 15.98 kB / 0.9853 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.2002, allocations: 4 kB / 0.9853 GB, free: 21.8 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 6.853e-05/0.2002, allocations: 133.8 kB / 0.9854 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.2003, allocations: 19.81 kB / 0.9854 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.694e-05/0.2003, allocations: 17.25 kB / 0.9854 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.2003, allocations: 7.922 kB / 0.9855 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.2003, allocations: 0 / 0.9855 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.2003, allocations: 0 / 0.9855 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.2004, allocations: 217.5 kB / 0.9857 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2004, allocations: 3.938 kB / 0.9857 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.335e-05/0.2005, allocations: 19.92 kB / 0.9857 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.2005, allocations: 7.938 kB / 0.9857 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2005, allocations: 0 / 0.9857 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2005, allocations: 3.938 kB / 0.9857 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2006, allocations: 0 / 0.9857 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.2008, allocations: 144.8 kB / 0.9858 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.2008, allocations: 88.92 kB / 0.9859 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.2009, allocations: 4 kB / 0.9859 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.682e-05/0.2009, allocations: 19.92 kB / 0.9859 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.201, allocations: 11.98 kB / 0.986 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.201, allocations: 4 kB / 0.986 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001184/0.2012, allocations: 184.5 kB / 0.9861 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2012, allocations: 0 / 0.9861 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001929/0.2014, allocations: 24 kB / 0.9862 GB, free: 20.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.0001827/0.2015, allocations: 128.4 kB / 0.9863 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002494/0.2018, allocations: 68.39 kB / 0.9863 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2018, allocations: 4.062 kB / 0.9863 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.2019, allocations: 31.98 kB / 0.9864 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2022, allocations: 53.27 kB / 0.9864 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/0.2026, allocations: 310.1 kB / 0.9867 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.2028, allocations: 0.7199 MB / 0.9874 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.963e-05/0.2028, allocations: 20.53 kB / 0.9874 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.988e-05/0.2029, allocations: 11.44 kB / 0.9875 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.2029, allocations: 3.938 kB / 0.9875 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of Templates: time 0.003642/0.2065, allocations: 1.577 MB / 0.989 GB, free: 17.87 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)