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.636/1.636, allocations: 289.7 MB / 302.2 MB, free: 2.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.001478/0.001479, allocations: 188.8 kB / 371.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.2 MB / 0.6309 GB, free: 11.76 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.0009884/0.0009885, allocations: 88.17 kB / 0.745 GB, free: 54.44 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.506e-05/4.508e-05, allocations: 0 / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3355, allocations: 116.3 MB / 0.9798 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.38, allocations: 140.9 MB / 1.117 GB, free: 43.18 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/1.38, allocations: 72.59 kB / 1.117 GB, free: 43.15 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.00883/1.389, allocations: 3.268 MB / 1.121 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.713e-06/1.389, allocations: 0 / 1.121 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.425e-05/1.389, allocations: 3.281 kB / 1.121 GB, free: 41.36 MB / 0.7448 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.0004551/1.389, allocations: 434.7 kB / 1.121 GB, free: 40.93 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/1.389, allocations: 8.688 kB / 1.121 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/1.389, allocations: 17.53 kB / 1.121 GB, free: 40.9 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/1.39, allocations: 233 kB / 1.121 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/1.39, allocations: 3.266 kB / 1.121 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/1.39, allocations: 7.812 kB / 1.121 GB, free: 40.65 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/1.39, allocations: 88.09 kB / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/1.39, allocations: 0 / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/1.39, allocations: 8.5 kB / 1.121 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/1.39, allocations: 0 / 1.121 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.359e-05/1.39, allocations: 34.34 kB / 1.121 GB, free: 40.56 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005924/1.391, allocations: 397.1 kB / 1.122 GB, free: 40.21 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.238e-05/1.391, allocations: 26.39 kB / 1.122 GB, free: 40.18 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/1.391, allocations: 16.8 kB / 1.122 GB, free: 40.16 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/1.391, allocations: 0 / 1.122 GB, free: 40.16 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/1.391, allocations: 85.05 kB / 1.122 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/1.391, allocations: 4.844 kB / 1.122 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.000202/1.391, allocations: 65.38 kB / 1.122 GB, free: 40.02 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/1.391, allocations: 80.92 kB / 1.122 GB, free: 39.92 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/1.391, allocations: 221.3 kB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/1.391, allocations: 25.7 kB / 1.122 GB, free: 39.72 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/1.391, allocations: 125.8 kB / 1.122 GB, free: 39.62 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/1.391, allocations: 15.8 kB / 1.122 GB, free: 39.61 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/1.391, allocations: 3.375 kB / 1.122 GB, free: 39.61 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.837e-05/1.392, allocations: 329.3 kB / 1.123 GB, free: 39.29 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.461e-05/1.392, allocations: 9.219 kB / 1.123 GB, free: 39.29 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.805e-05/1.392, allocations: 31.25 kB / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.463e-05/1.392, allocations: 11.3 kB / 1.123 GB, free: 39.24 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/1.392, allocations: 0 / 1.123 GB, free: 39.24 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001188/1.392, allocations: 77.16 kB / 1.123 GB, free: 39.17 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/1.392, allocations: 8 kB / 1.123 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.392, allocations: 3.953 kB / 1.123 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/1.392, allocations: 3.938 kB / 1.123 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/1.392, allocations: 16.83 kB / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/1.392, allocations: 0 / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/1.392, allocations: 20.3 kB / 1.123 GB, free: 39.13 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/1.392, allocations: 0 / 1.123 GB, free: 39.13 MB / 0.7448 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 () * 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.99e-05/1.392, allocations: 110.1 kB / 1.123 GB, free: 39.02 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/1.392, allocations: 19.86 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.513e-05/1.392, allocations: 16.88 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/1.392, allocations: 11.23 kB / 1.123 GB, free: 38.99 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.392, allocations: 0 / 1.123 GB, free: 38.99 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/1.392, allocations: 0 / 1.123 GB, free: 38.99 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/1.393, allocations: 215.8 kB / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.393, allocations: 0 / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/1.393, allocations: 20.08 kB / 1.123 GB, free: 38.76 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/1.393, allocations: 0.625 kB / 1.123 GB, free: 38.76 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/1.393, allocations: 3.688 kB / 1.123 GB, free: 38.76 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/1.393, allocations: 4 kB / 1.123 GB, free: 38.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.393, allocations: 4.734 kB / 1.123 GB, free: 38.75 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/1.393, allocations: 95.34 kB / 1.123 GB, free: 38.65 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/1.393, allocations: 104.9 kB / 1.124 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/1.393, allocations: 1.219 kB / 1.124 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.651e-05/1.393, allocations: 11.42 kB / 1.124 GB, free: 38.53 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/1.393, allocations: 11.38 kB / 1.124 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/1.393, allocations: 4 kB / 1.124 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001419/1.393, allocations: 177.8 kB / 1.124 GB, free: 38.39 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.81e-07/1.393, allocations: 0 / 1.124 GB, free: 38.39 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002156/1.393, allocations: 23.94 kB / 1.124 GB, free: 38.37 MB / 0.7448 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 () * 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.0002864/1.394, allocations: 124.6 kB / 1.124 GB, free: 38.25 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000111/1.394, allocations: 26.92 kB / 1.124 GB, free: 38.23 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.394, allocations: 0 / 1.124 GB, free: 38.23 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.179e-05/1.394, allocations: 11.75 kB / 1.124 GB, free: 38.23 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/1.394, allocations: 48.08 kB / 1.124 GB, free: 38.2 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003991/1.395, allocations: 180.9 kB / 1.124 GB, free: 38.04 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/1.395, allocations: 0.7272 MB / 1.125 GB, free: 37.31 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.319e-05/1.395, allocations: 22.25 kB / 1.125 GB, free: 37.3 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/1.395, allocations: 11.44 kB / 1.125 GB, free: 37.29 MB / 0.7448 GB Notification: Performance of SimCode: time 5.81e-07/1.395, allocations: 11.94 kB / 1.125 GB, free: 37.28 MB / 0.7448 GB Notification: Performance of Templates: time 0.004489/1.399, allocations: 1.608 MB / 1.126 GB, free: 36.38 MB / 0.7448 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)