Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.544/1.544, allocations: 285.5 MB / 292.8 MB, free: 9.871 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.001103/0.001103, allocations: 185.2 kB / 361.1 MB, free: 360 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 0.6195 GB, free: 2.863 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000854/0.000854, allocations: 97.06 kB / 0.7326 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 8.616e-06/8.726e-06, allocations: 1.188 kB / 0.8511 GB, free: 151.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2384, allocations: 115.3 MB / 0.9637 GB, free: 56.38 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6883/0.9267, allocations: 139.2 MB / 1.1 GB, free: 24 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.927, allocations: 80.41 kB / 1.1 GB, free: 24 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.008272/0.9353, allocations: 2.959 MB / 1.103 GB, free: 23.86 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.65e-05/0.9354, allocations: 7.875 kB / 1.103 GB, free: 23.85 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.9358, allocations: 435.7 kB / 1.103 GB, free: 23.47 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.9359, allocations: 8.062 kB / 1.103 GB, free: 23.47 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.936, allocations: 23.22 kB / 1.103 GB, free: 23.46 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.9362, allocations: 230.7 kB / 1.103 GB, free: 23.24 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.9362, allocations: 0 / 1.103 GB, free: 23.24 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.9363, allocations: 3.844 kB / 1.103 GB, free: 23.24 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000103/0.9364, allocations: 33.97 kB / 1.103 GB, free: 23.24 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/0.9365, allocations: 82.92 kB / 1.103 GB, free: 23.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.9366, allocations: 0 / 1.103 GB, free: 23.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.9366, allocations: 0 / 1.103 GB, free: 23.2 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.9366, allocations: 11.59 kB / 1.103 GB, free: 23.2 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.9371, allocations: 355 kB / 1.104 GB, free: 22.95 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.687e-05/0.9372, allocations: 25.02 kB / 1.104 GB, free: 22.92 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.19e-05/0.9372, allocations: 19.66 kB / 1.104 GB, free: 22.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.9372, allocations: 4 kB / 1.104 GB, free: 22.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.9373, allocations: 76.61 kB / 1.104 GB, free: 22.84 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.914e-06/0.9374, allocations: 7.922 kB / 1.104 GB, free: 22.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001659/0.9375, allocations: 58.3 kB / 1.104 GB, free: 22.8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.9376, allocations: 78.36 kB / 1.104 GB, free: 22.7 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.9378, allocations: 198.8 kB / 1.104 GB, free: 22.61 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.9378, allocations: 33.58 kB / 1.104 GB, free: 22.57 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.9378, allocations: 106.1 kB / 1.104 GB, free: 22.48 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.9378, allocations: 9.219 kB / 1.104 GB, free: 22.48 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.9379, allocations: 0 / 1.104 GB, free: 22.48 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.9379, allocations: 327.7 kB / 1.105 GB, free: 22.16 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.169e-05/0.9379, allocations: 7 kB / 1.105 GB, free: 22.16 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/0.938, allocations: 31.69 kB / 1.105 GB, free: 22.13 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.785e-05/0.938, allocations: 13.22 kB / 1.105 GB, free: 22.13 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.938, allocations: 3.938 kB / 1.105 GB, free: 22.12 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.561e-05/0.9381, allocations: 66.11 kB / 1.105 GB, free: 22.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.9381, allocations: 3.875 kB / 1.105 GB, free: 22.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.9382, allocations: 3.906 kB / 1.105 GB, free: 22.08 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.9382, allocations: 7.812 kB / 1.105 GB, free: 22.08 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.9383, allocations: 23.41 kB / 1.105 GB, free: 22.07 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.9383, allocations: 0 / 1.105 GB, free: 22.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.42e-05/0.9384, allocations: 15.38 kB / 1.105 GB, free: 22.07 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.9384, allocations: 0 / 1.105 GB, free: 22.07 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 5.965e-05/0.9385, allocations: 110 kB / 1.105 GB, free: 21.96 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.9385, allocations: 19.47 kB / 1.105 GB, free: 21.95 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.9386, allocations: 17.16 kB / 1.105 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.9386, allocations: 0 / 1.105 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.9386, allocations: 0 / 1.105 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.9386, allocations: 0 / 1.105 GB, free: 21.94 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.9387, allocations: 196.5 kB / 1.105 GB, free: 21.78 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.9387, allocations: 0 / 1.105 GB, free: 21.78 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.566e-05/0.9388, allocations: 19.38 kB / 1.105 GB, free: 21.77 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.9388, allocations: 0 / 1.105 GB, free: 21.77 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.9389, allocations: 3.906 kB / 1.105 GB, free: 21.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.9389, allocations: 0 / 1.105 GB, free: 21.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9389, allocations: 0 / 1.105 GB, free: 21.77 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000133/0.939, allocations: 92.27 kB / 1.105 GB, free: 21.7 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.31e-05/0.9391, allocations: 97.27 kB / 1.105 GB, free: 21.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.9391, allocations: 7.125 kB / 1.105 GB, free: 21.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.9392, allocations: 14.72 kB / 1.105 GB, free: 21.59 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.9392, allocations: 6.734 kB / 1.105 GB, free: 21.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.9393, allocations: 8.469 kB / 1.105 GB, free: 21.58 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001222/0.9394, allocations: 162.9 kB / 1.105 GB, free: 21.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002088/0.9396, allocations: 23.38 kB / 1.106 GB, free: 21.5 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.0002236/0.9398, allocations: 130.2 kB / 1.106 GB, free: 21.4 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001067/0.94, allocations: 22.16 kB / 1.106 GB, free: 21.4 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.94, allocations: 4.188 kB / 1.106 GB, free: 21.39 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.94, allocations: 13.72 kB / 1.106 GB, free: 21.39 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.9403, allocations: 33.86 kB / 1.106 GB, free: 21.39 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004036/0.9407, allocations: 186.5 kB / 1.106 GB, free: 21.29 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.9411, allocations: 0.7408 MB / 1.107 GB, free: 36.58 MB / 0.7292 GB Notification: Performance of SimCode: time 2.91e-07/0.9411, allocations: 3.188 kB / 1.107 GB, free: 36.58 MB / 0.7292 GB Notification: Performance of Templates: time 0.004096/0.9452, allocations: 1.564 MB / 1.108 GB, free: 36.4 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)