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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.489/1.489, allocations: 249.3 MB / 261.8 MB, free: 5.926 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.001174/0.001174, allocations: 184.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.2 MB / 0.572 GB, free: 10.64 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.0009017/0.0009021, allocations: 94.78 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.21e-05, allocations: 4 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2428, allocations: 106.3 MB / 0.8918 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8114/1.054, allocations: 132.2 MB / 1.021 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.055, allocations: 78.83 kB / 1.021 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007158/1.062, allocations: 2.343 MB / 1.023 GB, free: 452 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.923e-06/1.062, allocations: 0 / 1.023 GB, free: 452 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.196e-05/1.062, allocations: 4 kB / 1.023 GB, free: 448 kB / 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.0003892/1.062, allocations: 346.3 kB / 1.024 GB, free: 60 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.062, allocations: 12.03 kB / 1.024 GB, free: 48 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.516e-05/1.062, allocations: 0 / 1.024 GB, free: 48 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/1.062, allocations: 174.9 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/1.063, allocations: 11.42 kB / 1.024 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/1.063, allocations: 7.938 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/1.063, allocations: 48.62 kB / 1.024 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/1.063, allocations: 3.906 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/1.063, allocations: 3.625 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/1.063, allocations: 3.984 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.275e-05/1.063, allocations: 19.31 kB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/1.063, allocations: 172.8 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/1.063, allocations: 61.25 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.672e-05/1.063, allocations: 24.42 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004896/1.064, allocations: 0.5544 MB / 1.025 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/1.064, allocations: 30.56 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/1.064, allocations: 4 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of matching and sorting (n=17): time 0.01461/1.078, allocations: 3.631 MB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/1.079, allocations: 59.36 kB / 1.028 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.664e-05/1.079, allocations: 85 kB / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.624e-05/1.079, allocations: 33.2 kB / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/1.079, allocations: 80.14 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.771e-05/1.079, allocations: 54.88 kB / 1.029 GB, free: 11.22 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/1.079, allocations: 7.688 kB / 1.029 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001011/1.079, allocations: 311 kB / 1.029 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004553/1.079, allocations: 310.3 kB / 1.029 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000445/1.08, allocations: 295.7 kB / 1.029 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/1.081, allocations: 368.2 kB / 1.03 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/1.081, allocations: 0 / 1.03 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001357/1.082, allocations: 0.7598 MB / 1.031 GB, free: 9.824 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/1.082, allocations: 8 kB / 1.031 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/1.082, allocations: 0 / 1.031 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/1.082, allocations: 0 / 1.031 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000776/1.083, allocations: 99.25 kB / 1.031 GB, free: 9.723 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/1.083, allocations: 3.938 kB / 1.031 GB, free: 9.719 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/1.083, allocations: 15.95 kB / 1.031 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.555e-05/1.083, allocations: 35.42 kB / 1.031 GB, free: 9.672 MB / 0.6511 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.0001625/1.084, allocations: 108 kB / 1.031 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.744e-05/1.084, allocations: 7.906 kB / 1.031 GB, free: 9.555 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/1.087, allocations: 1.368 MB / 1.032 GB, free: 8.637 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/1.087, allocations: 4 kB / 1.032 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/1.087, allocations: 0 / 1.032 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/1.087, allocations: 8 kB / 1.032 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/1.09, allocations: 1.778 MB / 1.034 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.09, allocations: 0 / 1.034 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007716/1.09, allocations: 107.2 kB / 1.034 GB, free: 7.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/1.09, allocations: 11.94 kB / 1.034 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-05/1.09, allocations: 23.66 kB / 1.034 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/1.09, allocations: 4 kB / 1.034 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.09, allocations: 7.938 kB / 1.034 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/1.093, allocations: 1.431 MB / 1.035 GB, free: 6.246 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/1.093, allocations: 96.84 kB / 1.036 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.526e-05/1.093, allocations: 10.19 kB / 1.036 GB, free: 6.129 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004941/1.093, allocations: 11.25 kB / 1.036 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/1.093, allocations: 46.77 kB / 1.036 GB, free: 6.078 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/1.093, allocations: 31.88 kB / 1.036 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.9e-05/1.093, allocations: 78.22 kB / 1.036 GB, free: 5.977 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.395e-06/1.093, allocations: 0 / 1.036 GB, free: 5.977 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006112/1.094, allocations: 206.3 kB / 1.036 GB, free: 5.781 MB / 0.6511 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.0005093/1.095, allocations: 251.8 kB / 1.036 GB, free: 5.535 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001072/1.096, allocations: 0.7116 MB / 1.037 GB, free: 5.105 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.096, allocations: 0 / 1.037 GB, free: 5.105 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005789/1.096, allocations: 440 kB / 1.037 GB, free: 4.863 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/1.096, allocations: 11.38 kB / 1.037 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/1.1, allocations: 0.7203 MB / 1.038 GB, free: 4.301 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/1.1, allocations: 0.7261 MB / 1.039 GB, free: 3.551 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001374/1.101, allocations: 293.7 kB / 1.039 GB, free: 3.262 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005598/1.102, allocations: 94.78 kB / 1.039 GB, free: 3.172 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/1.102, allocations: 0 / 1.039 GB, free: 3.172 MB / 0.6511 GB Notification: Performance of Templates: time 0.01473/1.117, allocations: 10.11 MB / 1.049 GB, free: 9.066 MB / 0.6667 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) Reference file matches