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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.66/1.66, allocations: 292.6 MB / 307.5 MB, free: 5.199 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.00139/0.00139, allocations: 187.9 kB / 377.1 MB, free: 1.531 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.542/1.542, allocations: 205.4 MB / 0.6367 GB, free: 8.629 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008331/0.0008334, allocations: 97.42 kB / 0.751 GB, free: 63.15 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003447, allocations: 15.98 kB / 0.8748 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 116.3 MB / 0.9884 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6702/0.9463, allocations: 141 MB / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.9466, allocations: 78.67 kB / 1.126 GB, free: 34.04 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.008256/0.9549, allocations: 3.277 MB / 1.129 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9549, allocations: 7.938 kB / 1.129 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.257e-05/0.9549, allocations: 0 / 1.129 GB, free: 31.8 MB / 0.7292 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.0004538/0.9554, allocations: 456.5 kB / 1.13 GB, free: 31.33 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.9554, allocations: 12.02 kB / 1.13 GB, free: 31.32 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.9555, allocations: 21.78 kB / 1.13 GB, free: 31.3 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.9557, allocations: 241.7 kB / 1.13 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.9558, allocations: 5.438 kB / 1.13 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.9558, allocations: 12.38 kB / 1.13 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.9561, allocations: 106.8 kB / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.9561, allocations: 0 / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.9561, allocations: 4 kB / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.9561, allocations: 4 kB / 1.13 GB, free: 30.92 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.9563, allocations: 81 kB / 1.13 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.9569, allocations: 390.2 kB / 1.131 GB, free: 30.48 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.957, allocations: 53.64 kB / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.957, allocations: 0 / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.9572, allocations: 111.6 kB / 1.131 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.9572, allocations: 0 / 1.131 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0003789/0.9576, allocations: 146.5 kB / 1.131 GB, free: 30.19 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.9577, allocations: 80.62 kB / 1.131 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.9578, allocations: 221.1 kB / 1.131 GB, free: 29.89 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.9579, allocations: 25.7 kB / 1.131 GB, free: 29.86 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.9579, allocations: 128.2 kB / 1.131 GB, free: 29.74 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.46e-05/0.9579, allocations: 7.906 kB / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.9579, allocations: 0 / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.913e-05/0.958, allocations: 326.5 kB / 1.132 GB, free: 29.41 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.9581, allocations: 35.08 kB / 1.132 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.9582, allocations: 54.08 kB / 1.132 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.9583, allocations: 38.92 kB / 1.132 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.9583, allocations: 0 / 1.132 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002453/0.9586, allocations: 115.2 kB / 1.132 GB, free: 29.19 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.9586, allocations: 4 kB / 1.132 GB, free: 29.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.9586, allocations: 8.438 kB / 1.132 GB, free: 29.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.9587, allocations: 4.516 kB / 1.132 GB, free: 29.18 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.9588, allocations: 24.06 kB / 1.132 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.9588, allocations: 0 / 1.132 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.935e-05/0.9589, allocations: 19.88 kB / 1.132 GB, free: 29.14 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.9589, allocations: 0 / 1.132 GB, free: 29.14 MB / 0.7292 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 8.04e-05/0.959, allocations: 129.3 kB / 1.132 GB, free: 29.01 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.959, allocations: 24.59 kB / 1.132 GB, free: 28.99 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.9591, allocations: 20.72 kB / 1.132 GB, free: 28.97 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.9591, allocations: 7.953 kB / 1.132 GB, free: 28.96 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.9591, allocations: 0 / 1.132 GB, free: 28.96 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.9591, allocations: 0.8125 kB / 1.132 GB, free: 28.96 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.9592, allocations: 213.3 kB / 1.132 GB, free: 28.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.9592, allocations: 0 / 1.132 GB, free: 28.73 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.173e-05/0.9593, allocations: 19.42 kB / 1.132 GB, free: 28.72 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.9593, allocations: 0 / 1.132 GB, free: 28.72 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.9593, allocations: 2.266 kB / 1.132 GB, free: 28.72 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9594, allocations: 5.219 kB / 1.132 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.9594, allocations: 7.953 kB / 1.132 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.9596, allocations: 137.9 kB / 1.132 GB, free: 28.57 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.9597, allocations: 96.11 kB / 1.133 GB, free: 28.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.9597, allocations: 4.5 kB / 1.133 GB, free: 28.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.14e-05/0.9598, allocations: 11.14 kB / 1.133 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.355e-05/0.9598, allocations: 7.469 kB / 1.133 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.9599, allocations: 7.953 kB / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001274/0.96, allocations: 185.9 kB / 1.133 GB, free: 28.28 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.96, allocations: 4 kB / 1.133 GB, free: 28.28 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002086/0.9602, allocations: 19.94 kB / 1.133 GB, free: 28.26 MB / 0.7292 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.000223/0.9605, allocations: 131.2 kB / 1.133 GB, free: 28.14 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.9607, allocations: 69.72 kB / 1.133 GB, free: 28.08 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.9607, allocations: 0 / 1.133 GB, free: 28.08 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.9609, allocations: 39.45 kB / 1.133 GB, free: 28.05 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.9611, allocations: 36.23 kB / 1.133 GB, free: 28.03 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004518/0.9616, allocations: 315.2 kB / 1.133 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.9617, allocations: 0.7285 MB / 1.134 GB, free: 26.99 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.937e-05/0.9618, allocations: 22.36 kB / 1.134 GB, free: 26.98 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.9618, allocations: 18.91 kB / 1.134 GB, free: 26.96 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/0.9618, allocations: 1.219 kB / 1.134 GB, free: 26.96 MB / 0.7292 GB Notification: Performance of Templates: time 0.004517/0.9664, allocations: 1.593 MB / 1.136 GB, free: 26.06 MB / 0.7292 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)