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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.113/2.113, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001095/0.001095, allocations: 184.8 kB / 487.4 MB, free: 5.066 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.369/1.369, allocations: 221.5 MB / 0.7824 GB, free: 0.957 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.0009697/0.0009698, allocations: 103.6 kB / 0.9219 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.231e-05/2.234e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7656/0.9968, allocations: 149.1 MB / 1.352 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.9971, allocations: 78.36 kB / 1.352 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007313/1.004, allocations: 2.396 MB / 1.354 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.633e-06/1.004, allocations: 4 kB / 1.354 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.512e-06/1.004, allocations: 0 / 1.354 GB, free: 34.09 MB / 0.8386 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.0002799/1.005, allocations: 343.5 kB / 1.354 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/1.005, allocations: 7.656 kB / 1.354 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/1.005, allocations: 9.312 kB / 1.354 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.507e-05/1.005, allocations: 174 kB / 1.354 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/1.005, allocations: 3.781 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/1.005, allocations: 3.938 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.811e-05/1.005, allocations: 25.75 kB / 1.355 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.331e-05/1.005, allocations: 51.64 kB / 1.355 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/1.005, allocations: 0.6094 kB / 1.355 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/1.005, allocations: 0 / 1.355 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/1.005, allocations: 0 / 1.355 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001332/1.005, allocations: 141.3 kB / 1.355 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.72e-05/1.005, allocations: 57.69 kB / 1.355 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.388e-05/1.006, allocations: 28.55 kB / 1.355 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003204/1.006, allocations: 0.5536 MB / 1.355 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/1.006, allocations: 34.77 kB / 1.355 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/1.006, allocations: 0 / 1.355 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01171/1.018, allocations: 3.368 MB / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/1.018, allocations: 55.41 kB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.653e-05/1.018, allocations: 89.45 kB / 1.359 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.559e-05/1.018, allocations: 29.55 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/1.018, allocations: 80.8 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/1.018, allocations: 53.14 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/1.018, allocations: 0 / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.018, allocations: 324.6 kB / 1.359 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/1.018, allocations: 305.2 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/1.019, allocations: 312.2 kB / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006078/1.019, allocations: 379.5 kB / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.019, allocations: 0 / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001171/1.021, allocations: 0.7852 MB / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/1.021, allocations: 6.656 kB / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.021, allocations: 0 / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.021, allocations: 0 / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/1.021, allocations: 94.16 kB / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/1.021, allocations: 0 / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/1.022, allocations: 11.62 kB / 1.361 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/1.022, allocations: 39.53 kB / 1.361 GB, free: 31.01 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 0.0001878/1.022, allocations: 106 kB / 1.361 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.79e-05/1.022, allocations: 10.66 kB / 1.361 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002772/1.025, allocations: 1.339 MB / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/1.025, allocations: 7.719 kB / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.025, allocations: 0 / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/1.025, allocations: 7.219 kB / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/1.027, allocations: 1.708 MB / 1.364 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/1.027, allocations: 0 / 1.364 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/1.028, allocations: 108 kB / 1.364 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/1.028, allocations: 6.266 kB / 1.364 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/1.028, allocations: 19.28 kB / 1.364 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/1.028, allocations: 8.641 kB / 1.364 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.028, allocations: 4.031 kB / 1.364 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/1.03, allocations: 1.396 MB / 1.366 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.009e-05/1.03, allocations: 92.67 kB / 1.366 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.883e-05/1.03, allocations: 7.922 kB / 1.366 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004838/1.031, allocations: 5.781 kB / 1.366 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.889e-05/1.031, allocations: 38.62 kB / 1.366 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/1.031, allocations: 36.72 kB / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.081e-05/1.031, allocations: 82.59 kB / 1.366 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.81e-07/1.031, allocations: 0 / 1.366 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006114/1.031, allocations: 204.2 kB / 1.366 GB, free: 29.84 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (40): * Single equations (assignments): 40 * 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.0005013/1.032, allocations: 258.5 kB / 1.366 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000857/1.033, allocations: 0.689 MB / 1.367 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.033, allocations: 0 / 1.367 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004357/1.033, allocations: 433.8 kB / 1.368 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/1.033, allocations: 5.719 kB / 1.368 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/1.036, allocations: 0.6769 MB / 1.368 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/1.037, allocations: 0.724 MB / 1.369 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.001333/1.038, allocations: 294 kB / 1.369 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/1.038, allocations: 92.31 kB / 1.369 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of SimCode: time 6.41e-07/1.038, allocations: 3.844 kB / 1.369 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.01323/1.052, allocations: 10.14 MB / 1.379 GB, free: 27.96 MB / 0.8386 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) Reference file matches