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.001427/0.001431, allocations: 187.3 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.7158/0.7158, allocations: 82.94 MB / 99.43 MB, free: 2.234 MB / 74.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.293/2.293, allocations: 205.4 MB / 325.4 MB, free: 6.617 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009961/0.0009958, allocations: 102 kB / 393.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000459/0.0004592, allocations: 12 kB / 471.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4497/0.4502, allocations: 67.43 MB / 0.5263 GB, free: 55.37 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001871/0.4521, allocations: 1.307 MB / 0.5276 GB, free: 54.43 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009805/0.4531, allocations: 0.5466 MB / 0.5282 GB, free: 54.04 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.011e-05/0.4532, allocations: 2.094 kB / 0.5282 GB, free: 54.04 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.4534, allocations: 25.08 kB / 0.5282 GB, free: 54.03 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.4537, allocations: 59.41 kB / 0.5282 GB, free: 53.99 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.4539, allocations: 52.83 kB / 0.5283 GB, free: 53.97 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.4541, allocations: 85.42 kB / 0.5284 GB, free: 53.93 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.4544, allocations: 40.5 kB / 0.5284 GB, free: 53.91 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.4545, allocations: 46.64 kB / 0.5285 GB, free: 53.89 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.92e-05/0.4546, allocations: 42.27 kB / 0.5285 GB, free: 53.87 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.4547, allocations: 3.969 kB / 0.5285 GB, free: 53.87 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.998e-05/0.4548, allocations: 8.625 kB / 0.5285 GB, free: 53.87 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.4548, allocations: 37.78 kB / 0.5285 GB, free: 53.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.011e-05/0.4549, allocations: 44.83 kB / 0.5286 GB, free: 53.81 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.4551, allocations: 100.8 kB / 0.5287 GB, free: 53.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.804e-06/0.4551, allocations: 0 / 0.5287 GB, free: 53.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.4551, allocations: 0 / 0.5287 GB, free: 53.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.716e-06/0.4552, allocations: 5 kB / 0.5287 GB, free: 53.79 MB / 410.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.0005686/0.4557, allocations: 452.6 kB / 0.5291 GB, free: 53.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.4558, allocations: 8.719 kB / 0.5291 GB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.84e-05/0.4559, allocations: 20.84 kB / 0.5291 GB, free: 53.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.4561, allocations: 233.9 kB / 0.5294 GB, free: 53.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.4562, allocations: 6.438 kB / 0.5294 GB, free: 53.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.4562, allocations: 7.719 kB / 0.5294 GB, free: 53.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.4565, allocations: 122.7 kB / 0.5295 GB, free: 53.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.115e-06/0.4566, allocations: 0 / 0.5295 GB, free: 53.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.4566, allocations: 6.109 kB / 0.5295 GB, free: 53.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4566, allocations: 1.438 kB / 0.5295 GB, free: 53.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.4569, allocations: 79.8 kB / 0.5296 GB, free: 53.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006662/0.4576, allocations: 396.7 kB / 0.53 GB, free: 52.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001668/0.4578, allocations: 46.06 kB / 0.53 GB, free: 52.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.4578, allocations: 9.312 kB / 0.53 GB, free: 52.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.4582, allocations: 107.6 kB / 0.5301 GB, free: 52.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.44e-06/0.4582, allocations: 0 / 0.5301 GB, free: 52.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005352/0.4587, allocations: 138.5 kB / 0.5302 GB, free: 52.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.4588, allocations: 86.42 kB / 0.5303 GB, free: 52.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.4591, allocations: 249.9 kB / 0.5306 GB, free: 52.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.4591, allocations: 31.08 kB / 0.5306 GB, free: 52.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.332e-05/0.4592, allocations: 125.6 kB / 0.5307 GB, free: 52.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.4592, allocations: 5.984 kB / 0.5307 GB, free: 52.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.4593, allocations: 0 / 0.5307 GB, free: 52.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.4593, allocations: 332.4 kB / 0.531 GB, free: 51.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.4595, allocations: 35.8 kB / 0.5311 GB, free: 51.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.4597, allocations: 57.58 kB / 0.5311 GB, free: 51.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.4599, allocations: 37.11 kB / 0.5312 GB, free: 51.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.977e-06/0.4599, allocations: 0 / 0.5312 GB, free: 51.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003803/0.4603, allocations: 119.6 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4603, allocations: 4.125 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.871e-06/0.4603, allocations: 1.891 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.4603, allocations: 1.375 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.4605, allocations: 15.48 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.295e-06/0.4605, allocations: 5.344 kB / 0.5313 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.4607, allocations: 18.53 kB / 0.5313 GB, free: 51.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.4607, allocations: 2 kB / 0.5313 GB, free: 51.71 MB / 410.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.0001175/0.4608, allocations: 127.4 kB / 0.5314 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.205e-05/0.4609, allocations: 24.27 kB / 0.5315 GB, free: 51.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.507e-05/0.4609, allocations: 22.77 kB / 0.5315 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.453e-06/0.4609, allocations: 1.25 kB / 0.5315 GB, free: 51.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.461, allocations: 4 kB / 0.5315 GB, free: 51.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.461, allocations: 4.688 kB / 0.5315 GB, free: 51.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.4612, allocations: 217.2 kB / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4612, allocations: 0 / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.4613, allocations: 14.36 kB / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.604e-06/0.4613, allocations: 1.938 kB / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.472e-06/0.4613, allocations: 0 / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.065e-06/0.4614, allocations: 2 kB / 0.5317 GB, free: 51.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.191e-06/0.4614, allocations: 3.938 kB / 0.5317 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/0.4617, allocations: 138.8 kB / 0.5319 GB, free: 51.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.4618, allocations: 99.34 kB / 0.532 GB, free: 51.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.4619, allocations: 1.938 kB / 0.532 GB, free: 51.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.462, allocations: 14.22 kB / 0.532 GB, free: 51.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.4621, allocations: 8.844 kB / 0.532 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.4621, allocations: 4.234 kB / 0.532 GB, free: 51.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000218/0.4623, allocations: 189.4 kB / 0.5322 GB, free: 51.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.09e-07/0.4623, allocations: 0 / 0.5322 GB, free: 51.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003157/0.4627, allocations: 26.73 kB / 0.5322 GB, free: 51.02 MB / 410.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.0002227/0.4629, allocations: 124.3 kB / 0.5323 GB, free: 50.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.4633, allocations: 71 kB / 0.5324 GB, free: 50.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.105e-06/0.4633, allocations: 2.469 kB / 0.5324 GB, free: 50.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.4635, allocations: 37.22 kB / 0.5324 GB, free: 50.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.4638, allocations: 43.03 kB / 0.5325 GB, free: 50.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.4644, allocations: 307.8 kB / 0.5327 GB, free: 50.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.4646, allocations: 0.7254 MB / 0.5335 GB, free: 49.98 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.266e-05/0.4647, allocations: 14.44 kB / 0.5335 GB, free: 49.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.4648, allocations: 19.97 kB / 0.5335 GB, free: 49.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.481e-06/0.4648, allocations: 0 / 0.5335 GB, free: 49.96 MB / 410.7 MB Notification: Performance of Templates: time 0.006136/0.471, allocations: 1.551 MB / 0.535 GB, free: 49.78 MB / 410.7 MB