Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [: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 10.0.0-master/package.mo): time 1.801/1.801, allocations: 390.4 MB / 397.7 MB, free: 1.938 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009755/0.0009756, allocations: 191.5 kB / 490.8 MB, free: 7.52 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.3 MB / 0.7863 GB, free: 300 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009071/0.0009072, allocations: 92.78 kB / 0.9264 GB, free: 0.6797 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 0.3876/0.3885, allocations: 149.1 MB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.5891, allocations: 143 MB / 1.212 GB, free: 10.5 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5323/1.121, allocations: 151.2 MB / 1.359 GB, free: 10.84 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/1.122, allocations: 87.94 kB / 1.359 GB, free: 10.75 MB / 0.8311 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.009381/1.131, allocations: 3.446 MB / 1.363 GB, free: 7.281 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/1.131, allocations: 8 kB / 1.363 GB, free: 7.273 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.428e-05/1.131, allocations: 19.72 kB / 1.363 GB, free: 7.254 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/1.131, allocations: 240.3 kB / 1.363 GB, free: 6.977 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/1.131, allocations: 0.7656 kB / 1.363 GB, free: 6.977 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/1.132, allocations: 8 kB / 1.363 GB, free: 6.969 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001032/1.132, allocations: 39.98 kB / 1.363 GB, free: 6.93 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/1.132, allocations: 77.67 kB / 1.363 GB, free: 6.848 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/1.132, allocations: 0 / 1.363 GB, free: 6.848 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/1.132, allocations: 0 / 1.363 GB, free: 6.848 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/1.132, allocations: 3.906 kB / 1.363 GB, free: 6.844 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005915/1.132, allocations: 361 kB / 1.363 GB, free: 6.453 MB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 5.139e-05/1.132, allocations: 26.58 kB / 1.363 GB, free: 6.418 MB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.014e-05/1.133, allocations: 12.92 kB / 1.363 GB, free: 6.402 MB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/1.133, allocations: 0 / 1.363 GB, free: 6.402 MB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/1.133, allocations: 85.03 kB / 1.364 GB, free: 6.301 MB / 0.8311 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/1.133, allocations: 0 / 1.364 GB, free: 6.301 MB / 0.8311 GB Notification: Performance of matching and sorting (n=3): time 0.0001634/1.133, allocations: 57.5 kB / 1.364 GB, free: 6.238 MB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/1.133, allocations: 81.11 kB / 1.364 GB, free: 6.141 MB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/1.133, allocations: 199.2 kB / 1.364 GB, free: 5.941 MB / 0.8311 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/1.133, allocations: 33.64 kB / 1.364 GB, free: 5.902 MB / 0.8311 GB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/1.133, allocations: 108 kB / 1.364 GB, free: 5.793 MB / 0.8311 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/1.133, allocations: 7.906 kB / 1.364 GB, free: 5.785 MB / 0.8311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/1.133, allocations: 0 / 1.364 GB, free: 5.785 MB / 0.8311 GB Notification: Performance of setup shared object (initialization): time 0.0001093/1.133, allocations: 322.8 kB / 1.364 GB, free: 5.461 MB / 0.8311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.323e-05/1.133, allocations: 8 kB / 1.364 GB, free: 5.453 MB / 0.8311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.919e-05/1.133, allocations: 43.36 kB / 1.364 GB, free: 5.398 MB / 0.8311 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.644e-05/1.133, allocations: 9.188 kB / 1.364 GB, free: 5.391 MB / 0.8311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.133, allocations: 0 / 1.364 GB, free: 5.391 MB / 0.8311 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001126/1.134, allocations: 69.44 kB / 1.364 GB, free: 5.316 MB / 0.8311 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/1.134, allocations: 4 kB / 1.364 GB, free: 5.312 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/1.134, allocations: 3.906 kB / 1.364 GB, free: 5.309 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/1.134, allocations: 4.125 kB / 1.364 GB, free: 5.305 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/1.134, allocations: 15.98 kB / 1.365 GB, free: 5.289 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/1.134, allocations: 4 kB / 1.365 GB, free: 5.285 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.938e-05/1.134, allocations: 19.98 kB / 1.365 GB, free: 5.266 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/1.134, allocations: 0 / 1.365 GB, free: 5.266 MB / 0.8311 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.92e-05/1.134, allocations: 104.9 kB / 1.365 GB, free: 5.156 MB / 0.8311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/1.134, allocations: 23.7 kB / 1.365 GB, free: 5.133 MB / 0.8311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/1.134, allocations: 17.03 kB / 1.365 GB, free: 5.113 MB / 0.8311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/1.134, allocations: 0 / 1.365 GB, free: 5.113 MB / 0.8311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/1.134, allocations: 0 / 1.365 GB, free: 5.113 MB / 0.8311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/1.134, allocations: 0 / 1.365 GB, free: 5.113 MB / 0.8311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/1.134, allocations: 194.1 kB / 1.365 GB, free: 4.887 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/1.134, allocations: 0 / 1.365 GB, free: 4.887 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.971e-05/1.134, allocations: 19.98 kB / 1.365 GB, free: 4.867 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/1.134, allocations: 7.922 kB / 1.365 GB, free: 4.859 MB / 0.8311 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/1.134, allocations: 3.906 kB / 1.365 GB, free: 4.855 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/1.134, allocations: 3.938 kB / 1.365 GB, free: 4.852 MB / 0.8311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.134, allocations: 0 / 1.365 GB, free: 4.852 MB / 0.8311 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001181/1.134, allocations: 92.94 kB / 1.365 GB, free: 4.742 MB / 0.8311 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002178/1.135, allocations: 469.2 kB / 1.365 GB, free: 4.262 MB / 0.8311 GB Notification: Performance of postOpt removeConstants (simulation): time 6.65e-05/1.135, allocations: 96.91 kB / 1.366 GB, free: 4.148 MB / 0.8311 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/1.135, allocations: 0 / 1.366 GB, free: 4.148 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/1.135, allocations: 19.98 kB / 1.366 GB, free: 4.129 MB / 0.8311 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/1.135, allocations: 3.984 kB / 1.366 GB, free: 4.125 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/1.135, allocations: 8 kB / 1.366 GB, free: 4.117 MB / 0.8311 GB Notification: Performance of sort global known variables: time 0.000135/1.135, allocations: 163.5 kB / 1.366 GB, free: 3.957 MB / 0.8311 GB Notification: Performance of remove unused functions: time 0.0007554/1.136, allocations: 27.89 kB / 1.366 GB, free: 3.93 MB / 0.8311 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.0002657/1.136, allocations: 130.2 kB / 1.366 GB, free: 3.801 MB / 0.8311 GB Notification: Performance of simCode: created initialization part: time 9.854e-05/1.136, allocations: 23.98 kB / 1.366 GB, free: 3.777 MB / 0.8311 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.136, allocations: 0 / 1.366 GB, free: 3.777 MB / 0.8311 GB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/1.136, allocations: 15.94 kB / 1.366 GB, free: 3.762 MB / 0.8311 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/1.137, allocations: 30.39 kB / 1.366 GB, free: 3.73 MB / 0.8311 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004218/1.137, allocations: 191.5 kB / 1.366 GB, free: 3.52 MB / 0.8311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/1.137, allocations: 0.7422 MB / 1.367 GB, free: 2.754 MB / 0.8311 GB Notification: Performance of SimCode: time 3.5e-07/1.137, allocations: 0 / 1.367 GB, free: 2.754 MB / 0.8311 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)