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.006384/0.006384, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.00121/0.001211, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 67.89 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3184, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00191/0.3203, allocations: 0.6315 MB / 1.208 GB, free: 9.504 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3222, allocations: 1.267 MB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.76e-05/0.3222, allocations: 4 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.3222, allocations: 3.938 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.505e-05/0.3223, allocations: 3.938 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.3227, allocations: 75.73 kB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.834e-05/0.3228, allocations: 23.97 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.791e-05/0.3228, allocations: 3.984 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.36e-05/0.3229, allocations: 12 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.282e-05/0.3229, allocations: 11.92 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.323, allocations: 0 / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.3232, allocations: 107.8 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.3232, allocations: 7.984 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.665e-05/0.3233, allocations: 15.88 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.3234, allocations: 67.89 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3234, allocations: 4 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3234, allocations: 0 / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3234, allocations: 0 / 1.209 GB, free: 7.883 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.0004425/0.3239, allocations: 359.6 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3239, allocations: 8.625 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.449e-05/0.324, allocations: 34.75 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.324, allocations: 4.938 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.3241, allocations: 160.4 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3241, allocations: 8.375 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.3242, allocations: 384 / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.3243, allocations: 61.73 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3243, allocations: 0 / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.3243, allocations: 4 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3243, allocations: 0 / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.076e-05/0.3244, allocations: 23.98 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.3246, allocations: 165.6 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.3247, allocations: 70.47 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.122e-05/0.3248, allocations: 24.86 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004878/0.3253, allocations: 0.5585 MB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.3253, allocations: 50.48 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.3253, allocations: 0 / 1.211 GB, free: 6.07 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.01973/0.345, allocations: 4.361 MB / 1.215 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3451, allocations: 55.41 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.695e-05/0.3452, allocations: 89.86 kB / 1.215 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.3453, allocations: 33.7 kB / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.925e-05/0.3453, allocations: 80.14 kB / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.3454, allocations: 59.11 kB / 1.216 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002488/0.3457, allocations: 89.66 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.3458, allocations: 322.8 kB / 1.216 GB, free: 0.793 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00049/0.3463, allocations: 312 kB / 1.216 GB, free: 500 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.3468, allocations: 311.9 kB / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.3483, allocations: 0.7689 MB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3483, allocations: 3.984 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001515/0.3498, allocations: 0.7981 MB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3499, allocations: 9.719 kB / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3499, allocations: 0 / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3499, allocations: 0 / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007797/0.3507, allocations: 91.94 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3507, allocations: 3.938 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000472/0.3512, allocations: 19.94 kB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.003e-05/0.3513, allocations: 31.98 kB / 1.218 GB, free: 14.45 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.000198/0.3515, allocations: 117.8 kB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.631e-05/0.3516, allocations: 7.906 kB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.3547, allocations: 1.399 MB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3547, allocations: 4 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.3548, allocations: 4 kB / 1.22 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3548, allocations: 0 / 1.22 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.3578, allocations: 1.821 MB / 1.221 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3579, allocations: 0 / 1.221 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007347/0.3586, allocations: 111.9 kB / 1.222 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.3586, allocations: 4.031 kB / 1.222 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/0.3587, allocations: 31.94 kB / 1.222 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/0.3587, allocations: 0 / 1.222 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/0.3587, allocations: 4 kB / 1.222 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.3611, allocations: 1.467 MB / 1.223 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.3612, allocations: 92.86 kB / 1.223 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3613, allocations: 15.94 kB / 1.223 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.3618, allocations: 12.06 kB / 1.223 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.3619, allocations: 43.97 kB / 1.223 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.834e-05/0.362, allocations: 27.98 kB / 1.223 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.51e-05/0.362, allocations: 79.28 kB / 1.223 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.91e-07/0.362, allocations: 4 kB / 1.223 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005513/0.3626, allocations: 172 kB / 1.223 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.003026/0.3656, allocations: 2.131 MB / 1.226 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001245/0.3669, allocations: 0.7268 MB / 1.226 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3669, allocations: 0 / 1.226 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.3675, allocations: 451.7 kB / 1.227 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.3679, allocations: 20 kB / 1.227 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/0.3754, allocations: 3.723 MB / 1.23 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3757, allocations: 0.7181 MB / 1.231 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001035/0.3768, allocations: 305.5 kB / 1.231 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000563/0.3773, allocations: 117.3 kB / 1.231 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of SimCode: time 4.9e-07/0.3773, allocations: 0 / 1.231 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03559/0.4129, allocations: 13.02 MB / 1.244 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.364, allocations: 11.73 kB / 1.244 GB, free: 3.766 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