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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007306/0.007306, allocations: 99.45 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 185.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7347 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 59.91 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3599, allocations: 157.4 MB / 1.208 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001768/0.3617, allocations: 0.6108 MB / 1.208 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001673/0.3634, allocations: 1.287 MB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.3635, allocations: 0 / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.3635, allocations: 3.938 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.349e-05/0.3636, allocations: 3.938 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.364, allocations: 79.72 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.544e-05/0.3641, allocations: 23.97 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.6e-05/0.3641, allocations: 4 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.3641, allocations: 4 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.014e-05/0.3642, allocations: 15.92 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.3642, allocations: 4 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.3645, allocations: 103.9 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.492e-05/0.3645, allocations: 3.938 kB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.868e-05/0.3645, allocations: 23.91 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.3647, allocations: 59.92 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3647, allocations: 0 / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3647, allocations: 4 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3647, allocations: 0 / 1.21 GB, free: 7.332 MB / 0.9669 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.0004509/0.3652, allocations: 355.4 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3652, allocations: 16.56 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.3653, allocations: 0.9375 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3654, allocations: 168.3 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3654, allocations: 384 / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.3654, allocations: 8.375 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.3656, allocations: 57.98 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3656, allocations: 0 / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.3656, allocations: 4 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3656, allocations: 0 / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.563e-05/0.3657, allocations: 23.98 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.3659, allocations: 177.5 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.366, allocations: 54.56 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.273e-05/0.366, allocations: 28.84 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004741/0.3665, allocations: 0.5544 MB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.3665, allocations: 38.5 kB / 1.211 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.3665, allocations: 0 / 1.211 GB, free: 5.574 MB / 0.9669 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.0193/0.3858, allocations: 4.369 MB / 1.216 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.3859, allocations: 51.41 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/0.386, allocations: 97.86 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.3861, allocations: 25.7 kB / 1.216 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.988e-05/0.3861, allocations: 84.08 kB / 1.216 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3863, allocations: 63.28 kB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/0.3865, allocations: 93.67 kB / 1.216 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3867, allocations: 318.8 kB / 1.216 GB, free: 292 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005159/0.3872, allocations: 312 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004819/0.3877, allocations: 305.6 kB / 1.217 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.3891, allocations: 0.7716 MB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3891, allocations: 0 / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001549/0.3907, allocations: 0.7981 MB / 1.218 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3907, allocations: 5.25 kB / 1.218 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3907, allocations: 4 kB / 1.218 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3907, allocations: 0 / 1.218 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/0.3915, allocations: 99.88 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3915, allocations: 4 kB / 1.219 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.3921, allocations: 4 kB / 1.219 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.609e-05/0.3922, allocations: 35.98 kB / 1.219 GB, free: 13.95 MB / 0.9825 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001753/0.3923, allocations: 125.7 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.229e-05/0.3924, allocations: 11.84 kB / 1.219 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.3953, allocations: 1.396 MB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3953, allocations: 7.984 kB / 1.22 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3953, allocations: 4 kB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3953, allocations: 0 / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.3982, allocations: 1.825 MB / 1.222 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3982, allocations: 0 / 1.222 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007816/0.399, allocations: 111.9 kB / 1.222 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.3991, allocations: 4 kB / 1.222 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-05/0.3991, allocations: 27.94 kB / 1.222 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.3991, allocations: 4 kB / 1.222 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3992, allocations: 0 / 1.222 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.4014, allocations: 1.474 MB / 1.223 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.4015, allocations: 88.98 kB / 1.224 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.532e-05/0.4015, allocations: 11.94 kB / 1.224 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.4021, allocations: 8 kB / 1.224 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.4022, allocations: 47.95 kB / 1.224 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.311e-05/0.4023, allocations: 32 kB / 1.224 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.069e-05/0.4023, allocations: 75.28 kB / 1.224 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4023, allocations: 160 / 1.224 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000556/0.4029, allocations: 184 kB / 1.224 GB, free: 8.414 MB / 0.9825 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005152/0.4034, allocations: 227 kB / 1.224 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00118/0.4046, allocations: 0.7261 MB / 1.225 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4046, allocations: 0 / 1.225 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006303/0.4053, allocations: 451.7 kB / 1.225 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.4056, allocations: 21.55 kB / 1.225 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.409, allocations: 0.8093 MB / 1.226 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.4093, allocations: 0.7181 MB / 1.227 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0009865/0.4103, allocations: 289.5 kB / 1.227 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005331/0.4108, allocations: 95.41 kB / 1.227 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.4108, allocations: 0 / 1.227 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of Templates: time 0.01838/0.4292, allocations: 11.54 MB / 1.238 GB, free: 9.543 MB / 0.9981 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches