Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.557/2.557, allocations: 284.8 MB / 292.1 MB, free: 10.81 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.00165/0.00165, allocations: 181.2 kB / 360.3 MB, free: 7.57 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.885/1.885, allocations: 205.1 MB / 0.6187 GB, free: 13.22 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.002231/0.002228, allocations: 90.23 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2824/0.2847, allocations: 121.4 MB / 0.8502 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6686/0.9534, allocations: 115.2 MB / 0.9627 GB, free: 78.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2279/1.181, allocations: 139 MB / 1.099 GB, free: 1.844 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/1.182, allocations: 78.19 kB / 1.099 GB, free: 1.77 MB / 0.698 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.01557/1.197, allocations: 3.397 MB / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/1.197, allocations: 12.48 kB / 1.102 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.711e-05/1.198, allocations: 19.72 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/1.198, allocations: 228.5 kB / 1.102 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/1.198, allocations: 0 / 1.102 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/1.198, allocations: 4 kB / 1.102 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000154/1.198, allocations: 32.59 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/1.198, allocations: 77.61 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/1.198, allocations: 1.875 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/1.198, allocations: 11.91 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/1.199, allocations: 0.6562 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008849/1.199, allocations: 361.7 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.376e-05/1.199, allocations: 24.36 kB / 1.103 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.116e-05/1.2, allocations: 16.91 kB / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/1.2, allocations: 4.562 kB / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/1.2, allocations: 73.12 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.953e-06/1.2, allocations: 0 / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002389/1.2, allocations: 66 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/1.2, allocations: 77.11 kB / 1.103 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/1.2, allocations: 202 kB / 1.103 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/1.201, allocations: 29.7 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.062e-05/1.201, allocations: 104 kB / 1.103 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/1.201, allocations: 11.91 kB / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/1.201, allocations: 0 / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001655/1.201, allocations: 330.8 kB / 1.104 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.254e-05/1.201, allocations: 8 kB / 1.104 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.219e-05/1.201, allocations: 28 kB / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.117e-05/1.201, allocations: 16.02 kB / 1.104 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/1.201, allocations: 3.906 kB / 1.104 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001825/1.201, allocations: 65.45 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/1.201, allocations: 4.625 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.201, allocations: 5.594 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/1.201, allocations: 3.984 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/1.202, allocations: 20.08 kB / 1.104 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/1.202, allocations: 3.938 kB / 1.104 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/1.202, allocations: 19.92 kB / 1.104 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/1.202, allocations: 4 kB / 1.104 GB, free: 12.41 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 0.0001057/1.202, allocations: 104.8 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/1.202, allocations: 24.38 kB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/1.202, allocations: 17.02 kB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/1.202, allocations: 0 / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.202, allocations: 4 kB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.202, allocations: 0 / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/1.202, allocations: 200.3 kB / 1.104 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.202, allocations: 0 / 1.104 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/1.203, allocations: 20.12 kB / 1.104 GB, free: 12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/1.203, allocations: 3.906 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/1.203, allocations: 3.984 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.203, allocations: 2.625 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/1.203, allocations: 0 / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002055/1.203, allocations: 84.94 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003415/1.203, allocations: 481.2 kB / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.204e-05/1.203, allocations: 92.92 kB / 1.105 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/1.203, allocations: 3.984 kB / 1.105 GB, free: 11.28 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/1.203, allocations: 12 kB / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/1.204, allocations: 7.984 kB / 1.105 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/1.204, allocations: 8 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0003024/1.204, allocations: 160.7 kB / 1.105 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001218/1.205, allocations: 23.91 kB / 1.105 GB, free: 11.07 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.00033/1.205, allocations: 124 kB / 1.105 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001724/1.206, allocations: 29.53 kB / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.206, allocations: 0 / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.301e-05/1.206, allocations: 8 kB / 1.105 GB, free: 10.92 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/1.206, allocations: 32.64 kB / 1.105 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006906/1.207, allocations: 184.2 kB / 1.105 GB, free: 10.68 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/1.207, allocations: 0.7424 MB / 1.106 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of SimCode: time 1.072e-06/1.207, allocations: 7.875 kB / 1.106 GB, free: 9.906 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)