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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.633/1.633, allocations: 289.8 MB / 297.1 MB, free: 6.688 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.001158/0.001158, allocations: 188.4 kB / 366.3 MB, free: 1.98 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.538/1.538, allocations: 205.1 MB / 0.6256 GB, free: 5.812 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.0009468/0.0009472, allocations: 85.69 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2979/0.2989, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6819/0.9808, allocations: 116.3 MB / 0.9726 GB, free: 68.34 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1883/1.169, allocations: 140.2 MB / 1.11 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/1.17, allocations: 80.56 kB / 1.11 GB, free: 8.234 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.009894/1.179, allocations: 3.394 MB / 1.113 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/1.179, allocations: 12 kB / 1.113 GB, free: 4.816 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/1.18, allocations: 19.72 kB / 1.113 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/1.18, allocations: 240.8 kB / 1.113 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/1.18, allocations: 0 / 1.113 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/1.18, allocations: 7.984 kB / 1.113 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.488e-05/1.18, allocations: 24 kB / 1.113 GB, free: 4.488 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/1.18, allocations: 81.66 kB / 1.113 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/1.18, allocations: 0 / 1.113 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/1.18, allocations: 11.89 kB / 1.113 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/1.18, allocations: 0 / 1.113 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005633/1.181, allocations: 357 kB / 1.114 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.485e-05/1.181, allocations: 30.5 kB / 1.114 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/1.181, allocations: 12.92 kB / 1.114 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/1.181, allocations: 0 / 1.114 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001225/1.181, allocations: 73.12 kB / 1.114 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 7.42e-07/1.181, allocations: 1.594 kB / 1.114 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001776/1.181, allocations: 65.5 kB / 1.114 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/1.181, allocations: 81.11 kB / 1.114 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002321/1.182, allocations: 206 kB / 1.114 GB, free: 3.484 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/1.182, allocations: 25.7 kB / 1.114 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/1.182, allocations: 104 kB / 1.114 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/1.182, allocations: 15.89 kB / 1.114 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/1.182, allocations: 0 / 1.114 GB, free: 3.332 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001187/1.182, allocations: 322.8 kB / 1.115 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.484e-05/1.182, allocations: 8 kB / 1.115 GB, free: 3 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.588e-05/1.182, allocations: 31.44 kB / 1.115 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.029e-05/1.182, allocations: 15.98 kB / 1.115 GB, free: 2.941 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.182, allocations: 3.906 kB / 1.115 GB, free: 2.938 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001097/1.182, allocations: 65.44 kB / 1.115 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/1.182, allocations: 4 kB / 1.115 GB, free: 2.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/1.182, allocations: 8.125 kB / 1.115 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/1.182, allocations: 0 / 1.115 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/1.182, allocations: 22.17 kB / 1.115 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/1.182, allocations: 0 / 1.115 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/1.182, allocations: 19.98 kB / 1.115 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/1.182, allocations: 0 / 1.115 GB, free: 2.816 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 6.771e-05/1.182, allocations: 105 kB / 1.115 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/1.182, allocations: 19.72 kB / 1.115 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.019e-05/1.182, allocations: 20.95 kB / 1.115 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/1.182, allocations: 0 / 1.115 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/1.183, allocations: 0 / 1.115 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/1.183, allocations: 144 / 1.115 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/1.183, allocations: 202.1 kB / 1.115 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.183, allocations: 7.984 kB / 1.115 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.343e-05/1.183, allocations: 11.98 kB / 1.115 GB, free: 2.402 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.183, allocations: 7.906 kB / 1.115 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/1.183, allocations: 0 / 1.115 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.183, allocations: 0 / 1.115 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.183, allocations: 0 / 1.115 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001157/1.183, allocations: 88.94 kB / 1.115 GB, free: 2.289 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000218/1.183, allocations: 477.2 kB / 1.116 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.721e-05/1.183, allocations: 100.9 kB / 1.116 GB, free: 1.684 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/1.183, allocations: 0 / 1.116 GB, free: 1.684 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/1.183, allocations: 15.98 kB / 1.116 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/1.183, allocations: 4 kB / 1.116 GB, free: 1.664 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/1.183, allocations: 7.984 kB / 1.116 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001819/1.184, allocations: 162 kB / 1.116 GB, free: 1.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008293/1.184, allocations: 28.03 kB / 1.116 GB, free: 1.473 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.0002651/1.185, allocations: 123.1 kB / 1.116 GB, free: 1.348 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000108/1.185, allocations: 23.94 kB / 1.116 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.185, allocations: 0 / 1.116 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.524e-05/1.185, allocations: 15.98 kB / 1.116 GB, free: 1.309 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/1.185, allocations: 36.19 kB / 1.116 GB, free: 1.273 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004836/1.186, allocations: 179.4 kB / 1.116 GB, free: 1.074 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000399/1.186, allocations: 0.7383 MB / 1.117 GB, free: 320 kB / 0.7136 GB Notification: Performance of SimCode: time 3.01e-07/1.186, allocations: 0 / 1.117 GB, free: 320 kB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)