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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.503/1.503, allocations: 289.8 MB / 297 MB, free: 12.55 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 185.4 kB / 366.3 MB, free: 11.86 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 0.6256 GB, free: 1.988 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009631/0.0009631, allocations: 93.27 kB / 0.7395 GB, free: 47.12 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 5.801e-06/5.891e-06, allocations: 0 / 0.859 GB, free: 7.133 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5562/0.5562, allocations: 116.3 MB / 0.9725 GB, free: 81.42 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.7108, allocations: 140.2 MB / 1.109 GB, free: 3.785 MB / 0.7058 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.7111, allocations: 73.45 kB / 1.109 GB, free: 3.715 MB / 0.7058 GB Notification: Performance of FrontEnd: time 0.008874/0.72, allocations: 2.974 MB / 1.112 GB, free: 0.793 MB / 0.7058 GB Notification: Performance of Transformations before backend: time 1.476e-05/0.72, allocations: 7.938 kB / 1.112 GB, free: 0.7852 MB / 0.7058 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.0004771/0.7205, allocations: 422.1 kB / 1.113 GB, free: 336 kB / 0.7058 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.7205, allocations: 8.031 kB / 1.113 GB, free: 328 kB / 0.7058 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.7206, allocations: 23.72 kB / 1.113 GB, free: 304 kB / 0.7058 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.7209, allocations: 231.7 kB / 1.113 GB, free: 28 kB / 0.7058 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.7209, allocations: 4 kB / 1.113 GB, free: 24 kB / 0.7058 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.7209, allocations: 4 kB / 1.113 GB, free: 20 kB / 0.7058 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001219/0.721, allocations: 28.05 kB / 1.113 GB, free: 15.99 MB / 0.7214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.7212, allocations: 81.61 kB / 1.113 GB, free: 15.91 MB / 0.7214 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.7212, allocations: 4 kB / 1.113 GB, free: 15.9 MB / 0.7214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.7212, allocations: 5.156 kB / 1.113 GB, free: 15.9 MB / 0.7214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.7213, allocations: 4 kB / 1.113 GB, free: 15.89 MB / 0.7214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.7218, allocations: 365 kB / 1.114 GB, free: 15.5 MB / 0.7214 GB Notification: Performance of preOpt comSubExp (simulation): time 5.546e-05/0.7219, allocations: 22.52 kB / 1.114 GB, free: 15.47 MB / 0.7214 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.905e-05/0.7219, allocations: 13.67 kB / 1.114 GB, free: 15.45 MB / 0.7214 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.7219, allocations: 0 / 1.114 GB, free: 15.45 MB / 0.7214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001037/0.722, allocations: 85.09 kB / 1.114 GB, free: 15.35 MB / 0.7214 GB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.722, allocations: 3.938 kB / 1.114 GB, free: 15.35 MB / 0.7214 GB Notification: Performance of matching and sorting (n=3): time 0.0001622/0.7222, allocations: 57.52 kB / 1.114 GB, free: 15.29 MB / 0.7214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.7223, allocations: 89.03 kB / 1.114 GB, free: 15.18 MB / 0.7214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.7225, allocations: 198 kB / 1.114 GB, free: 14.98 MB / 0.7214 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.7225, allocations: 25.7 kB / 1.114 GB, free: 14.95 MB / 0.7214 GB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.7225, allocations: 113 kB / 1.114 GB, free: 14.84 MB / 0.7214 GB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.7226, allocations: 7.891 kB / 1.114 GB, free: 14.83 MB / 0.7214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.7226, allocations: 0 / 1.114 GB, free: 14.83 MB / 0.7214 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.7227, allocations: 322.8 kB / 1.114 GB, free: 14.5 MB / 0.7214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.209e-05/0.7227, allocations: 8 kB / 1.114 GB, free: 14.5 MB / 0.7214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.324e-05/0.7228, allocations: 31.44 kB / 1.114 GB, free: 14.45 MB / 0.7214 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.034e-05/0.7228, allocations: 20.02 kB / 1.114 GB, free: 14.43 MB / 0.7214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7228, allocations: 3.906 kB / 1.114 GB, free: 14.43 MB / 0.7214 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001033/0.7229, allocations: 65.44 kB / 1.115 GB, free: 14.36 MB / 0.7214 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.7229, allocations: 4 kB / 1.115 GB, free: 14.36 MB / 0.7214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.7229, allocations: 0 / 1.115 GB, free: 14.36 MB / 0.7214 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.723, allocations: 5.688 kB / 1.115 GB, free: 14.35 MB / 0.7214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.7231, allocations: 20.08 kB / 1.115 GB, free: 14.33 MB / 0.7214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.7231, allocations: 0 / 1.115 GB, free: 14.33 MB / 0.7214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.7232, allocations: 15.98 kB / 1.115 GB, free: 14.32 MB / 0.7214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.7232, allocations: 1.75 kB / 1.115 GB, free: 14.32 MB / 0.7214 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.315e-05/0.7233, allocations: 114.6 kB / 1.115 GB, free: 14.2 MB / 0.7214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.7234, allocations: 19.72 kB / 1.115 GB, free: 14.18 MB / 0.7214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.7234, allocations: 17.02 kB / 1.115 GB, free: 14.15 MB / 0.7214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.7234, allocations: 0 / 1.115 GB, free: 14.15 MB / 0.7214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.7234, allocations: 0 / 1.115 GB, free: 14.15 MB / 0.7214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7234, allocations: 0 / 1.115 GB, free: 14.15 MB / 0.7214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.7236, allocations: 194.1 kB / 1.115 GB, free: 13.93 MB / 0.7214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.7236, allocations: 0 / 1.115 GB, free: 13.93 MB / 0.7214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.163e-05/0.7237, allocations: 19.98 kB / 1.115 GB, free: 13.91 MB / 0.7214 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.7237, allocations: 3.906 kB / 1.115 GB, free: 13.9 MB / 0.7214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.7237, allocations: 4 kB / 1.115 GB, free: 13.9 MB / 0.7214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.7237, allocations: 0 / 1.115 GB, free: 13.9 MB / 0.7214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7237, allocations: 0 / 1.115 GB, free: 13.9 MB / 0.7214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001257/0.7239, allocations: 90.89 kB / 1.115 GB, free: 13.79 MB / 0.7214 GB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.7239, allocations: 92.92 kB / 1.115 GB, free: 13.68 MB / 0.7214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.724, allocations: 11.94 kB / 1.115 GB, free: 13.67 MB / 0.7214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.762e-05/0.7241, allocations: 11.98 kB / 1.115 GB, free: 13.66 MB / 0.7214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.7241, allocations: 11.89 kB / 1.115 GB, free: 13.65 MB / 0.7214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.7241, allocations: 4 kB / 1.115 GB, free: 13.64 MB / 0.7214 GB Notification: Performance of sort global known variables: time 0.000135/0.7243, allocations: 164.6 kB / 1.115 GB, free: 13.48 MB / 0.7214 GB Notification: Performance of remove unused functions: time 0.0002071/0.7245, allocations: 23.94 kB / 1.115 GB, free: 13.46 MB / 0.7214 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.0002045/0.7247, allocations: 116.3 kB / 1.115 GB, free: 13.35 MB / 0.7214 GB Notification: Performance of simCode: created initialization part: time 8.825e-05/0.7248, allocations: 24.17 kB / 1.115 GB, free: 13.32 MB / 0.7214 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.7248, allocations: 7.984 kB / 1.115 GB, free: 13.32 MB / 0.7214 GB Notification: Performance of simCode: created simulation system equations: time 2.82e-05/0.7248, allocations: 12.97 kB / 1.115 GB, free: 13.3 MB / 0.7214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.7251, allocations: 46.59 kB / 1.116 GB, free: 13.26 MB / 0.7214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004012/0.7255, allocations: 178.1 kB / 1.116 GB, free: 13.06 MB / 0.7214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.7258, allocations: 0.7422 MB / 1.116 GB, free: 12.3 MB / 0.7214 GB Notification: Performance of SimCode: time 2.51e-07/0.7258, allocations: 0 / 1.116 GB, free: 12.3 MB / 0.7214 GB Notification: Performance of Templates: time 0.004015/0.7299, allocations: 1.548 MB / 1.118 GB, free: 10.8 MB / 0.7214 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)