Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.183/2.183, allocations: 248.6 MB / 255.9 MB, free: 7.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001818/0.001818, allocations: 196 kB / 315.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.876/1.876, allocations: 205.1 MB / 0.5658 GB, free: 384 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 87.28 kB / 0.67 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.459/0.4603, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.725, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6244/1.349, allocations: 133.3 MB / 1.014 GB, free: 7.02 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003476/1.35, allocations: 87.81 kB / 1.014 GB, free: 6.969 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.01642/1.366, allocations: 3.341 MB / 1.017 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.366, allocations: 8 kB / 1.017 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.801e-05/1.366, allocations: 8.969 kB / 1.017 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/1.367, allocations: 163.1 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/1.367, allocations: 4 kB / 1.017 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/1.367, allocations: 4 kB / 1.017 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001527/1.367, allocations: 42.52 kB / 1.017 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/1.367, allocations: 71.55 kB / 1.017 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/1.367, allocations: 0 / 1.017 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/1.367, allocations: 0 / 1.017 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/1.367, allocations: 4 kB / 1.017 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/1.368, allocations: 259 kB / 1.018 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/1.368, allocations: 60.19 kB / 1.018 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/1.368, allocations: 42.55 kB / 1.018 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/1.368, allocations: 3.938 kB / 1.018 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/1.368, allocations: 32.19 kB / 1.018 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/1.368, allocations: 0 / 1.018 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0003527/1.368, allocations: 109.6 kB / 1.018 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/1.368, allocations: 81.14 kB / 1.018 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/1.369, allocations: 119.3 kB / 1.018 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/1.369, allocations: 25.7 kB / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.003e-05/1.369, allocations: 87.95 kB / 1.018 GB, free: 2.809 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/1.369, allocations: 3.906 kB / 1.018 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-06/1.369, allocations: 0 / 1.018 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000142/1.369, allocations: 326.7 kB / 1.018 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/1.369, allocations: 45.17 kB / 1.018 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/1.369, allocations: 60.53 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/1.369, allocations: 50.53 kB / 1.019 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/1.369, allocations: 0 / 1.019 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003671/1.37, allocations: 145.9 kB / 1.019 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.37, allocations: 8 kB / 1.019 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/1.37, allocations: 0 / 1.019 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/1.37, allocations: 3.984 kB / 1.019 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/1.37, allocations: 11.89 kB / 1.019 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/1.37, allocations: 0.5469 kB / 1.019 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.695e-05/1.37, allocations: 12 kB / 1.019 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/1.37, allocations: 0.875 kB / 1.019 GB, free: 2.199 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.0001131/1.37, allocations: 138.3 kB / 1.019 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/1.37, allocations: 7.906 kB / 1.019 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.389e-05/1.37, allocations: 4 kB / 1.019 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/1.37, allocations: 0 / 1.019 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/1.37, allocations: 7.938 kB / 1.019 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/1.37, allocations: 0 / 1.019 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/1.371, allocations: 156.9 kB / 1.019 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/1.371, allocations: 4 kB / 1.019 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.827e-05/1.371, allocations: 8 kB / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/1.371, allocations: 0 / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/1.371, allocations: 0 / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/1.371, allocations: 0 / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/1.371, allocations: 4 kB / 1.019 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003104/1.371, allocations: 215.7 kB / 1.019 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004199/1.371, allocations: 0.572 MB / 1.02 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/1.371, allocations: 81.02 kB / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/1.372, allocations: 0 / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/1.372, allocations: 15.55 kB / 1.02 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/1.372, allocations: 12.05 kB / 1.02 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/1.372, allocations: 0 / 1.02 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.137e-05/1.372, allocations: 98.27 kB / 1.02 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001329/1.373, allocations: 63.84 kB / 1.02 GB, free: 0.7773 MB / 0.6355 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 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0004146/1.374, allocations: 170.7 kB / 1.02 GB, free: 0.6055 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000326/1.374, allocations: 155.4 kB / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.374, allocations: 0 / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/1.374, allocations: 72 kB / 1.02 GB, free: 404 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/1.374, allocations: 7.984 kB / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/1.375, allocations: 129.4 kB / 1.021 GB, free: 256 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/1.375, allocations: 0.6993 MB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of SimCode: time 7.12e-07/1.375, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB