Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") [: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.3-maint.7.0.x/package.mo): time 1.236/1.236, allocations: 249.4 MB / 256.7 MB, free: 6.91 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.001019/0.001019, allocations: 188.3 kB / 316 MB, free: 3.543 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.217/1.217, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0009118/0.0009118, allocations: 91.98 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.714e-06/7.745e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1675, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4666/0.6342, allocations: 133.5 MB / 1.015 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.6344, allocations: 91.62 kB / 1.015 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.008646/0.643, allocations: 2.904 MB / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.6431, allocations: 0 / 1.018 GB, free: 2.699 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.0003343/0.6434, allocations: 432.2 kB / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.6434, allocations: 12.03 kB / 1.018 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.6435, allocations: 7.906 kB / 1.018 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.6436, allocations: 173.1 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.6436, allocations: 0 / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.6436, allocations: 3.906 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.177e-05/0.6437, allocations: 41.98 kB / 1.018 GB, free: 1.965 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.51e-05/0.6438, allocations: 63.73 kB / 1.019 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.6439, allocations: 0 / 1.019 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.6439, allocations: 4 kB / 1.019 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.6439, allocations: 0 / 1.019 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003329/0.6442, allocations: 270.8 kB / 1.019 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.185e-05/0.6443, allocations: 52.5 kB / 1.019 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.534e-05/0.6444, allocations: 46.97 kB / 1.019 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.6444, allocations: 3.984 kB / 1.019 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.6444, allocations: 34.56 kB / 1.019 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.6444, allocations: 0 / 1.019 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002197/0.6446, allocations: 108.1 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.6447, allocations: 84.3 kB / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.243e-05/0.6448, allocations: 112.3 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.6448, allocations: 29.7 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.6448, allocations: 80.14 kB / 1.019 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.6448, allocations: 7.469 kB / 1.019 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.6449, allocations: 4 kB / 1.019 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.745e-05/0.6449, allocations: 322.8 kB / 1.02 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.226e-05/0.645, allocations: 58.05 kB / 1.02 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.719e-05/0.6451, allocations: 54.28 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.896e-05/0.6452, allocations: 49.47 kB / 1.02 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.6452, allocations: 0 / 1.02 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001912/0.6454, allocations: 146.6 kB / 1.02 GB, free: 480 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.507e-06/0.6454, allocations: 4 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6454, allocations: 3.984 kB / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.6454, allocations: 3.906 kB / 1.02 GB, free: 468 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.112e-05/0.6455, allocations: 8 kB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.6455, allocations: 3.984 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.538e-05/0.6455, allocations: 11.94 kB / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.6456, allocations: 0 / 1.02 GB, free: 444 kB / 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 7.042e-05/0.6456, allocations: 138.2 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.6457, allocations: 7.906 kB / 1.02 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.145e-05/0.6457, allocations: 11.94 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.6457, allocations: 4 kB / 1.02 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.6457, allocations: 0 / 1.02 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6457, allocations: 3.906 kB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.6459, allocations: 149.2 kB / 1.02 GB, free: 84 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6459, allocations: 0 / 1.02 GB, free: 84 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.918e-05/0.6459, allocations: 7.938 kB / 1.02 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.6459, allocations: 0 / 1.02 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.6459, allocations: 4 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.6459, allocations: 0 / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6459, allocations: 7.984 kB / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001824/0.6461, allocations: 205.2 kB / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 2.813e-05/0.6462, allocations: 81.02 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.6462, allocations: 3.25 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.6463, allocations: 8 kB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.6463, allocations: 7.984 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.6463, allocations: 4.031 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.406e-05/0.6464, allocations: 98.39 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00027/0.6467, allocations: 63.94 kB / 1.021 GB, free: 15.59 MB / 0.6511 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.0002418/0.6469, allocations: 166.5 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001905/0.6471, allocations: 156.2 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.6471, allocations: 0 / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.323e-05/0.6472, allocations: 74 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001203/0.6473, allocations: 4.062 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002379/0.6476, allocations: 121.9 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.6478, allocations: 0.6989 MB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.6478, allocations: 0 / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of Templates: time 0.003254/0.6511, allocations: 1.576 MB / 1.023 GB, free: 12.84 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches