Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9296/0.9296, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009889/0.0009894, allocations: 179.2 kB / 187.3 MB, free: 11.9 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 221.3 MB / 441.4 MB, free: 4.629 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008758/0.0008758, allocations: 93.94 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001829/0.001829, allocations: 276.8 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.894e-05, allocations: 4 kB / 0.6834 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4313/0.4314, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.554, allocations: 110.5 MB / 0.8722 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.5543, allocations: 80.48 kB / 0.8723 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009184/0.5635, allocations: 3.327 MB / 0.8755 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.502e-06/0.5635, allocations: 0 / 0.8755 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.397e-05/0.5635, allocations: 4 kB / 0.8755 GB, free: 10.67 MB / 0.5417 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.0004785/0.564, allocations: 438 kB / 0.8759 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.5641, allocations: 12.03 kB / 0.8759 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.327e-05/0.5641, allocations: 15.81 kB / 0.876 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.5644, allocations: 231.7 kB / 0.8762 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.5645, allocations: 11.95 kB / 0.8762 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.5645, allocations: 11.94 kB / 0.8762 GB, free: 9.879 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.5647, allocations: 80.05 kB / 0.8763 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.5647, allocations: 0 / 0.8763 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.5647, allocations: 12 kB / 0.8763 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.5647, allocations: 0 / 0.8763 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.541e-05/0.5648, allocations: 31.98 kB / 0.8763 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005803/0.5654, allocations: 392.5 kB / 0.8767 GB, free: 9.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.38e-05/0.5655, allocations: 22.58 kB / 0.8767 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.498e-05/0.5655, allocations: 16.91 kB / 0.8767 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.5655, allocations: 3.938 kB / 0.8767 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.5657, allocations: 81.05 kB / 0.8768 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.5657, allocations: 8 kB / 0.8768 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001535/0.5658, allocations: 65.45 kB / 0.8769 GB, free: 9.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.5659, allocations: 81.11 kB / 0.877 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.5661, allocations: 221 kB / 0.8772 GB, free: 8.773 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.5662, allocations: 25.7 kB / 0.8772 GB, free: 8.742 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.542e-05/0.5663, allocations: 128 kB / 0.8773 GB, free: 8.613 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.5663, allocations: 3.906 kB / 0.8773 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-06/0.5663, allocations: 0 / 0.8773 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5664, allocations: 334.8 kB / 0.8776 GB, free: 8.273 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.853e-05/0.5664, allocations: 12 kB / 0.8777 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.13e-05/0.5665, allocations: 31.48 kB / 0.8777 GB, free: 8.219 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.112e-05/0.5665, allocations: 12 kB / 0.8777 GB, free: 8.207 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5665, allocations: 0 / 0.8777 GB, free: 8.207 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001231/0.5667, allocations: 85.31 kB / 0.8778 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.5667, allocations: 5.25 kB / 0.8778 GB, free: 8.113 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.5667, allocations: 0 / 0.8778 GB, free: 8.113 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.5667, allocations: 4 kB / 0.8778 GB, free: 8.109 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.5669, allocations: 19.94 kB / 0.8778 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.5669, allocations: 0 / 0.8778 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.361e-05/0.567, allocations: 16.08 kB / 0.8778 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.567, allocations: 4 kB / 0.8778 GB, free: 8.07 MB / 0.5417 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 8.69e-05/0.5671, allocations: 120.8 kB / 0.8779 GB, free: 7.945 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.5671, allocations: 15.81 kB / 0.878 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.5672, allocations: 13.25 kB / 0.878 GB, free: 7.914 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.5672, allocations: 0 / 0.878 GB, free: 7.914 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5672, allocations: 3.953 kB / 0.878 GB, free: 7.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.5672, allocations: 3.984 kB / 0.878 GB, free: 7.906 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.5674, allocations: 213.6 kB / 0.8782 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.5674, allocations: 0 / 0.8782 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.4e-05/0.5675, allocations: 19.98 kB / 0.8782 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.5675, allocations: 0 / 0.8782 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.5675, allocations: 0 / 0.8782 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5675, allocations: 0 / 0.8782 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5675, allocations: 3.984 kB / 0.8782 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.5676, allocations: 96.94 kB / 0.8783 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.5677, allocations: 96.95 kB / 0.8784 GB, free: 7.398 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.5678, allocations: 11.98 kB / 0.8784 GB, free: 7.387 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.5678, allocations: 19.92 kB / 0.8784 GB, free: 7.367 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.5679, allocations: 8 kB / 0.8784 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.5679, allocations: 7.984 kB / 0.8784 GB, free: 7.352 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001494/0.5681, allocations: 177.3 kB / 0.8786 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5681, allocations: 0 / 0.8786 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001991/0.5683, allocations: 27.95 kB / 0.8786 GB, free: 7.152 MB / 0.5417 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.0002769/0.5686, allocations: 125.3 kB / 0.8787 GB, free: 7.027 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001142/0.5687, allocations: 27.98 kB / 0.8788 GB, free: 7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5687, allocations: 4.125 kB / 0.8788 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.174e-05/0.5688, allocations: 12 kB / 0.8788 GB, free: 6.984 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.569, allocations: 34.12 kB / 0.8788 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003953/0.5694, allocations: 189.9 kB / 0.879 GB, free: 6.742 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.5697, allocations: 0.7238 MB / 0.8797 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.936e-05/0.5698, allocations: 16.48 kB / 0.8797 GB, free: 5.977 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.202e-05/0.5699, allocations: 19.44 kB / 0.8797 GB, free: 5.961 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.5699, allocations: 0 / 0.8797 GB, free: 5.961 MB / 0.5417 GB Notification: Performance of Templates: time 0.004323/0.5742, allocations: 1.614 MB / 0.8813 GB, free: 4.367 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)