Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [: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.208/1.208, allocations: 249.4 MB / 256.7 MB, free: 7.09 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.0009899/0.0009899, allocations: 173.3 kB / 316 MB, free: 3.539 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.064/1.064, 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.0008538/0.0008532, allocations: 82.58 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.508e-06/9.628e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1512, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.5645, allocations: 132.5 MB / 1.014 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.5648, allocations: 75.45 kB / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006426/0.5712, allocations: 2.011 MB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.5712, allocations: 4 kB / 1.016 GB, free: 4.438 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002773/0.5715, allocations: 346 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.5716, allocations: 8.031 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.5716, allocations: 7.984 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.501e-05/0.5717, allocations: 166.9 kB / 1.017 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.5717, allocations: 4 kB / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.5717, allocations: 6.812 kB / 1.017 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.737e-05/0.5718, allocations: 19.38 kB / 1.017 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.142e-05/0.5719, allocations: 45.61 kB / 1.017 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.5719, allocations: 0 / 1.017 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.5719, allocations: 4 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.5719, allocations: 3.75 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.5721, allocations: 144.6 kB / 1.017 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.184e-05/0.5721, allocations: 37.47 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.154e-05/0.5722, allocations: 23.92 kB / 1.017 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003939/0.5726, allocations: 0.5544 MB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.5726, allocations: 30.56 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.5726, allocations: 0 / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.001551/0.5742, allocations: 0.855 MB / 1.018 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.5742, allocations: 51.41 kB / 1.018 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.659e-05/0.5743, allocations: 89 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.5743, allocations: 25.7 kB / 1.018 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.273e-05/0.5743, allocations: 84.27 kB / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.901e-05/0.5744, allocations: 49.83 kB / 1.019 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.5744, allocations: 7.875 kB / 1.019 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.98e-05/0.5745, allocations: 322.3 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.712e-05/0.5745, allocations: 19.62 kB / 1.019 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.152e-05/0.5746, allocations: 54.67 kB / 1.019 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.968e-05/0.5747, allocations: 33.98 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.5747, allocations: 0 / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002009/0.5749, allocations: 113.4 kB / 1.019 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/0.5749, allocations: 4 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.5749, allocations: 0 / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.5749, allocations: 4 kB / 1.019 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5751, allocations: 36.05 kB / 1.019 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.5751, allocations: 3.906 kB / 1.019 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.747e-05/0.5751, allocations: 4 kB / 1.019 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.5752, allocations: 4 kB / 1.019 GB, free: 0.9805 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 5.878e-05/0.5752, allocations: 108.5 kB / 1.019 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.5752, allocations: 7.906 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/0.5755, allocations: 124.6 kB / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.5755, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5755, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5755, allocations: 4 kB / 1.019 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.576, allocations: 386.2 kB / 1.02 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.576, allocations: 3.938 kB / 1.02 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.5761, allocations: 31.5 kB / 1.02 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.5761, allocations: 3.984 kB / 1.02 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.5761, allocations: 4.125 kB / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5762, allocations: 4 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5762, allocations: 4 kB / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003118/0.5765, allocations: 311.2 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.5765, allocations: 85 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.5765, allocations: 7.938 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.96e-05/0.5766, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.248e-05/0.5767, allocations: 11.98 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.5767, allocations: 8.062 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.181e-05/0.5767, allocations: 79.34 kB / 1.02 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002472/0.577, allocations: 28.14 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001718/0.5772, allocations: 143 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.5773, allocations: 74.12 kB / 1.02 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.5773, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.261e-05/0.5774, allocations: 46.64 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.5775, allocations: 12.48 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.5779, allocations: 144.8 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.5781, allocations: 0.7076 MB / 1.021 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of SimCode: time 3.01e-07/0.5781, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of Templates: time 0.002743/0.5809, allocations: 1.117 MB / 1.022 GB, free: 13.5 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,x,y,der(x),der(y),d2y,d3y Variables in the result:d2y,d3y,delta,der(x),der(y),time,x,y