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.001151/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001274/0.001274, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.44/1.44, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.755/2.755, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 65.09 kB / 0.8986 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3054, allocations: 157.4 MB / 1.052 GB, free: 8.785 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001946/0.3074, allocations: 0.6814 MB / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001631/0.309, allocations: 1.287 MB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.3091, allocations: 3.938 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.528e-05/0.3091, allocations: 3.938 kB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.141e-05/0.3091, allocations: 0 / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003725/0.3095, allocations: 67.86 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.918e-05/0.3096, allocations: 19.98 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.3096, allocations: 4 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.133e-05/0.3096, allocations: 8 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.705e-05/0.3097, allocations: 15.92 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.3097, allocations: 4 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.3099, allocations: 103.8 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.3099, allocations: 7.938 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.31, allocations: 11.92 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.3101, allocations: 71.91 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3101, allocations: 4 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3101, allocations: 0 / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3101, allocations: 3.938 kB / 1.055 GB, free: 6.469 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.0004244/0.3106, allocations: 347.8 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3106, allocations: 8.625 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.3107, allocations: 4.938 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.3108, allocations: 168.2 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.3108, allocations: 8.375 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.3108, allocations: 4.375 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.3109, allocations: 57.98 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.311, allocations: 3.938 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.311, allocations: 4 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.311, allocations: 0 / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.057e-05/0.3111, allocations: 19.98 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.3112, allocations: 165.7 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.3113, allocations: 66.55 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.274e-05/0.3114, allocations: 28.84 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004819/0.3119, allocations: 0.5544 MB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.3119, allocations: 42.44 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.3119, allocations: 0 / 1.056 GB, free: 4.715 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.02062/0.3326, allocations: 4.36 MB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.3326, allocations: 59.31 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.986e-05/0.3327, allocations: 89.86 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.906e-05/0.3328, allocations: 41.77 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.637e-05/0.3329, allocations: 80.14 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.333, allocations: 51.2 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/0.3332, allocations: 93.66 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3333, allocations: 318.8 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005122/0.3339, allocations: 311.9 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.3344, allocations: 309.8 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.3358, allocations: 0.7719 MB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3359, allocations: 4 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001586/0.3375, allocations: 0.802 MB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3375, allocations: 4 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3375, allocations: 0 / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.3375, allocations: 4 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.3383, allocations: 91.94 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3383, allocations: 0 / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/0.3388, allocations: 8 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.588e-05/0.3389, allocations: 31.98 kB / 1.063 GB, free: 13.11 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.0001986/0.3391, allocations: 131.2 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.3392, allocations: 7.906 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003353/0.3426, allocations: 1.4 MB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3426, allocations: 4 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3426, allocations: 0 / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3426, allocations: 0 / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.3456, allocations: 1.817 MB / 1.066 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.3456, allocations: 8 kB / 1.066 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007756/0.3464, allocations: 111.9 kB / 1.067 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.3464, allocations: 3.984 kB / 1.067 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-05/0.3465, allocations: 31.94 kB / 1.067 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3465, allocations: 0 / 1.067 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3465, allocations: 0 / 1.067 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.3491, allocations: 1.461 MB / 1.068 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.3492, allocations: 96.89 kB / 1.068 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3493, allocations: 16 kB / 1.068 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004904/0.3498, allocations: 12 kB / 1.068 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.35, allocations: 39.97 kB / 1.068 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.839e-05/0.3501, allocations: 35.92 kB / 1.068 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.601e-05/0.3502, allocations: 75.28 kB / 1.068 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3502, allocations: 3.938 kB / 1.068 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0007763/0.351, allocations: 176 kB / 1.068 GB, free: 7.582 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.0007263/0.3517, allocations: 235.1 kB / 1.069 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001355/0.3531, allocations: 0.7399 MB / 1.069 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3531, allocations: 0 / 1.069 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000669/0.3537, allocations: 455.7 kB / 1.07 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.3541, allocations: 14.25 kB / 1.07 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.3574, allocations: 0.8624 MB / 1.071 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3577, allocations: 0.718 MB / 1.071 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001433/0.3592, allocations: 293.5 kB / 1.072 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005557/0.3597, allocations: 91.41 kB / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of SimCode: time 8.22e-07/0.3597, allocations: 0 / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of Templates: time 0.01769/0.3774, allocations: 11.22 MB / 1.083 GB, free: 8.965 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