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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008421/0.008421, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001549/0.001549, allocations: 186.9 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.828/2.828, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 68.11 kB / 1.054 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3249, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001934/0.3269, allocations: 0.6324 MB / 1.208 GB, free: 9.516 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.329, allocations: 1.271 MB / 1.209 GB, free: 8.227 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.329, allocations: 7.938 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.212e-05/0.3291, allocations: 3.938 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.486e-05/0.3291, allocations: 0 / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.3297, allocations: 75.73 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.838e-05/0.3297, allocations: 23.97 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.754e-05/0.3298, allocations: 0 / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.289e-05/0.3298, allocations: 11.98 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.491e-05/0.3299, allocations: 15.92 kB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.3299, allocations: 0 / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.3302, allocations: 107.8 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.345e-05/0.3302, allocations: 11.92 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.046e-05/0.3303, allocations: 11.92 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.3305, allocations: 67.91 kB / 1.21 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3305, allocations: 0 / 1.21 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3305, allocations: 0 / 1.21 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.3305, allocations: 4 kB / 1.21 GB, free: 7.891 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.0004971/0.331, allocations: 355.6 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.331, allocations: 12.62 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.3311, allocations: 34.73 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.3311, allocations: 4.938 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.3313, allocations: 164.4 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.3313, allocations: 4.375 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.3313, allocations: 384 / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.3315, allocations: 61.73 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3315, allocations: 0 / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3315, allocations: 4 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.3315, allocations: 0 / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.22e-05/0.3316, allocations: 31.91 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002239/0.3318, allocations: 169.6 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.332, allocations: 62.55 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.332, allocations: 24.8 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005733/0.3326, allocations: 0.5622 MB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3326, allocations: 38.5 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.3327, allocations: 0 / 1.211 GB, free: 6.082 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.02009/0.3528, allocations: 4.365 MB / 1.215 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3528, allocations: 55.41 kB / 1.215 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.317e-05/0.3529, allocations: 89.86 kB / 1.215 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.477e-05/0.353, allocations: 33.7 kB / 1.215 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.836e-05/0.353, allocations: 80.14 kB / 1.215 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3531, allocations: 55.11 kB / 1.216 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.3534, allocations: 93.66 kB / 1.216 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3535, allocations: 322.8 kB / 1.216 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/0.354, allocations: 308 kB / 1.216 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005149/0.3546, allocations: 315.9 kB / 1.217 GB, free: 196 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.3561, allocations: 0.7655 MB / 1.217 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3562, allocations: 0 / 1.217 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001584/0.3577, allocations: 0.8058 MB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3578, allocations: 4 kB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3578, allocations: 7.938 kB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3578, allocations: 0 / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008621/0.3587, allocations: 91.95 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3587, allocations: 0 / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005697/0.3593, allocations: 19.98 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.968e-05/0.3594, allocations: 27.98 kB / 1.218 GB, free: 14.46 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.0001855/0.3596, allocations: 125.7 kB / 1.218 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.3597, allocations: 7.906 kB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.3629, allocations: 1.393 MB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.3629, allocations: 4 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.3629, allocations: 7.922 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3629, allocations: 4 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.3661, allocations: 1.818 MB / 1.221 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.3661, allocations: 4 kB / 1.221 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008137/0.367, allocations: 107.9 kB / 1.222 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.367, allocations: 4.031 kB / 1.222 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/0.3671, allocations: 35.92 kB / 1.222 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3671, allocations: 0 / 1.222 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3671, allocations: 0 / 1.222 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.3695, allocations: 1.467 MB / 1.223 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.3696, allocations: 96.89 kB / 1.223 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.026e-05/0.3697, allocations: 7.938 kB / 1.223 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005573/0.3702, allocations: 20 kB / 1.223 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.3704, allocations: 39.97 kB / 1.223 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/0.3705, allocations: 31.98 kB / 1.223 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.541e-05/0.3705, allocations: 79.28 kB / 1.223 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.472e-06/0.3705, allocations: 0 / 1.223 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005818/0.3711, allocations: 179.9 kB / 1.224 GB, free: 8.93 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.00327/0.3744, allocations: 2.123 MB / 1.226 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001333/0.3757, allocations: 0.7287 MB / 1.226 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.3758, allocations: 4 kB / 1.226 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000682/0.3764, allocations: 451.7 kB / 1.227 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.3768, allocations: 21.48 kB / 1.227 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008017/0.3848, allocations: 3.728 MB / 1.23 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.3852, allocations: 0.7142 MB / 1.231 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001077/0.3863, allocations: 293.5 kB / 1.231 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000594/0.3869, allocations: 123.3 kB / 1.231 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of SimCode: time 1.012e-06/0.3869, allocations: 0 / 1.231 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.4233, allocations: 13.02 MB / 1.244 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/8.194, allocations: 9.516 kB / 1.244 GB, free: 3.77 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y),d2y,d3y Variables in the result:d1y,d2y,d3y,delta,deltax,der(d1y),der(d2y),der(deltax),der(der(deltax)),der(der(der(deltax))),der(der(der(x))),der(der(x)),der(x),der(y),der(y_comp),err,time,x,y,y_comp