Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_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.001627/0.001627, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 196 kB / 16.53 MB, free: 6.664 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.704/2.704, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 64.12 kB / 0.9087 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2682, allocations: 159.2 MB / 1.064 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001663/0.2699, allocations: 0.6139 MB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2715, allocations: 1.277 MB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.2715, allocations: 4 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.2716, allocations: 3.938 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.831e-05/0.2716, allocations: 0 / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.272, allocations: 83.7 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.782e-05/0.272, allocations: 19.98 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.272, allocations: 4 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.2721, allocations: 11.94 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.341e-05/0.2721, allocations: 11.97 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.2721, allocations: 0 / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.2724, allocations: 107.8 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.2724, allocations: 7.922 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.462e-05/0.2724, allocations: 15.92 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.2726, allocations: 67.86 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2726, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2726, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.2726, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 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.0004175/0.273, allocations: 351.8 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.273, allocations: 8.031 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.845e-05/0.2731, allocations: 34.75 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.2731, allocations: 8.781 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.2732, allocations: 164.4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.2733, allocations: 8.375 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.2733, allocations: 8.359 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.2734, allocations: 57.73 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2734, allocations: 4 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-06/0.2734, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.2734, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.11e-05/0.2735, allocations: 23.97 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.2737, allocations: 169.7 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.2738, allocations: 66.5 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.21e-05/0.2739, allocations: 28.84 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005085/0.2744, allocations: 0.5544 MB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.2744, allocations: 34.5 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.2744, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 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.01903/0.2935, allocations: 4.377 MB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.2935, allocations: 51.41 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.413e-05/0.2936, allocations: 93.86 kB / 1.072 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.2937, allocations: 33.7 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.225e-05/0.2937, allocations: 80.14 kB / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.2938, allocations: 63.17 kB / 1.072 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.294, allocations: 89.61 kB / 1.072 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2942, allocations: 326.8 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.2947, allocations: 307.8 kB / 1.073 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005122/0.2952, allocations: 311.9 kB / 1.073 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.2967, allocations: 0.7767 MB / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/0.2967, allocations: 0 / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001531/0.2983, allocations: 0.7981 MB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2983, allocations: 9.875 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2983, allocations: 0 / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2983, allocations: 0 / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007945/0.2991, allocations: 91.94 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2991, allocations: 3.938 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/0.2997, allocations: 12 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.182e-05/0.2997, allocations: 31.98 kB / 1.075 GB, free: 2.465 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.0001747/0.2999, allocations: 125.8 kB / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.3, allocations: 4 kB / 1.075 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.3032, allocations: 1.399 MB / 1.076 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3033, allocations: 7.984 kB / 1.076 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3033, allocations: 4 kB / 1.076 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3033, allocations: 0 / 1.076 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.3061, allocations: 1.813 MB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3061, allocations: 4.031 kB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007524/0.3069, allocations: 107.9 kB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3069, allocations: 0 / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.3069, allocations: 31.94 kB / 1.078 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.307, allocations: 0 / 1.078 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.307, allocations: 4 kB / 1.078 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.3093, allocations: 1.473 MB / 1.08 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.737e-05/0.3093, allocations: 93.02 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.001e-05/0.3094, allocations: 11.94 kB / 1.08 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.31, allocations: 8 kB / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.3101, allocations: 55.89 kB / 1.08 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.236e-05/0.3102, allocations: 28 kB / 1.08 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.537e-05/0.3102, allocations: 79.28 kB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3102, allocations: 0 / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005101/0.3107, allocations: 180 kB / 1.08 GB, free: 12.94 MB / 0.8419 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.002932/0.3137, allocations: 2.127 MB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.315, allocations: 0.7423 MB / 1.083 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.315, allocations: 0 / 1.083 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006508/0.3156, allocations: 451.8 kB / 1.084 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.3159, allocations: 16.12 kB / 1.084 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/0.3234, allocations: 3.708 MB / 1.087 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.3237, allocations: 0.7258 MB / 1.088 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001337/0.3251, allocations: 293.5 kB / 1.088 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.3256, allocations: 115.4 kB / 1.088 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3256, allocations: 0 / 1.088 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.37/1.695, allocations: 12.66 MB / 1.101 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/15.26, allocations: 13.97 kB / 1.101 GB, free: 8.137 MB / 0.8575 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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