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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.578/1.578, allocations: 293 MB / 309 MB, free: 4.848 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.0009771/0.0009774, allocations: 170.8 kB / 378.7 MB, free: 1.031 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.424/1.424, allocations: 205.4 MB / 0.6383 GB, free: 8.172 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.0008271/0.0008272, allocations: 95.64 kB / 0.7527 GB, free: 62.82 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003576, allocations: 15.98 kB / 0.8768 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2187, allocations: 116.4 MB / 0.9904 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5771/0.7958, allocations: 141.1 MB / 1.128 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.796, allocations: 83.09 kB / 1.128 GB, free: 33.15 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.007617/0.8037, allocations: 3.288 MB / 1.131 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8037, allocations: 0 / 1.131 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.8037, allocations: 0 / 1.131 GB, free: 30.91 MB / 0.7292 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.000398/0.8041, allocations: 458.7 kB / 1.132 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.8041, allocations: 9.156 kB / 1.132 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.8042, allocations: 24.27 kB / 1.132 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.8044, allocations: 243.2 kB / 1.132 GB, free: 30.14 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.8044, allocations: 4.938 kB / 1.132 GB, free: 30.14 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.8044, allocations: 8.375 kB / 1.132 GB, free: 30.13 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.8047, allocations: 108.1 kB / 1.132 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.8047, allocations: 192 / 1.132 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.8047, allocations: 9.719 kB / 1.132 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.8047, allocations: 8 kB / 1.132 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.8049, allocations: 72.45 kB / 1.132 GB, free: 29.97 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.8054, allocations: 400.5 kB / 1.133 GB, free: 29.58 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.8055, allocations: 53.45 kB / 1.133 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.146e-05/0.8056, allocations: 36.66 kB / 1.133 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.8056, allocations: 0 / 1.133 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.8058, allocations: 104.9 kB / 1.133 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.8058, allocations: 0 / 1.133 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0003536/0.8062, allocations: 150.4 kB / 1.133 GB, free: 29.26 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.8062, allocations: 81.05 kB / 1.133 GB, free: 29.16 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.8064, allocations: 244.6 kB / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.8064, allocations: 33.7 kB / 1.133 GB, free: 28.9 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.8065, allocations: 119.7 kB / 1.134 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.338e-05/0.8065, allocations: 11.23 kB / 1.134 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/0.8065, allocations: 0.8438 kB / 1.134 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.8066, allocations: 326.1 kB / 1.134 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.216e-05/0.8067, allocations: 27.66 kB / 1.134 GB, free: 28.43 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.354e-05/0.8068, allocations: 61.94 kB / 1.134 GB, free: 28.37 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001751/0.8069, allocations: 85.05 kB / 1.134 GB, free: 28.29 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.807, allocations: 0 / 1.134 GB, free: 28.29 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002227/0.8072, allocations: 118.6 kB / 1.134 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.8072, allocations: 4 kB / 1.134 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.8072, allocations: 4.75 kB / 1.134 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.8072, allocations: 4.969 kB / 1.134 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-05/0.8073, allocations: 19.56 kB / 1.134 GB, free: 28.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.8073, allocations: 3.938 kB / 1.134 GB, free: 28.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.325e-05/0.8074, allocations: 26.73 kB / 1.134 GB, free: 28.13 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.8075, allocations: 0 / 1.134 GB, free: 28.13 MB / 0.7292 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 6.825e-05/0.8075, allocations: 133.4 kB / 1.134 GB, free: 28 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.8076, allocations: 15.81 kB / 1.134 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.8076, allocations: 22.78 kB / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.8076, allocations: 4 kB / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.8076, allocations: 3.938 kB / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.8076, allocations: 0 / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.8077, allocations: 215.5 kB / 1.135 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8077, allocations: 4.688 kB / 1.135 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.371e-05/0.8078, allocations: 15.56 kB / 1.135 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8078, allocations: 3.516 kB / 1.135 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.8078, allocations: 0 / 1.135 GB, free: 27.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8078, allocations: 4.562 kB / 1.135 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.8078, allocations: 7.938 kB / 1.135 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.8081, allocations: 134.1 kB / 1.135 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/0.8081, allocations: 100.3 kB / 1.135 GB, free: 27.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.8081, allocations: 4 kB / 1.135 GB, free: 27.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.7e-05/0.8082, allocations: 12.27 kB / 1.135 GB, free: 27.44 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.8083, allocations: 12.58 kB / 1.135 GB, free: 27.43 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.8083, allocations: 8 kB / 1.135 GB, free: 27.42 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001131/0.8084, allocations: 178.1 kB / 1.135 GB, free: 27.27 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8084, allocations: 4 kB / 1.135 GB, free: 27.27 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001927/0.8086, allocations: 19.94 kB / 1.135 GB, free: 27.25 MB / 0.7292 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.000194/0.8088, allocations: 130.3 kB / 1.135 GB, free: 27.12 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.8091, allocations: 66.3 kB / 1.135 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.8091, allocations: 0 / 1.135 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.8092, allocations: 39.31 kB / 1.135 GB, free: 27.04 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.8094, allocations: 44.84 kB / 1.135 GB, free: 27.01 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004227/0.8099, allocations: 317.7 kB / 1.136 GB, free: 26.7 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.81, allocations: 0.7185 MB / 1.136 GB, free: 25.98 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.989e-05/0.8101, allocations: 25.38 kB / 1.136 GB, free: 25.96 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.8101, allocations: 16.66 kB / 1.136 GB, free: 25.95 MB / 0.7292 GB Notification: Performance of SimCode: time 2.71e-07/0.8101, allocations: 0 / 1.136 GB, free: 25.95 MB / 0.7292 GB Notification: Performance of Templates: time 0.004031/0.8142, allocations: 1.617 MB / 1.138 GB, free: 25.03 MB / 0.7292 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)