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.594/1.594, allocations: 288.4 MB / 304.3 MB, free: 8.176 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.00117/0.00117, allocations: 187.2 kB / 372.9 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.513/1.513, allocations: 205.4 MB / 0.6316 GB, free: 9.875 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.0008036/0.0008037, allocations: 106.3 kB / 0.745 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004051, allocations: 14.09 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2105, allocations: 115.3 MB / 0.9807 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001643/0.2122, allocations: 1.328 MB / 0.982 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007144/0.213, allocations: 0.5622 MB / 0.9826 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.213, allocations: 0 / 0.9826 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.2132, allocations: 23.84 kB / 0.9826 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.2134, allocations: 47.77 kB / 0.9826 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001202/0.2136, allocations: 67.92 kB / 0.9827 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.2137, allocations: 115.5 kB / 0.9828 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.2139, allocations: 41.42 kB / 0.9829 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.886e-05/0.214, allocations: 43.77 kB / 0.9829 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.474e-05/0.2141, allocations: 51.78 kB / 0.983 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.2141, allocations: 4 kB / 0.983 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.612e-05/0.2142, allocations: 15.92 kB / 0.983 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.938e-05/0.2142, allocations: 35.89 kB / 0.983 GB, free: 25 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.516e-05/0.2143, allocations: 73.33 kB / 0.9831 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.2144, allocations: 100 kB / 0.9832 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2144, allocations: 0 / 0.9832 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2145, allocations: 0 / 0.9832 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.2145, allocations: 0 / 0.9832 GB, free: 24.82 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.0004924/0.215, allocations: 458.8 kB / 0.9836 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.215, allocations: 8.031 kB / 0.9836 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.564e-05/0.2151, allocations: 20.66 kB / 0.9836 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.2153, allocations: 228.9 kB / 0.9839 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.2153, allocations: 8.375 kB / 0.9839 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.2153, allocations: 4.375 kB / 0.9839 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.2156, allocations: 118.7 kB / 0.984 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2156, allocations: 0 / 0.984 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.2156, allocations: 4 kB / 0.984 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2156, allocations: 0 / 0.984 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.2158, allocations: 87.86 kB / 0.9841 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.2163, allocations: 396.4 kB / 0.9844 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2165, allocations: 46.5 kB / 0.9845 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.733e-05/0.2166, allocations: 36.89 kB / 0.9845 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.2166, allocations: 4 kB / 0.9845 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.2168, allocations: 101.1 kB / 0.9846 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2168, allocations: 4 kB / 0.9846 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000387/0.2172, allocations: 149.3 kB / 0.9848 GB, free: 23 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.522e-05/0.2173, allocations: 77.11 kB / 0.9848 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.2174, allocations: 256.9 kB / 0.9851 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.2175, allocations: 25.7 kB / 0.9851 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.2175, allocations: 128 kB / 0.9852 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.2175, allocations: 7.812 kB / 0.9852 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.2176, allocations: 4 kB / 0.9852 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.2176, allocations: 322.8 kB / 0.9856 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.672e-05/0.2177, allocations: 35.97 kB / 0.9856 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.2178, allocations: 59.41 kB / 0.9856 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.218, allocations: 90.48 kB / 0.9857 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.218, allocations: 0 / 0.9857 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002533/0.2183, allocations: 113.4 kB / 0.9858 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2183, allocations: 11.98 kB / 0.9859 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2183, allocations: 3.938 kB / 0.9859 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2183, allocations: 0 / 0.9859 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.2184, allocations: 19.92 kB / 0.9859 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2185, allocations: 0 / 0.9859 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.83e-05/0.2185, allocations: 20.05 kB / 0.9859 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.2186, allocations: 0 / 0.9859 GB, free: 21.78 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.677e-05/0.2186, allocations: 133.8 kB / 0.986 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.2187, allocations: 15.81 kB / 0.986 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.2187, allocations: 13.25 kB / 0.986 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2187, allocations: 7.938 kB / 0.9861 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2187, allocations: 7.922 kB / 0.9861 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.2188, allocations: 96.86 kB / 0.9862 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.2188, allocations: 0 / 0.9862 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.918e-05/0.2189, allocations: 19.98 kB / 0.9862 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.2189, allocations: 3.984 kB / 0.9862 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002802/0.2192, allocations: 197.1 kB / 0.9864 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000253/0.2195, allocations: 298.4 kB / 0.9867 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001026/0.2196, allocations: 35.97 kB / 0.9867 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000115/0.2197, allocations: 184.5 kB / 0.9869 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of Backend: time 2.91e-07/0.2197, allocations: 4 kB / 0.9869 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005855/0.2203, allocations: 156.4 kB / 0.987 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0005445/0.2209, allocations: 0.7669 MB / 0.9878 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of Templates: time 0.003873/0.2247, allocations: 1.704 MB / 0.9894 GB, free: 18.09 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)