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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.384/1.384, allocations: 285.5 MB / 292.8 MB, free: 10.4 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.001209/0.001209, allocations: 169.3 kB / 361.1 MB, free: 7.074 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.234/1.234, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0007862/0.0007862, allocations: 94.78 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.203/0.2038, allocations: 121.4 MB / 0.8512 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4926/0.6964, allocations: 115.3 MB / 0.9637 GB, free: 77.95 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.8457, allocations: 139.2 MB / 1.1 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.846, allocations: 76.55 kB / 1.1 GB, free: 0.6992 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.009421/0.8554, allocations: 3.402 MB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.8555, allocations: 8.5 kB / 1.103 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.8555, allocations: 19.72 kB / 1.103 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.8558, allocations: 235.7 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.8559, allocations: 0.625 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.8559, allocations: 5.922 kB / 1.103 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000101/0.856, allocations: 28 kB / 1.103 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.8561, allocations: 81.66 kB / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.8562, allocations: 0 / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.8562, allocations: 5.25 kB / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.8562, allocations: 0 / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005807/0.8568, allocations: 365.4 kB / 1.104 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.025e-05/0.8568, allocations: 25.27 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.972e-05/0.8569, allocations: 19.95 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.8569, allocations: 0 / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/0.857, allocations: 78.14 kB / 1.104 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.857, allocations: 0 / 1.104 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.000154/0.8572, allocations: 61.52 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.8573, allocations: 85.03 kB / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.8575, allocations: 202 kB / 1.104 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.8575, allocations: 25.7 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.569e-05/0.8576, allocations: 108 kB / 1.104 GB, free: 11.88 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.8576, allocations: 7.906 kB / 1.104 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.8576, allocations: 0 / 1.104 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.8577, allocations: 326.8 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.985e-05/0.8578, allocations: 8 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.582e-05/0.8578, allocations: 31.44 kB / 1.105 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.634e-05/0.8578, allocations: 11.98 kB / 1.105 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.8578, allocations: 3.906 kB / 1.105 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001031/0.8579, allocations: 69.47 kB / 1.105 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.858, allocations: 10.44 kB / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.858, allocations: 0 / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.858, allocations: 4.078 kB / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.8581, allocations: 15.98 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.8581, allocations: 4.094 kB / 1.105 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.724e-05/0.8582, allocations: 15.98 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.8583, allocations: 7.984 kB / 1.105 GB, free: 11.35 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 7.612e-05/0.8583, allocations: 104.9 kB / 1.105 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.8584, allocations: 19.72 kB / 1.105 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.787e-05/0.8584, allocations: 21.02 kB / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.8584, allocations: 0 / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.8584, allocations: 4 kB / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.8584, allocations: 2.062 kB / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.8586, allocations: 194.1 kB / 1.105 GB, free: 10.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.8586, allocations: 0 / 1.105 GB, free: 10.96 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.078e-05/0.8587, allocations: 15.98 kB / 1.105 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.8587, allocations: 7.906 kB / 1.105 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.8587, allocations: 0 / 1.105 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.8587, allocations: 0 / 1.105 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.8587, allocations: 0 / 1.105 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001238/0.8589, allocations: 88.92 kB / 1.105 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002421/0.8591, allocations: 477.2 kB / 1.106 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.874e-05/0.8592, allocations: 100.9 kB / 1.106 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.8592, allocations: 0 / 1.106 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.83e-05/0.8593, allocations: 15.98 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.8594, allocations: 0 / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.8594, allocations: 10.8 kB / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001491/0.8596, allocations: 160.7 kB / 1.106 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007579/0.8603, allocations: 23.91 kB / 1.106 GB, free: 10.02 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.0002317/0.8606, allocations: 138.5 kB / 1.106 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001061/0.8607, allocations: 23.94 kB / 1.106 GB, free: 9.867 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.8607, allocations: 0 / 1.106 GB, free: 9.867 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.194e-05/0.8607, allocations: 15.98 kB / 1.106 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.861, allocations: 31.39 kB / 1.106 GB, free: 9.82 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004632/0.8614, allocations: 184.2 kB / 1.106 GB, free: 9.617 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/0.8618, allocations: 0.7462 MB / 1.107 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.8618, allocations: 5.594 kB / 1.107 GB, free: 8.844 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)