Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.539/2.539, allocations: 248.6 MB / 255.9 MB, free: 360 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00163/0.00163, allocations: 184.3 kB / 315.1 MB, free: 7.773 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.266/2.266, allocations: 205.1 MB / 0.5658 GB, free: 25.49 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001276/0.001276, allocations: 83.44 kB / 0.67 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3393/0.3406, allocations: 112.4 MB / 0.7797 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5974/0.9381, allocations: 106.2 MB / 0.8835 GB, free: 77.27 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2613/1.199, allocations: 132.7 MB / 1.013 GB, free: 8.371 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004398/1.2, allocations: 79.94 kB / 1.013 GB, free: 8.293 MB / 0.6667 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.02381/1.224, allocations: 3.392 MB / 1.016 GB, free: 4.855 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/1.224, allocations: 8 kB / 1.016 GB, free: 4.848 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.924e-05/1.224, allocations: 19.81 kB / 1.016 GB, free: 4.828 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/1.224, allocations: 227.7 kB / 1.017 GB, free: 4.562 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/1.224, allocations: 11.91 kB / 1.017 GB, free: 4.551 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/1.224, allocations: 11.92 kB / 1.017 GB, free: 4.539 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001594/1.225, allocations: 28 kB / 1.017 GB, free: 4.512 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/1.225, allocations: 77.66 kB / 1.017 GB, free: 4.43 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/1.225, allocations: 0 / 1.017 GB, free: 4.43 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/1.225, allocations: 0 / 1.017 GB, free: 4.43 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/1.225, allocations: 4 kB / 1.017 GB, free: 4.426 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009232/1.226, allocations: 365 kB / 1.017 GB, free: 4.031 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 7.958e-05/1.226, allocations: 26.58 kB / 1.017 GB, free: 3.996 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.694e-05/1.226, allocations: 8.922 kB / 1.017 GB, free: 3.984 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/1.226, allocations: 0 / 1.017 GB, free: 3.984 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/1.226, allocations: 92.95 kB / 1.017 GB, free: 3.875 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.894e-06/1.226, allocations: 0 / 1.017 GB, free: 3.875 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0002352/1.227, allocations: 57.5 kB / 1.017 GB, free: 3.812 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/1.227, allocations: 85.11 kB / 1.017 GB, free: 3.711 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/1.227, allocations: 198.1 kB / 1.018 GB, free: 3.512 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/1.227, allocations: 25.7 kB / 1.018 GB, free: 3.48 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.363e-05/1.227, allocations: 112 kB / 1.018 GB, free: 3.367 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/1.227, allocations: 7.812 kB / 1.018 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/1.227, allocations: 0 / 1.018 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001838/1.227, allocations: 326.8 kB / 1.018 GB, free: 3.031 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.695e-05/1.227, allocations: 4 kB / 1.018 GB, free: 3.027 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.538e-05/1.228, allocations: 43.36 kB / 1.018 GB, free: 2.973 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.657e-05/1.228, allocations: 12 kB / 1.018 GB, free: 2.961 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/1.228, allocations: 0 / 1.018 GB, free: 2.961 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001794/1.228, allocations: 65.44 kB / 1.018 GB, free: 2.891 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.228, allocations: 4 kB / 1.018 GB, free: 2.887 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/1.228, allocations: 7.922 kB / 1.018 GB, free: 2.879 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/1.228, allocations: 8.125 kB / 1.018 GB, free: 2.871 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/1.228, allocations: 15.98 kB / 1.018 GB, free: 2.855 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/1.228, allocations: 0 / 1.018 GB, free: 2.855 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/1.228, allocations: 23.89 kB / 1.018 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/1.228, allocations: 0 / 1.018 GB, free: 2.832 MB / 0.6667 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.0001201/1.228, allocations: 109 kB / 1.018 GB, free: 2.719 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/1.228, allocations: 15.81 kB / 1.018 GB, free: 2.703 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.284e-05/1.229, allocations: 17.02 kB / 1.018 GB, free: 2.684 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/1.229, allocations: 4.078 kB / 1.018 GB, free: 2.68 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.229, allocations: 0 / 1.018 GB, free: 2.68 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/1.229, allocations: 3.984 kB / 1.018 GB, free: 2.676 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/1.229, allocations: 194 kB / 1.019 GB, free: 2.449 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/1.229, allocations: 4 kB / 1.019 GB, free: 2.445 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/1.229, allocations: 15.98 kB / 1.019 GB, free: 2.43 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.229, allocations: 0 / 1.019 GB, free: 2.43 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/1.229, allocations: 3.984 kB / 1.019 GB, free: 2.426 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/1.229, allocations: 7.938 kB / 1.019 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.229, allocations: 0 / 1.019 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001926/1.229, allocations: 92.84 kB / 1.019 GB, free: 2.309 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004322/1.23, allocations: 465.3 kB / 1.019 GB, free: 1.832 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/1.23, allocations: 96.91 kB / 1.019 GB, free: 1.719 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/1.23, allocations: 0 / 1.019 GB, free: 1.719 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/1.23, allocations: 19.98 kB / 1.019 GB, free: 1.699 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/1.23, allocations: 11.89 kB / 1.019 GB, free: 1.688 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.548e-05/1.23, allocations: 8 kB / 1.019 GB, free: 1.68 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002571/1.231, allocations: 156.6 kB / 1.019 GB, free: 1.527 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001143/1.232, allocations: 32.11 kB / 1.019 GB, free: 1.496 MB / 0.6667 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.0003672/1.232, allocations: 125.7 kB / 1.02 GB, free: 1.371 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001734/1.232, allocations: 19.98 kB / 1.02 GB, free: 1.352 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.232, allocations: 0 / 1.02 GB, free: 1.352 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 5.967e-05/1.232, allocations: 15.94 kB / 1.02 GB, free: 1.336 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/1.233, allocations: 37.39 kB / 1.02 GB, free: 1.293 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007049/1.234, allocations: 191.3 kB / 1.02 GB, free: 1.082 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/1.234, allocations: 0.7383 MB / 1.021 GB, free: 328 kB / 0.6667 GB Notification: Performance of SimCode: time 9.12e-07/1.234, allocations: 0 / 1.021 GB, free: 328 kB / 0.6667 GB