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.611/1.611, allocations: 288.3 MB / 303.2 MB, free: 8.117 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.001083/0.001083, allocations: 186.2 kB / 371.8 MB, free: 10.26 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.522/1.522, allocations: 205.4 MB / 0.6306 GB, free: 10.01 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.0008703/0.0008703, allocations: 99.42 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004393, allocations: 19.34 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.224, allocations: 115.3 MB / 0.9794 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.723/0.9471, allocations: 140 MB / 1.116 GB, free: 16.46 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.9474, allocations: 82.34 kB / 1.116 GB, free: 16.46 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009083/0.9565, allocations: 3.283 MB / 1.119 GB, free: 32 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9566, allocations: 0 / 1.119 GB, free: 32 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.706e-05/0.9566, allocations: 3.844 kB / 1.119 GB, free: 32 MB / 0.698 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.0005711/0.9572, allocations: 457.8 kB / 1.12 GB, free: 31.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.9572, allocations: 11.7 kB / 1.12 GB, free: 31.59 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.9573, allocations: 26.17 kB / 1.12 GB, free: 31.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.9576, allocations: 239.5 kB / 1.12 GB, free: 31.36 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.9576, allocations: 0 / 1.12 GB, free: 31.36 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.9576, allocations: 7.625 kB / 1.12 GB, free: 31.36 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.9579, allocations: 114.8 kB / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/0.9579, allocations: 0 / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.9579, allocations: 3.5 kB / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.958, allocations: 4 kB / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.9582, allocations: 77.86 kB / 1.12 GB, free: 31.31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005771/0.9588, allocations: 396.3 kB / 1.121 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.9589, allocations: 53.17 kB / 1.121 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.9589, allocations: 0 / 1.121 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.9591, allocations: 112.8 kB / 1.121 GB, free: 30.93 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.9592, allocations: 4 kB / 1.121 GB, free: 30.92 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0004086/0.9596, allocations: 138.3 kB / 1.121 GB, free: 30.88 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.9596, allocations: 81.02 kB / 1.121 GB, free: 30.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.9598, allocations: 222 kB / 1.121 GB, free: 30.69 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.9599, allocations: 25.7 kB / 1.121 GB, free: 30.66 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.96, allocations: 127.6 kB / 1.121 GB, free: 30.57 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.96, allocations: 7.812 kB / 1.121 GB, free: 30.57 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.96, allocations: 0 / 1.121 GB, free: 30.57 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.9601, allocations: 332.1 kB / 1.122 GB, free: 30.25 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.9603, allocations: 29.56 kB / 1.122 GB, free: 30.25 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.9604, allocations: 61.06 kB / 1.122 GB, free: 30.21 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.9605, allocations: 32.55 kB / 1.122 GB, free: 30.21 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.9605, allocations: 0 / 1.122 GB, free: 30.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002626/0.9608, allocations: 119.4 kB / 1.122 GB, free: 30.17 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.9608, allocations: 3.844 kB / 1.122 GB, free: 30.17 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.9608, allocations: 0 / 1.122 GB, free: 30.17 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.9608, allocations: 10.62 kB / 1.122 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.9609, allocations: 19.27 kB / 1.122 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.961, allocations: 3.875 kB / 1.122 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.138e-05/0.9611, allocations: 18.91 kB / 1.122 GB, free: 30.15 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.9611, allocations: 3.938 kB / 1.122 GB, free: 30.15 MB / 0.698 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 0.0001079/0.9612, allocations: 128.5 kB / 1.122 GB, free: 30.04 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.9612, allocations: 23.41 kB / 1.122 GB, free: 30.02 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.9613, allocations: 20.34 kB / 1.122 GB, free: 30.01 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.9613, allocations: 3.953 kB / 1.122 GB, free: 30.01 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.9613, allocations: 3.75 kB / 1.122 GB, free: 30.01 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9613, allocations: 3.938 kB / 1.122 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.9615, allocations: 214.4 kB / 1.122 GB, free: 29.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.9615, allocations: 0 / 1.122 GB, free: 29.82 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.001e-05/0.9616, allocations: 11.16 kB / 1.122 GB, free: 29.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.9616, allocations: 3.875 kB / 1.122 GB, free: 29.82 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.9616, allocations: 7.375 kB / 1.122 GB, free: 29.81 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.9616, allocations: 0 / 1.122 GB, free: 29.81 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9616, allocations: 3.953 kB / 1.122 GB, free: 29.81 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.9619, allocations: 138 kB / 1.123 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.962, allocations: 95.58 kB / 1.123 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.962, allocations: 4.203 kB / 1.123 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-05/0.9621, allocations: 10.73 kB / 1.123 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.9621, allocations: 6.969 kB / 1.123 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.9622, allocations: 15.05 kB / 1.123 GB, free: 29.62 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001408/0.9623, allocations: 182.1 kB / 1.123 GB, free: 29.54 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.824e-06/0.9623, allocations: 0 / 1.123 GB, free: 29.54 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002186/0.9626, allocations: 31.03 kB / 1.123 GB, free: 29.53 MB / 0.698 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.0002608/0.9628, allocations: 120.9 kB / 1.123 GB, free: 29.44 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.9631, allocations: 73.14 kB / 1.123 GB, free: 29.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9631, allocations: 0 / 1.123 GB, free: 29.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.9633, allocations: 41.36 kB / 1.123 GB, free: 29.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.9635, allocations: 39.47 kB / 1.123 GB, free: 29.42 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005236/0.9641, allocations: 316.1 kB / 1.123 GB, free: 29.22 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.9644, allocations: 0.7207 MB / 1.124 GB, free: 28.52 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.653e-05/0.9645, allocations: 26.36 kB / 1.124 GB, free: 28.51 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.9645, allocations: 18.09 kB / 1.124 GB, free: 28.5 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.9645, allocations: 0 / 1.124 GB, free: 28.5 MB / 0.698 GB Notification: Performance of Templates: time 0.004209/0.9687, allocations: 1.596 MB / 1.126 GB, free: 28.34 MB / 0.698 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)