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.00118/0.001185, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00121/0.001211, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.405/1.405, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.797/2.797, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 65.09 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3642, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001945/0.3662, allocations: 0.6736 MB / 1.053 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3678, allocations: 1.306 MB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.656e-05/0.3679, allocations: 0 / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.005e-05/0.3679, allocations: 3.938 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.524e-05/0.3679, allocations: 0 / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.3683, allocations: 55.86 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.309e-05/0.3683, allocations: 19.98 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.843e-05/0.3684, allocations: 4 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.099e-05/0.3684, allocations: 7.984 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.114e-05/0.3685, allocations: 23.91 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.3685, allocations: 4 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.3687, allocations: 95.91 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.989e-05/0.3688, allocations: 11.92 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.3688, allocations: 19.86 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.3689, allocations: 59.92 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.369, allocations: 0 / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.344e-06/0.369, allocations: 0 / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.369, allocations: 7.875 kB / 1.054 GB, free: 6.543 MB / 0.8106 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.0004771/0.3695, allocations: 347.9 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3695, allocations: 8.031 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.447e-05/0.3695, allocations: 4.938 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3697, allocations: 176.2 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.3697, allocations: 4.375 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.3697, allocations: 384 / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.3698, allocations: 54 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3699, allocations: 0 / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.3699, allocations: 0 / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3699, allocations: 8 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.992e-05/0.37, allocations: 27.91 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.3702, allocations: 165.7 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.3703, allocations: 58.56 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.167e-05/0.3703, allocations: 24.84 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005075/0.3708, allocations: 0.5583 MB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.3709, allocations: 38.5 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.3709, allocations: 0 / 1.056 GB, free: 4.797 MB / 0.8106 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.02036/0.3913, allocations: 4.368 MB / 1.06 GB, free: 284 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3913, allocations: 63.25 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.3914, allocations: 89.86 kB / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/0.3915, allocations: 33.64 kB / 1.06 GB, free: 68 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.3916, allocations: 88.12 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3917, allocations: 51.2 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.3919, allocations: 89.67 kB / 1.06 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3921, allocations: 326.9 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/0.3926, allocations: 307.9 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000536/0.3931, allocations: 313.3 kB / 1.061 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.3948, allocations: 0.7716 MB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.3948, allocations: 0 / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001595/0.3964, allocations: 0.8 MB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3964, allocations: 4 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3965, allocations: 0 / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.3965, allocations: 8 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007724/0.3973, allocations: 91.94 kB / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3973, allocations: 4 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.3977, allocations: 8 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.112e-05/0.3978, allocations: 35.97 kB / 1.063 GB, free: 13.17 MB / 0.8262 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.0002157/0.3981, allocations: 125.7 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.915e-05/0.3981, allocations: 7.906 kB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003374/0.4015, allocations: 1.395 MB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.4015, allocations: 4 kB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.882e-06/0.4016, allocations: 4 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4016, allocations: 3.984 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.4046, allocations: 1.813 MB / 1.066 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4046, allocations: 0 / 1.066 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007787/0.4054, allocations: 111.9 kB / 1.066 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.4054, allocations: 0 / 1.066 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.002e-05/0.4055, allocations: 31.94 kB / 1.066 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4055, allocations: 3.938 kB / 1.066 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4055, allocations: 0 / 1.066 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.4081, allocations: 1.469 MB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.958e-05/0.4081, allocations: 96.89 kB / 1.068 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.81e-05/0.4082, allocations: 7.938 kB / 1.068 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004836/0.4087, allocations: 15.98 kB / 1.068 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.4089, allocations: 39.97 kB / 1.068 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-05/0.409, allocations: 28 kB / 1.068 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.15e-05/0.409, allocations: 83.34 kB / 1.068 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.492e-06/0.409, allocations: 3.938 kB / 1.068 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006315/0.4097, allocations: 183.9 kB / 1.068 GB, free: 7.648 MB / 0.8262 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.0006048/0.4103, allocations: 223.1 kB / 1.069 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001347/0.4116, allocations: 0.7223 MB / 1.069 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4116, allocations: 0 / 1.069 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007085/0.4124, allocations: 451.8 kB / 1.07 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.4127, allocations: 12.16 kB / 1.07 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.4159, allocations: 0.8567 MB / 1.07 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.4163, allocations: 0.7223 MB / 1.071 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001459/0.4177, allocations: 294.3 kB / 1.071 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005903/0.4183, allocations: 91.41 kB / 1.072 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of SimCode: time 9.62e-07/0.4184, allocations: 0 / 1.072 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of Templates: time 0.01938/0.4377, allocations: 10.72 MB / 1.082 GB, free: 9.57 MB / 0.8419 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