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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005683/0.005683, allocations: 100.6 kB / 15.73 MB, free: 6.484 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.001542/0.001543, allocations: 196.7 kB / 16.68 MB, free: 6.363 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.703/2.703, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 59.91 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2842, allocations: 162.3 MB / 1.242 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001506/0.2857, allocations: 0.6135 MB / 1.243 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.2872, allocations: 1.283 MB / 1.244 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.116e-05/0.2873, allocations: 0 / 1.244 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.829e-05/0.2873, allocations: 3.938 kB / 1.244 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 1.638e-05/0.2873, allocations: 0 / 1.244 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.2876, allocations: 79.72 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.2877, allocations: 15.98 kB / 1.244 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.767e-05/0.2877, allocations: 4 kB / 1.244 GB, free: 7.762 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.062e-05/0.2878, allocations: 15.94 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.2878, allocations: 7.984 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.2879, allocations: 4 kB / 1.244 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.2881, allocations: 103.9 kB / 1.244 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.2881, allocations: 7.922 kB / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.2881, allocations: 15.92 kB / 1.244 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.2883, allocations: 63.8 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2883, allocations: 3.938 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2883, allocations: 0 / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.2883, allocations: 0 / 1.244 GB, free: 7.543 MB / 0.9981 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.0004309/0.2887, allocations: 359.3 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2888, allocations: 12.03 kB / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.349e-05/0.2888, allocations: 30.75 kB / 1.244 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.565e-05/0.2888, allocations: 4.938 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.289, allocations: 164.4 kB / 1.245 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.289, allocations: 4.359 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.289, allocations: 8.359 kB / 1.245 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.2891, allocations: 53.81 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2891, allocations: 7.953 kB / 1.245 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.2892, allocations: 0 / 1.245 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2892, allocations: 4 kB / 1.245 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.577e-05/0.2892, allocations: 27.91 kB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/0.2894, allocations: 169.6 kB / 1.245 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.2895, allocations: 54.56 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.266e-05/0.2896, allocations: 28.84 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004928/0.2901, allocations: 0.5583 MB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.2901, allocations: 38.5 kB / 1.246 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2901, allocations: 0 / 1.246 GB, free: 5.738 MB / 0.9981 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.01962/0.3098, allocations: 4.382 MB / 1.25 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3098, allocations: 55.41 kB / 1.25 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.837e-05/0.3099, allocations: 89.86 kB / 1.25 GB, free: 1.035 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.31, allocations: 29.7 kB / 1.25 GB, free: 1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.777e-05/0.31, allocations: 84.14 kB / 1.25 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.3101, allocations: 59.47 kB / 1.25 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.3104, allocations: 97.7 kB / 1.25 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3105, allocations: 322.8 kB / 1.251 GB, free: 440 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005367/0.3111, allocations: 307.9 kB / 1.251 GB, free: 132 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.517/0.8281, allocations: 306.3 kB / 1.251 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.8297, allocations: 0.7722 MB / 1.252 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8297, allocations: 0 / 1.252 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001465/0.8312, allocations: 0.8002 MB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.8312, allocations: 5.562 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.8312, allocations: 0.7969 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.8313, allocations: 1.531 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008151/0.8321, allocations: 91.77 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.8321, allocations: 1.766 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/0.8326, allocations: 6.156 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.451e-05/0.8327, allocations: 37.73 kB / 1.253 GB, free: 14.68 MB / 0.9981 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.0001418/0.8328, allocations: 120.4 kB / 1.253 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.4e-05/0.8329, allocations: 9.312 kB / 1.253 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002902/0.8358, allocations: 1.404 MB / 1.254 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.8358, allocations: 4.125 kB / 1.254 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.8359, allocations: 0.5156 kB / 1.254 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.8359, allocations: 6.25 kB / 1.254 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.8384, allocations: 1.816 MB / 1.256 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.8384, allocations: 1 kB / 1.256 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007693/0.8392, allocations: 106.1 kB / 1.256 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.8392, allocations: 1.781 kB / 1.256 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.26e-05/0.8393, allocations: 42.7 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.8393, allocations: 2.609 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8393, allocations: 0 / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.8415, allocations: 1.463 MB / 1.258 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.8415, allocations: 89.81 kB / 1.258 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-05/0.8416, allocations: 15.92 kB / 1.258 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.8421, allocations: 15.14 kB / 1.258 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.8422, allocations: 43.45 kB / 1.258 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.582e-05/0.8423, allocations: 32.3 kB / 1.258 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.665e-05/0.8424, allocations: 76.94 kB / 1.258 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.41e-07/0.8424, allocations: 0.5625 kB / 1.258 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005459/0.8429, allocations: 185.1 kB / 1.258 GB, free: 12.02 MB / 0.9981 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.002792/0.8457, allocations: 2.132 MB / 1.26 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001114/0.8468, allocations: 0.7243 MB / 1.261 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.8468, allocations: 0 / 1.261 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005671/0.8474, allocations: 459.2 kB / 1.261 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.8477, allocations: 12.64 kB / 1.261 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006629/0.8544, allocations: 3.723 MB / 1.265 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.8545, allocations: 0.7192 MB / 1.266 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0008922/0.8554, allocations: 294.2 kB / 1.266 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005375/0.8559, allocations: 118.2 kB / 1.266 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of SimCode: time 4.71e-07/0.8559, allocations: 0 / 1.266 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4604/1.316, allocations: 12.73 MB / 1.278 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/9.768, allocations: 5.297 kB / 1.278 GB, free: 6.168 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=400 --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