Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.559/1.559, allocations: 289.9 MB / 297.4 MB, free: 6.383 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.001055/0.001055, allocations: 176.8 kB / 366.7 MB, free: 1.656 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.533/1.533, allocations: 205.3 MB / 0.626 GB, free: 7.164 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008268/0.0008273, allocations: 88.58 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.563e-05/1.566e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.581/0.581, allocations: 116.3 MB / 0.9732 GB, free: 76.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1682/0.7493, allocations: 140.2 MB / 1.11 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.7495, allocations: 72.52 kB / 1.11 GB, free: 9.895 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.008762/0.7583, allocations: 3.258 MB / 1.113 GB, free: 6.684 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.92e-07/0.7583, allocations: 0.5938 kB / 1.113 GB, free: 6.684 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.512e-05/0.7584, allocations: 4 kB / 1.113 GB, free: 6.68 MB / 0.7136 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.0004608/0.7588, allocations: 430.2 kB / 1.114 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.7589, allocations: 12.03 kB / 1.114 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.7589, allocations: 15.81 kB / 1.114 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.7592, allocations: 243 kB / 1.114 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-06/0.7592, allocations: 4 kB / 1.114 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.7592, allocations: 5.719 kB / 1.114 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.509e-05/0.7593, allocations: 24 kB / 1.114 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.7595, allocations: 85.66 kB / 1.114 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.7595, allocations: 0 / 1.114 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.7595, allocations: 0 / 1.114 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.7595, allocations: 0.7812 kB / 1.114 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.7601, allocations: 360.4 kB / 1.115 GB, free: 5.406 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.455e-05/0.7601, allocations: 21.98 kB / 1.115 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.733e-05/0.7601, allocations: 12.92 kB / 1.115 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.7602, allocations: 0 / 1.115 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/0.7603, allocations: 81.89 kB / 1.115 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.7603, allocations: 0 / 1.115 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001471/0.7605, allocations: 68.41 kB / 1.115 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.7605, allocations: 81.11 kB / 1.115 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.7607, allocations: 194.1 kB / 1.115 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.7607, allocations: 25.7 kB / 1.115 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.498e-05/0.7608, allocations: 131.9 kB / 1.115 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.7608, allocations: 3.906 kB / 1.115 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-06/0.7608, allocations: 4 kB / 1.115 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.7609, allocations: 328.7 kB / 1.115 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.761, allocations: 15.98 kB / 1.116 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.069e-05/0.761, allocations: 35.36 kB / 1.116 GB, free: 4.336 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.63e-05/0.761, allocations: 4 kB / 1.116 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.7611, allocations: 11.97 kB / 1.116 GB, free: 4.32 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.905e-05/0.7612, allocations: 69.44 kB / 1.116 GB, free: 4.246 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.7612, allocations: 4 kB / 1.116 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7612, allocations: 0 / 1.116 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.7612, allocations: 4 kB / 1.116 GB, free: 4.238 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.7613, allocations: 22.69 kB / 1.116 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.7613, allocations: 0 / 1.116 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.533e-05/0.7614, allocations: 16.08 kB / 1.116 GB, free: 4.203 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.7615, allocations: 4 kB / 1.116 GB, free: 4.199 MB / 0.7136 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 () * 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 7.083e-05/0.7615, allocations: 105 kB / 1.116 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.543e-05/0.7616, allocations: 15.81 kB / 1.116 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.7616, allocations: 13.56 kB / 1.116 GB, free: 4.055 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.7616, allocations: 4 kB / 1.116 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7616, allocations: 3.953 kB / 1.116 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7616, allocations: 3.984 kB / 1.116 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.7618, allocations: 198.1 kB / 1.116 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.7618, allocations: 3.375 kB / 1.116 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.468e-05/0.7619, allocations: 15.98 kB / 1.116 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.7619, allocations: 0 / 1.116 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.7619, allocations: 0 / 1.116 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.7619, allocations: 3.938 kB / 1.116 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7619, allocations: 0 / 1.116 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.762, allocations: 92.89 kB / 1.116 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.7621, allocations: 96.91 kB / 1.116 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.7621, allocations: 0 / 1.116 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-05/0.7622, allocations: 15.98 kB / 1.116 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.7623, allocations: 7.984 kB / 1.116 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.7623, allocations: 5.875 kB / 1.116 GB, free: 3.543 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001353/0.7624, allocations: 160.6 kB / 1.116 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7624, allocations: 4 kB / 1.116 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002165/0.7627, allocations: 16 kB / 1.116 GB, free: 3.367 MB / 0.7136 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 () * 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.0002076/0.7629, allocations: 127.5 kB / 1.117 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.156e-05/0.763, allocations: 23.92 kB / 1.117 GB, free: 3.219 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.763, allocations: 4.188 kB / 1.117 GB, free: 3.215 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.746e-05/0.763, allocations: 12 kB / 1.117 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.7633, allocations: 38.97 kB / 1.117 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003486/0.7636, allocations: 191.4 kB / 1.117 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.7639, allocations: 0.7236 MB / 1.117 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.094e-05/0.764, allocations: 16.66 kB / 1.117 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.665e-05/0.764, allocations: 17.59 kB / 1.118 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/0.764, allocations: 0 / 1.118 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of Templates: time 0.003687/0.7677, allocations: 1.461 MB / 1.119 GB, free: 0.7656 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)