Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.545/1.545, allocations: 251.9 MB / 0.51 GB, free: 4.777 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005528/0.0005531, allocations: 16 kB / 0.6241 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5356/0.5362, allocations: 106.3 MB / 0.728 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002166/0.5384, allocations: 1.316 MB / 0.7293 GB, free: 10.1 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008705/0.5393, allocations: 0.558 MB / 0.7298 GB, free: 9.531 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.304e-05/0.5394, allocations: 4 kB / 0.7298 GB, free: 9.527 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.5396, allocations: 27.86 kB / 0.7298 GB, free: 9.5 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.5399, allocations: 51.86 kB / 0.7299 GB, free: 9.449 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.54, allocations: 59.84 kB / 0.7299 GB, free: 9.391 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.5402, allocations: 87.83 kB / 0.73 GB, free: 9.305 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.5403, allocations: 37.47 kB / 0.7301 GB, free: 9.266 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.5405, allocations: 43.78 kB / 0.7301 GB, free: 9.223 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.933e-05/0.5406, allocations: 39.78 kB / 0.7301 GB, free: 9.184 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.5406, allocations: 0 / 0.7301 GB, free: 9.184 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.868e-05/0.5407, allocations: 12 kB / 0.7302 GB, free: 9.172 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.483e-05/0.5407, allocations: 39.83 kB / 0.7302 GB, free: 9.133 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.85e-05/0.5408, allocations: 49.58 kB / 0.7302 GB, free: 9.078 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.5409, allocations: 97.77 kB / 0.7303 GB, free: 8.984 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.541, allocations: 0 / 0.7303 GB, free: 8.984 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.234e-06/0.541, allocations: 4 kB / 0.7303 GB, free: 8.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.169e-06/0.541, allocations: 0 / 0.7303 GB, free: 8.98 MB / 0.545 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.0006002/0.5416, allocations: 461.6 kB / 0.7308 GB, free: 8.484 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.5416, allocations: 8.031 kB / 0.7308 GB, free: 8.477 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.5417, allocations: 19.8 kB / 0.7308 GB, free: 8.457 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.542, allocations: 231.6 kB / 0.731 GB, free: 8.188 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.542, allocations: 12 kB / 0.731 GB, free: 8.176 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.542, allocations: 0 / 0.731 GB, free: 8.176 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.5424, allocations: 121.6 kB / 0.7312 GB, free: 8.051 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.5424, allocations: 0 / 0.7312 GB, free: 8.051 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.5424, allocations: 3.938 kB / 0.7312 GB, free: 8.047 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.5424, allocations: 0 / 0.7312 GB, free: 8.047 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.5427, allocations: 83.94 kB / 0.7312 GB, free: 7.965 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006362/0.5433, allocations: 392.4 kB / 0.7316 GB, free: 7.531 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.5435, allocations: 50.56 kB / 0.7317 GB, free: 7.473 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.5435, allocations: 8 kB / 0.7317 GB, free: 7.465 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.5438, allocations: 101 kB / 0.7318 GB, free: 7.348 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.5438, allocations: 4 kB / 0.7318 GB, free: 7.344 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004404/0.5442, allocations: 133.4 kB / 0.7319 GB, free: 7.207 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.5443, allocations: 85.11 kB / 0.732 GB, free: 7.105 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.5446, allocations: 256.9 kB / 0.7322 GB, free: 6.844 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.5446, allocations: 25.7 kB / 0.7322 GB, free: 6.812 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.5447, allocations: 124.1 kB / 0.7324 GB, free: 6.688 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.5448, allocations: 11.91 kB / 0.7324 GB, free: 6.676 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.5448, allocations: 0 / 0.7324 GB, free: 6.676 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5449, allocations: 322.8 kB / 0.7327 GB, free: 6.352 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.545, allocations: 35.97 kB / 0.7327 GB, free: 6.316 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.5452, allocations: 55.34 kB / 0.7328 GB, free: 6.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.5453, allocations: 40 kB / 0.7328 GB, free: 6.211 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5453, allocations: 0 / 0.7328 GB, free: 6.211 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002767/0.5456, allocations: 121.3 kB / 0.7329 GB, free: 6.086 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.5456, allocations: 8 kB / 0.7329 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.5456, allocations: 0 / 0.7329 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.5456, allocations: 0 / 0.7329 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.5458, allocations: 20.08 kB / 0.7329 GB, free: 6.059 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5458, allocations: 3.938 kB / 0.733 GB, free: 6.055 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.086e-05/0.5459, allocations: 23.83 kB / 0.733 GB, free: 6.031 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.5459, allocations: 3.984 kB / 0.733 GB, free: 6.027 MB / 0.545 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.0001252/0.546, allocations: 129.8 kB / 0.7331 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.5461, allocations: 19.77 kB / 0.7331 GB, free: 5.871 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/0.5461, allocations: 21.52 kB / 0.7331 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.5461, allocations: 4 kB / 0.7331 GB, free: 5.848 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5461, allocations: 3.984 kB / 0.7331 GB, free: 5.844 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.5461, allocations: 3.938 kB / 0.7332 GB, free: 5.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.5463, allocations: 209.6 kB / 0.7334 GB, free: 5.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5463, allocations: 4 kB / 0.7334 GB, free: 5.582 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.786e-05/0.5464, allocations: 11.98 kB / 0.7334 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5464, allocations: 0 / 0.7334 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.5464, allocations: 15.95 kB / 0.7334 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5464, allocations: 0 / 0.7334 GB, free: 5.555 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5464, allocations: 4 kB / 0.7334 GB, free: 5.551 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.5467, allocations: 132.9 kB / 0.7335 GB, free: 5.402 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.655e-05/0.5468, allocations: 104.8 kB / 0.7336 GB, free: 5.281 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.5469, allocations: 0 / 0.7336 GB, free: 5.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.593e-05/0.5469, allocations: 19.94 kB / 0.7336 GB, free: 5.262 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.547, allocations: 3.984 kB / 0.7336 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.547, allocations: 4 kB / 0.7336 GB, free: 5.254 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001504/0.5472, allocations: 192.5 kB / 0.7338 GB, free: 5.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.523e-06/0.5472, allocations: 0 / 0.7338 GB, free: 5.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002245/0.5474, allocations: 23.94 kB / 0.7338 GB, free: 5.047 MB / 0.545 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.0002204/0.5476, allocations: 130 kB / 0.734 GB, free: 4.918 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002812/0.5479, allocations: 71.94 kB / 0.734 GB, free: 4.848 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5479, allocations: 0 / 0.734 GB, free: 4.848 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.5481, allocations: 40.11 kB / 0.7341 GB, free: 4.809 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.5483, allocations: 36.39 kB / 0.7341 GB, free: 4.773 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00053/0.5488, allocations: 318.3 kB / 0.7344 GB, free: 4.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.5492, allocations: 0.716 MB / 0.7351 GB, free: 3.688 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.767e-05/0.5492, allocations: 20.67 kB / 0.7351 GB, free: 3.668 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.5493, allocations: 15.44 kB / 0.7351 GB, free: 3.652 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.5493, allocations: 0 / 0.7351 GB, free: 3.652 MB / 0.545 GB Notification: Performance of Templates: time 0.005571/0.5548, allocations: 1.566 MB / 0.7367 GB, free: 2.113 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: