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.001313/0.001313, allocations: 108 kB / 15.6 MB, free: 132 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.001358/0.001358, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.295/1.295, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.687/2.687, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 71.67 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2833, allocations: 157.4 MB / 1.053 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001798/0.2852, allocations: 0.6166 MB / 1.054 GB, free: 7.605 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.2866, allocations: 1.295 MB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.2867, allocations: 0 / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.155e-05/0.2867, allocations: 3.938 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.92e-05/0.2867, allocations: 4 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.2871, allocations: 67.73 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.581e-05/0.2871, allocations: 27.97 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.2872, allocations: 0 / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.2872, allocations: 11.94 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.069e-05/0.2873, allocations: 15.92 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.2873, allocations: 4 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.2875, allocations: 99.88 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.2875, allocations: 11.94 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.418e-05/0.2876, allocations: 15.92 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.2877, allocations: 63.91 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2877, allocations: 0 / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.534e-06/0.2877, allocations: 0 / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.2877, allocations: 3.938 kB / 1.055 GB, free: 5.969 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.0004094/0.2881, allocations: 351.8 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2882, allocations: 8.625 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.2882, allocations: 38.75 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.709e-05/0.2883, allocations: 8.781 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.789e-05/0.2884, allocations: 160.4 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.2884, allocations: 8.312 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.2884, allocations: 12.36 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.2885, allocations: 49.8 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2885, allocations: 4 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2886, allocations: 4 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2886, allocations: 4 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.99e-05/0.2886, allocations: 19.98 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.2888, allocations: 169.6 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.2889, allocations: 62.5 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.183e-05/0.289, allocations: 24.84 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004559/0.2894, allocations: 0.5622 MB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.2895, allocations: 34.5 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.2895, allocations: 0 / 1.057 GB, free: 4.168 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.01975/0.3092, allocations: 4.369 MB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.3093, allocations: 55.41 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.517e-05/0.3094, allocations: 93.86 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.732e-05/0.3095, allocations: 29.7 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.384e-05/0.3095, allocations: 80.14 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3096, allocations: 55.19 kB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.3099, allocations: 97.73 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.31, allocations: 326.8 kB / 1.062 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005055/0.3105, allocations: 307.9 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.311, allocations: 313 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.3125, allocations: 0.7763 MB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3126, allocations: 0 / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00156/0.3141, allocations: 0.7943 MB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3142, allocations: 4 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3142, allocations: 4 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3142, allocations: 0 / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008458/0.3151, allocations: 99.88 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3151, allocations: 0.9375 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.3156, allocations: 12 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-05/0.3157, allocations: 31.98 kB / 1.064 GB, free: 12.54 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.0001863/0.3159, allocations: 121.8 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.622e-05/0.316, allocations: 7.906 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.3193, allocations: 1.403 MB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.3193, allocations: 4 kB / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3193, allocations: 0 / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3193, allocations: 4 kB / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.3223, allocations: 1.817 MB / 1.067 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3223, allocations: 4 kB / 1.067 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.3231, allocations: 103.9 kB / 1.067 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.3231, allocations: 3.984 kB / 1.067 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.232e-05/0.3232, allocations: 35.94 kB / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3232, allocations: 0 / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3232, allocations: 0 / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002335/0.3255, allocations: 1.473 MB / 1.069 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.3256, allocations: 92.86 kB / 1.069 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.559e-05/0.3257, allocations: 7.938 kB / 1.069 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.3263, allocations: 16 kB / 1.069 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.3264, allocations: 43.95 kB / 1.069 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.175e-05/0.3265, allocations: 28 kB / 1.069 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.101e-05/0.3265, allocations: 79.34 kB / 1.069 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3265, allocations: 3.938 kB / 1.069 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005446/0.3271, allocations: 184 kB / 1.069 GB, free: 7.016 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.002854/0.3299, allocations: 2.134 MB / 1.071 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001265/0.3312, allocations: 0.7358 MB / 1.072 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3312, allocations: 0 / 1.072 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.3319, allocations: 455.7 kB / 1.072 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.3322, allocations: 18.44 kB / 1.072 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/0.3396, allocations: 3.708 MB / 1.076 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.3399, allocations: 0.718 MB / 1.077 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001389/0.3413, allocations: 297.5 kB / 1.077 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005476/0.3418, allocations: 119.4 kB / 1.077 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.3419, allocations: 0 / 1.077 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03349/0.3754, allocations: 12.65 MB / 1.089 GB, free: 2.215 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.824/8.2, allocations: 27.62 kB / 1.089 GB, free: 2.195 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