Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.928/1.928, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001005/0.001005, allocations: 177.3 kB / 490.8 MB, free: 1.898 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.292/1.292, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008963/0.0008963, allocations: 96.67 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.777e-06/8.797e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2848, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7881/1.073, allocations: 149.8 MB / 1.358 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/1.073, allocations: 77.62 kB / 1.358 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.007952/1.081, allocations: 2.081 MB / 1.36 GB, free: 17.38 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.018e-05/1.081, allocations: 1.219 kB / 1.36 GB, free: 17.38 MB / 0.823 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.0004362/1.082, allocations: 346.5 kB / 1.36 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/1.082, allocations: 8.438 kB / 1.36 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/1.082, allocations: 7.281 kB / 1.36 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/1.082, allocations: 164.2 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/1.082, allocations: 3.219 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.79e-05/1.082, allocations: 4.594 kB / 1.361 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001196/1.082, allocations: 26.58 kB / 1.361 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/1.082, allocations: 44 kB / 1.361 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/1.082, allocations: 6.453 kB / 1.361 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/1.083, allocations: 4 kB / 1.361 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/1.083, allocations: 1.094 kB / 1.361 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001855/1.083, allocations: 135.6 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.826e-05/1.083, allocations: 35.09 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.185e-05/1.083, allocations: 31.89 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004202/1.083, allocations: 0.5563 MB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/1.083, allocations: 35.89 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/1.083, allocations: 0 / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.001732/1.085, allocations: 0.8506 MB / 1.362 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/1.085, allocations: 54 kB / 1.362 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.808e-05/1.085, allocations: 85.66 kB / 1.362 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/1.085, allocations: 30.7 kB / 1.362 GB, free: 31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/1.085, allocations: 80.84 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/1.085, allocations: 48.44 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/1.085, allocations: 0 / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001255/1.085, allocations: 322.6 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/1.085, allocations: 23.03 kB / 1.363 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.522e-05/1.086, allocations: 53.8 kB / 1.363 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.577e-05/1.086, allocations: 33.2 kB / 1.363 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/1.086, allocations: 0.6094 kB / 1.363 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002124/1.086, allocations: 113.3 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/1.086, allocations: 5.406 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/1.086, allocations: 5.219 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/1.086, allocations: 3.141 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/1.086, allocations: 29.11 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/1.086, allocations: 2.016 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.923e-05/1.086, allocations: 1.719 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/1.086, allocations: 4.625 kB / 1.363 GB, free: 30.48 MB / 0.8386 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 8.066e-05/1.086, allocations: 115.4 kB / 1.363 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/1.086, allocations: 7.562 kB / 1.363 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003148/1.087, allocations: 126.4 kB / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/1.087, allocations: 4.406 kB / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.087, allocations: 3.906 kB / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/1.087, allocations: 2.062 kB / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005313/1.087, allocations: 389.1 kB / 1.364 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/1.087, allocations: 1.344 kB / 1.364 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/1.087, allocations: 25.94 kB / 1.364 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/1.087, allocations: 2.062 kB / 1.364 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/1.087, allocations: 6.281 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/1.087, allocations: 2.062 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.087, allocations: 2.062 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003448/1.088, allocations: 304.5 kB / 1.364 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/1.088, allocations: 88.58 kB / 1.364 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/1.088, allocations: 3.188 kB / 1.364 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/1.088, allocations: 5.344 kB / 1.364 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/1.088, allocations: 12.86 kB / 1.364 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/1.088, allocations: 5.062 kB / 1.364 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.348e-05/1.088, allocations: 81.02 kB / 1.364 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002797/1.088, allocations: 38.47 kB / 1.364 GB, free: 29.57 MB / 0.8386 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.0002503/1.089, allocations: 138.5 kB / 1.364 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000168/1.089, allocations: 68.91 kB / 1.364 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/1.089, allocations: 0 / 1.364 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.871e-05/1.089, allocations: 55.2 kB / 1.364 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/1.089, allocations: 4.891 kB / 1.364 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/1.089, allocations: 153.7 kB / 1.365 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/1.09, allocations: 0.7052 MB / 1.365 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.09, allocations: 5.062 kB / 1.365 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of Templates: time 0.003692/1.094, allocations: 1.124 MB / 1.366 GB, free: 28.52 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_latest_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