Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002469/0.002474, allocations: 359.2 kB / 16.58 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.438/1.438, allocations: 165.8 MB / 183.1 MB, free: 5.453 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.791/3.791, allocations: 410.8 MB / 0.6001 GB, free: 15.14 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001731/0.001731, allocations: 182.9 kB / 0.6668 GB, free: 6.914 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004486/0.0004489, allocations: 15.98 kB / 0.7429 GB, free: 8.945 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3975, allocations: 67.43 MB / 0.8087 GB, free: 28.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.5648, allocations: 100.3 MB / 0.9067 GB, free: 8.34 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.5651, allocations: 79.95 kB / 0.9068 GB, free: 8.262 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01415/0.5793, allocations: 3.289 MB / 0.91 GB, free: 4.973 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5794, allocations: 0 / 0.91 GB, free: 4.973 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.5794, allocations: 4 kB / 0.91 GB, free: 4.969 MB / 458.7 MB 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.0007468/0.5801, allocations: 454.6 kB / 0.9104 GB, free: 4.477 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.5802, allocations: 8.031 kB / 0.9104 GB, free: 4.469 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.5803, allocations: 23.75 kB / 0.9104 GB, free: 4.445 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.5807, allocations: 235.6 kB / 0.9107 GB, free: 4.172 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.5807, allocations: 4 kB / 0.9107 GB, free: 4.168 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.5807, allocations: 8 kB / 0.9107 GB, free: 4.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.5812, allocations: 111 kB / 0.9108 GB, free: 4.047 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.5812, allocations: 11.94 kB / 0.9108 GB, free: 4.035 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.5812, allocations: 7.953 kB / 0.9108 GB, free: 4.027 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.5812, allocations: 0 / 0.9108 GB, free: 4.027 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.5817, allocations: 75.94 kB / 0.9109 GB, free: 3.953 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008426/0.5826, allocations: 396.4 kB / 0.9112 GB, free: 3.516 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.5828, allocations: 46.5 kB / 0.9113 GB, free: 3.461 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.583, allocations: 36.89 kB / 0.9113 GB, free: 3.422 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.5831, allocations: 8 kB / 0.9113 GB, free: 3.414 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.5834, allocations: 101.1 kB / 0.9114 GB, free: 3.297 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.5834, allocations: 4 kB / 0.9114 GB, free: 3.293 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0007101/0.5841, allocations: 137.5 kB / 0.9116 GB, free: 3.152 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.5842, allocations: 85.09 kB / 0.9116 GB, free: 3.051 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003757/0.5846, allocations: 245 kB / 0.9119 GB, free: 2.809 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.5846, allocations: 25.7 kB / 0.9119 GB, free: 2.777 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.5848, allocations: 128 kB / 0.912 GB, free: 2.648 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.5848, allocations: 7.906 kB / 0.912 GB, free: 2.641 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-06/0.5848, allocations: 0 / 0.912 GB, free: 2.641 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.585, allocations: 330.8 kB / 0.9123 GB, free: 2.309 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.5852, allocations: 35.97 kB / 0.9124 GB, free: 2.273 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.5854, allocations: 59.44 kB / 0.9124 GB, free: 2.203 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.5856, allocations: 32 kB / 0.9125 GB, free: 2.172 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.5856, allocations: 3.938 kB / 0.9125 GB, free: 2.168 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004881/0.5861, allocations: 121.4 kB / 0.9126 GB, free: 2.043 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.5862, allocations: 4 kB / 0.9126 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.5862, allocations: 0 / 0.9126 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.5862, allocations: 0 / 0.9126 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.5864, allocations: 24.02 kB / 0.9126 GB, free: 2.016 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.5864, allocations: 0 / 0.9126 GB, free: 2.016 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.5866, allocations: 27.83 kB / 0.9126 GB, free: 1.988 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.5866, allocations: 4 kB / 0.9126 GB, free: 1.984 MB / 458.7 MB 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.0001417/0.5868, allocations: 125.8 kB / 0.9128 GB, free: 1.852 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.5868, allocations: 15.81 kB / 0.9128 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.936e-05/0.5869, allocations: 25.23 kB / 0.9128 GB, free: 1.805 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5869, allocations: 4 kB / 0.9128 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.5869, allocations: 0 / 0.9128 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5869, allocations: 0 / 0.9128 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002403/0.5872, allocations: 221.5 kB / 0.913 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.5872, allocations: 0 / 0.913 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.5873, allocations: 11.98 kB / 0.913 GB, free: 1.523 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5874, allocations: 4 kB / 0.913 GB, free: 1.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.5874, allocations: 0 / 0.913 GB, free: 1.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.5874, allocations: 0 / 0.913 GB, free: 1.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5874, allocations: 7.938 kB / 0.913 GB, free: 1.512 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004874/0.5879, allocations: 140.8 kB / 0.9132 GB, free: 1.355 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.588, allocations: 100.9 kB / 0.9133 GB, free: 1.238 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.588, allocations: 0 / 0.9133 GB, free: 1.238 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.5882, allocations: 15.98 kB / 0.9133 GB, free: 1.223 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.5883, allocations: 7.984 kB / 0.9133 GB, free: 1.215 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.344e-05/0.5883, allocations: 4 kB / 0.9133 GB, free: 1.211 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002606/0.5886, allocations: 180.5 kB / 0.9135 GB, free: 1.031 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5886, allocations: 0 / 0.9135 GB, free: 1.031 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003037/0.5889, allocations: 35.84 kB / 0.9135 GB, free: 0.9961 MB / 458.7 MB 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.0002778/0.5892, allocations: 122.7 kB / 0.9136 GB, free: 0.875 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004676/0.5897, allocations: 79.81 kB / 0.9137 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5897, allocations: 0 / 0.9137 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.5899, allocations: 40.16 kB / 0.9137 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.5904, allocations: 39.88 kB / 0.9138 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007363/0.5911, allocations: 318.1 kB / 0.9141 GB, free: 392 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.5915, allocations: 0.7238 MB / 0.9148 GB, free: 15.63 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.5916, allocations: 16.48 kB / 0.9148 GB, free: 15.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.894e-05/0.5917, allocations: 23.44 kB / 0.9148 GB, free: 15.59 MB / 474.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5917, allocations: 0 / 0.9148 GB, free: 15.59 MB / 474.7 MB Notification: Performance of Templates: time 0.006455/0.5982, allocations: 1.606 MB / 0.9164 GB, free: 14 MB / 474.7 MB