Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.891/4.891, allocations: 0.5623 GB / 0.5775 GB, free: 3.367 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002636/0.002636, allocations: 356.7 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.347/4.347, allocations: 410.7 MB / 1.113 GB, free: 5.879 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00183/0.00183, allocations: 181.1 kB / 1.226 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0008687/0.0008692, allocations: 12 kB / 1.349 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.741/0.7419, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.9474, allocations: 139.8 MB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.9477, allocations: 84.55 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.01275/0.9605, allocations: 3.264 MB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.945e-06/0.9605, allocations: 0 / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.893e-05/0.9605, allocations: 16.91 kB / 1.601 GB, free: 141 MB / 0.8542 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.0006286/0.9612, allocations: 452.3 kB / 1.602 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.9612, allocations: 12.53 kB / 1.602 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.9613, allocations: 19.72 kB / 1.602 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.9616, allocations: 244.3 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.9616, allocations: 7.938 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.9617, allocations: 9.25 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003864/0.9621, allocations: 102.5 kB / 1.602 GB, free: 140.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.9621, allocations: 0.5938 kB / 1.602 GB, free: 140.1 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.9621, allocations: 6.469 kB / 1.602 GB, free: 140.1 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.9621, allocations: 4 kB / 1.602 GB, free: 140.1 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.9626, allocations: 78.77 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.9633, allocations: 406.5 kB / 1.602 GB, free: 139.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.9635, allocations: 43.11 kB / 1.602 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.9637, allocations: 40.25 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.9638, allocations: 3.953 kB / 1.603 GB, free: 139.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003096/0.9641, allocations: 111.3 kB / 1.603 GB, free: 139.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 2.314e-06/0.9641, allocations: 0 / 1.603 GB, free: 139.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0006818/0.9648, allocations: 145.4 kB / 1.603 GB, free: 139.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.9649, allocations: 81.05 kB / 1.603 GB, free: 139.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.9652, allocations: 249 kB / 1.603 GB, free: 138.9 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.9652, allocations: 25.7 kB / 1.603 GB, free: 138.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.9653, allocations: 124 kB / 1.603 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.9653, allocations: 4.875 kB / 1.603 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.9653, allocations: 0 / 1.603 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.046e-05/0.9654, allocations: 332.9 kB / 1.604 GB, free: 138.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.9656, allocations: 27.98 kB / 1.604 GB, free: 138.4 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.9658, allocations: 58.75 kB / 1.604 GB, free: 138.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.966, allocations: 30.38 kB / 1.604 GB, free: 138.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.966, allocations: 4 kB / 1.604 GB, free: 138.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004572/0.9665, allocations: 121.6 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.9665, allocations: 4 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.9666, allocations: 4 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.9666, allocations: 0.8125 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.9668, allocations: 17.05 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.9668, allocations: 3.938 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.967, allocations: 26.48 kB / 1.604 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.967, allocations: 0 / 1.604 GB, free: 138.1 MB / 0.8542 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.0001131/0.9671, allocations: 125.8 kB / 1.604 GB, free: 138 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.9671, allocations: 27.61 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.288e-05/0.9672, allocations: 21.89 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.9672, allocations: 0.75 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.9672, allocations: 4 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.9673, allocations: 1.281 kB / 1.604 GB, free: 137.9 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.9674, allocations: 213.6 kB / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9675, allocations: 0 / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.9676, allocations: 16.83 kB / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.9676, allocations: 1.094 kB / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.9676, allocations: 3.953 kB / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.9676, allocations: 0 / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.9677, allocations: 5.281 kB / 1.604 GB, free: 137.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004567/0.9681, allocations: 139.5 kB / 1.604 GB, free: 137.5 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/0.9682, allocations: 96.91 kB / 1.604 GB, free: 137.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.9682, allocations: 4 kB / 1.604 GB, free: 137.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.9684, allocations: 19.88 kB / 1.604 GB, free: 137.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.9685, allocations: 12.52 kB / 1.605 GB, free: 137.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.9685, allocations: 8.625 kB / 1.605 GB, free: 137.3 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002074/0.9687, allocations: 180.5 kB / 1.605 GB, free: 137.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.11e-07/0.9688, allocations: 0.6875 kB / 1.605 GB, free: 137.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002875/0.969, allocations: 24.66 kB / 1.605 GB, free: 137.1 MB / 0.8542 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.0002674/0.9693, allocations: 119.3 kB / 1.605 GB, free: 137 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004516/0.9698, allocations: 71.25 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9698, allocations: 0.625 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.97, allocations: 38.59 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.9704, allocations: 39.17 kB / 1.605 GB, free: 136.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006413/0.9711, allocations: 330 kB / 1.605 GB, free: 136.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.9713, allocations: 0.7224 MB / 1.606 GB, free: 135.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.799e-05/0.9714, allocations: 16.55 kB / 1.606 GB, free: 135.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.982e-05/0.9715, allocations: 20.34 kB / 1.606 GB, free: 135.7 MB / 0.8542 GB Notification: Performance of SimCode: time 7.32e-07/0.9715, allocations: 0 / 1.606 GB, free: 135.7 MB / 0.8542 GB Notification: Performance of Templates: time 0.00599/0.9775, allocations: 1.612 MB / 1.608 GB, free: 134.3 MB / 0.8542 GB