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.006103/0.006103, allocations: 104.8 kB / 15.73 MB, free: 6.035 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.0013/0.0013, allocations: 199.2 kB / 16.67 MB, free: 5.969 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.786/2.786, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.91 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4039, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001847/0.4058, allocations: 0.6205 MB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.4076, allocations: 1.279 MB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.965e-05/0.4077, allocations: 0 / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.4077, allocations: 3.938 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.541e-05/0.4078, allocations: 3.938 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.4082, allocations: 75.73 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.4083, allocations: 23.98 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.4083, allocations: 3.984 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.518e-05/0.4084, allocations: 11.98 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.246e-05/0.4085, allocations: 15.92 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.4085, allocations: 0 / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.4087, allocations: 103.8 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.4088, allocations: 8 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.063e-05/0.4088, allocations: 19.88 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.409, allocations: 63.89 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.409, allocations: 4 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.409, allocations: 4 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.409, allocations: 0 / 1.21 GB, free: 7.387 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.0004711/0.4095, allocations: 351.4 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4095, allocations: 8.625 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.272e-05/0.4096, allocations: 8.875 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.4097, allocations: 164.3 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.4097, allocations: 4.375 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.4097, allocations: 8.375 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.4099, allocations: 61.92 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4099, allocations: 0 / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.4099, allocations: 0 / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4099, allocations: 0 / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.863e-05/0.41, allocations: 23.98 kB / 1.211 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001833/0.4102, allocations: 169.6 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.4103, allocations: 58.55 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.512e-05/0.4104, allocations: 28.86 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000494/0.4109, allocations: 0.5583 MB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.4109, allocations: 38.44 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.203e-06/0.4109, allocations: 0 / 1.211 GB, free: 5.633 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.01913/0.4301, allocations: 4.365 MB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.4301, allocations: 55.41 kB / 1.216 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.108e-05/0.4302, allocations: 89.86 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.853e-05/0.4303, allocations: 29.7 kB / 1.216 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.997e-05/0.4303, allocations: 84.27 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4304, allocations: 59.16 kB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.4307, allocations: 97.59 kB / 1.216 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4308, allocations: 318.8 kB / 1.216 GB, free: 356 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.4313, allocations: 307.9 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.4319, allocations: 315.9 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.4334, allocations: 0.7639 MB / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4334, allocations: 0 / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001579/0.435, allocations: 0.815 MB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.435, allocations: 4 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.435, allocations: 0 / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.4351, allocations: 0 / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007367/0.4358, allocations: 91.95 kB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.4358, allocations: 3.984 kB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.4363, allocations: 8 kB / 1.219 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.711e-05/0.4364, allocations: 31.98 kB / 1.219 GB, free: 14.01 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.0001968/0.4366, allocations: 129.7 kB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.4367, allocations: 11.91 kB / 1.219 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.4397, allocations: 1.389 MB / 1.22 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4397, allocations: 11.98 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4397, allocations: 0 / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4397, allocations: 0 / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002989/0.4427, allocations: 1.825 MB / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.4428, allocations: 0 / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007289/0.4435, allocations: 111.9 kB / 1.222 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.4435, allocations: 0 / 1.222 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/0.4436, allocations: 31.92 kB / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.4436, allocations: 4 kB / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4436, allocations: 0 / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.4459, allocations: 1.467 MB / 1.223 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.446, allocations: 92.98 kB / 1.224 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.4461, allocations: 11.94 kB / 1.224 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004585/0.4465, allocations: 12 kB / 1.224 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.4467, allocations: 47.91 kB / 1.224 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.4468, allocations: 31.98 kB / 1.224 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.217e-05/0.4468, allocations: 79.34 kB / 1.224 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4468, allocations: 4.094 kB / 1.224 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005709/0.4474, allocations: 176 kB / 1.224 GB, free: 8.477 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.0005028/0.4479, allocations: 223 kB / 1.224 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.4492, allocations: 0.7352 MB / 1.225 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4492, allocations: 0 / 1.225 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.4499, allocations: 455.7 kB / 1.225 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.4502, allocations: 13.03 kB / 1.225 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.4532, allocations: 0.8054 MB / 1.226 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.4535, allocations: 0.7142 MB / 1.227 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0009367/0.4544, allocations: 293.5 kB / 1.227 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.455, allocations: 91.41 kB / 1.227 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.455, allocations: 0 / 1.227 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of Templates: time 0.01659/0.4715, allocations: 11.26 MB / 1.238 GB, free: 9.895 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