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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001155/0.001156, 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.001116/0.001116, allocations: 193 kB / 16.13 MB, free: 6.648 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.591/2.591, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.3 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2507, allocations: 157.4 MB / 1.052 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001633/0.2524, allocations: 0.6853 MB / 1.053 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.2538, allocations: 1.295 MB / 1.054 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.367e-05/0.2538, allocations: 0 / 1.054 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.2538, allocations: 4 kB / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.833e-05/0.2538, allocations: 3.938 kB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.2541, allocations: 51.88 kB / 1.054 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.419e-05/0.2542, allocations: 19.98 kB / 1.054 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.2542, allocations: 4 kB / 1.054 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.161e-05/0.2542, allocations: 15.97 kB / 1.054 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.371e-05/0.2543, allocations: 11.92 kB / 1.054 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.2543, allocations: 0 / 1.054 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.2545, allocations: 103.9 kB / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.312e-05/0.2545, allocations: 7.938 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.2546, allocations: 15.92 kB / 1.054 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.2547, allocations: 67.84 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2547, allocations: 0 / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2547, allocations: 3.938 kB / 1.054 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.497e-06/0.2547, allocations: 0 / 1.054 GB, free: 5.93 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.0003734/0.2551, allocations: 355.8 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2551, allocations: 11.97 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.2552, allocations: 42.75 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.2552, allocations: 8.828 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.961e-05/0.2553, allocations: 164.4 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.2553, allocations: 4.375 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.2553, allocations: 384 / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.2555, allocations: 53.81 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2555, allocations: 7.984 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.2555, allocations: 0 / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2555, allocations: 0 / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.814e-05/0.2556, allocations: 23.92 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.2557, allocations: 165.7 kB / 1.055 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.783e-05/0.2558, allocations: 58.56 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.883e-05/0.2559, allocations: 28.84 kB / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004378/0.2563, allocations: 0.5583 MB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.2563, allocations: 38.5 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 3.276e-06/0.2563, allocations: 0 / 1.056 GB, free: 4.129 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.01917/0.2755, allocations: 4.374 MB / 1.06 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.2756, allocations: 59.41 kB / 1.06 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.752e-05/0.2757, allocations: 93.84 kB / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.2757, allocations: 37.64 kB / 1.06 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.2758, allocations: 80.14 kB / 1.06 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.2759, allocations: 51.2 kB / 1.06 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.2761, allocations: 89.67 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.2763, allocations: 326.8 kB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.2768, allocations: 304 kB / 1.061 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.2773, allocations: 323.8 kB / 1.061 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.2787, allocations: 0.7639 MB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.2787, allocations: 0 / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001462/0.2802, allocations: 0.8032 MB / 1.063 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2802, allocations: 4 kB / 1.063 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2802, allocations: 7.984 kB / 1.063 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.2802, allocations: 0 / 1.063 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.2809, allocations: 87.95 kB / 1.063 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.281, allocations: 0 / 1.063 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004488/0.2814, allocations: 8 kB / 1.063 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-05/0.2815, allocations: 39.97 kB / 1.063 GB, free: 12.5 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.0001775/0.2817, allocations: 125.7 kB / 1.063 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.2818, allocations: 7.906 kB / 1.063 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.2848, allocations: 1.395 MB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2848, allocations: 4 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2848, allocations: 0 / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.2849, allocations: 7.984 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.2875, allocations: 1.813 MB / 1.066 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2875, allocations: 4 kB / 1.066 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007037/0.2882, allocations: 111.8 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2882, allocations: 0 / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/0.2883, allocations: 39.92 kB / 1.067 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2883, allocations: 0 / 1.067 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2883, allocations: 0 / 1.067 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.2905, allocations: 1.469 MB / 1.068 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.2906, allocations: 96.84 kB / 1.068 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.907e-05/0.2907, allocations: 7.938 kB / 1.068 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.2911, allocations: 12 kB / 1.068 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.2913, allocations: 39.97 kB / 1.068 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-05/0.2914, allocations: 28 kB / 1.068 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.2914, allocations: 87.2 kB / 1.068 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.142e-06/0.2914, allocations: 3.938 kB / 1.068 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005413/0.292, allocations: 184.1 kB / 1.068 GB, free: 6.969 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.002765/0.2947, allocations: 2.119 MB / 1.071 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001134/0.2959, allocations: 0.728 MB / 1.071 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.2959, allocations: 8.062 kB / 1.071 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006064/0.2965, allocations: 447.8 kB / 1.072 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2968, allocations: 20 kB / 1.072 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006645/0.3035, allocations: 3.753 MB / 1.075 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.3037, allocations: 0.7145 MB / 1.076 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001336/0.3051, allocations: 297.5 kB / 1.076 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.3057, allocations: 119.4 kB / 1.076 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.3057, allocations: 0 / 1.076 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5984/0.9041, allocations: 12.05 MB / 1.088 GB, free: 2.797 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/0.9044, allocations: 242 kB / 1.088 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/3.089, allocations: 1.719 kB / 1.088 GB, free: 2.535 MB / 0.8419 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