Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.931/1.931, allocations: 387.2 MB / 394.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 176.9 kB / 487 MB, free: 5.375 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.3 MB / 0.7819 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009202/0.0009202, allocations: 93.69 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.205e-06/8.235e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2326, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6645/0.8972, allocations: 149 MB / 1.351 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.8975, allocations: 75.91 kB / 1.351 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.007596/0.9051, allocations: 2.075 MB / 1.353 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.9052, allocations: 1.031 kB / 1.353 GB, free: 15.76 MB / 0.8073 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.0004505/0.9056, allocations: 342.1 kB / 1.353 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 7.192e-05/0.9057, allocations: 9.688 kB / 1.353 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.549e-05/0.9058, allocations: 5.938 kB / 1.353 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.9059, allocations: 173.3 kB / 1.353 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.9059, allocations: 1.125 kB / 1.353 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.906, allocations: 7.031 kB / 1.353 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001062/0.9061, allocations: 20.42 kB / 1.353 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.545e-05/0.9062, allocations: 52.06 kB / 1.353 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.9062, allocations: 1.688 kB / 1.353 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.9062, allocations: 0 / 1.353 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.9062, allocations: 0.9375 kB / 1.353 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001546/0.9064, allocations: 144.1 kB / 1.354 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.018e-05/0.9065, allocations: 35.17 kB / 1.354 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.494e-05/0.9065, allocations: 22.8 kB / 1.354 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003755/0.9069, allocations: 0.5572 MB / 1.354 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.9069, allocations: 32.94 kB / 1.354 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.953e-06/0.907, allocations: 7.922 kB / 1.354 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.001824/0.9088, allocations: 0.8478 MB / 1.355 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.148e-05/0.9088, allocations: 53.88 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.356e-05/0.9089, allocations: 90.53 kB / 1.355 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.9089, allocations: 26.67 kB / 1.355 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.78e-05/0.9089, allocations: 84.45 kB / 1.355 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.909, allocations: 45.86 kB / 1.355 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.909, allocations: 0 / 1.355 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.909, allocations: 318.4 kB / 1.356 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.574e-05/0.9091, allocations: 20.97 kB / 1.356 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.659e-05/0.9092, allocations: 64.45 kB / 1.356 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.605e-05/0.9093, allocations: 29.17 kB / 1.356 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.9093, allocations: 0 / 1.356 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002245/0.9095, allocations: 113.3 kB / 1.356 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.9095, allocations: 5.281 kB / 1.356 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.9095, allocations: 4.906 kB / 1.356 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.9096, allocations: 6.609 kB / 1.356 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.9097, allocations: 31.97 kB / 1.356 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.9098, allocations: 2.797 kB / 1.356 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.955e-05/0.9098, allocations: 1.188 kB / 1.356 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.9098, allocations: 9.812 kB / 1.356 GB, free: 12.86 MB / 0.8073 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.979e-05/0.9099, allocations: 110.6 kB / 1.356 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.9099, allocations: 7.234 kB / 1.356 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.9102, allocations: 124.4 kB / 1.356 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.9103, allocations: 6.344 kB / 1.356 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.9103, allocations: 0.8438 kB / 1.356 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.9103, allocations: 0.6562 kB / 1.356 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.9107, allocations: 378.3 kB / 1.357 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.9108, allocations: 1.688 kB / 1.357 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.9109, allocations: 30.11 kB / 1.357 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.9109, allocations: 5.469 kB / 1.357 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.9109, allocations: 3.234 kB / 1.357 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.911, allocations: 7.234 kB / 1.357 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.911, allocations: 8.938 kB / 1.357 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003199/0.9113, allocations: 310.9 kB / 1.357 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3e-05/0.9113, allocations: 84.95 kB / 1.357 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.9114, allocations: 2.719 kB / 1.357 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.9115, allocations: 2.625 kB / 1.357 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.9115, allocations: 19.09 kB / 1.357 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.9115, allocations: 5.703 kB / 1.357 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.862e-05/0.9115, allocations: 76 kB / 1.357 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002896/0.9118, allocations: 38.84 kB / 1.357 GB, free: 11.94 MB / 0.8073 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.000238/0.9121, allocations: 133.8 kB / 1.357 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001796/0.9123, allocations: 76.2 kB / 1.357 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.9123, allocations: 352 / 1.357 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.273e-05/0.9124, allocations: 47.95 kB / 1.357 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.9126, allocations: 4.672 kB / 1.357 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004472/0.913, allocations: 154.9 kB / 1.357 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.9132, allocations: 0.7098 MB / 1.358 GB, free: 11 MB / 0.8073 GB Notification: Performance of SimCode: time 2.4e-07/0.9132, allocations: 7.938 kB / 1.358 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of Templates: time 0.003768/0.917, allocations: 1.117 MB / 1.359 GB, free: 10.89 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_9_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