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.00668/0.00668, allocations: 98.98 kB / 15.73 MB, free: 6.449 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.002145/0.002145, allocations: 197.4 kB / 16.68 MB, free: 6.348 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.686/2.686, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.89 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2973, allocations: 159.1 MB / 1.22 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001642/0.299, allocations: 0.6186 MB / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3005, allocations: 1.277 MB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.848e-05/0.3005, allocations: 0 / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.315e-05/0.3006, allocations: 3.938 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 1.954e-05/0.3006, allocations: 0 / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.3009, allocations: 75.73 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.752e-05/0.301, allocations: 23.97 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.301, allocations: 0 / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.171e-05/0.3011, allocations: 11.98 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.199e-05/0.3011, allocations: 15.92 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.3012, allocations: 7.938 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.3014, allocations: 103.8 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.723e-05/0.3014, allocations: 11.92 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.3014, allocations: 7.938 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.3016, allocations: 67.83 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3016, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.216e-06/0.3016, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.3016, allocations: 3.938 kB / 1.222 GB, free: 11.98 MB / 0.9825 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.0004084/0.302, allocations: 355.3 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.3021, allocations: 12.03 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.86e-05/0.3021, allocations: 34.73 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.5e-05/0.3021, allocations: 4.938 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3022, allocations: 160.4 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3023, allocations: 4.375 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.3023, allocations: 12.31 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.3024, allocations: 61.73 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3024, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.3024, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.3024, allocations: 8 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.701e-05/0.3025, allocations: 19.98 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001762/0.3027, allocations: 165.6 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.3028, allocations: 58.55 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.282e-05/0.3029, allocations: 32.8 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005104/0.3034, allocations: 0.5625 MB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.3034, allocations: 38.5 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.3034, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 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.01895/0.3224, allocations: 4.384 MB / 1.228 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3224, allocations: 55.41 kB / 1.228 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.537e-05/0.3225, allocations: 89.86 kB / 1.228 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.3226, allocations: 33.7 kB / 1.228 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.417e-05/0.3226, allocations: 80.14 kB / 1.228 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.3228, allocations: 55.48 kB / 1.228 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.323, allocations: 93.66 kB / 1.229 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3231, allocations: 322.9 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/0.3237, allocations: 311.9 kB / 1.229 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.3242, allocations: 311.9 kB / 1.229 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.3257, allocations: 0.7679 MB / 1.23 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3257, allocations: 0 / 1.23 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00153/0.3272, allocations: 0.804 MB / 1.231 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.3273, allocations: 4 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3273, allocations: 0 / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3273, allocations: 4 kB / 1.231 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000777/0.3281, allocations: 91.94 kB / 1.231 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3281, allocations: 4 kB / 1.231 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3286, allocations: 8 kB / 1.231 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.62e-05/0.3287, allocations: 31.98 kB / 1.231 GB, free: 2.551 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.0001659/0.3289, allocations: 126.2 kB / 1.231 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.3289, allocations: 7.953 kB / 1.231 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/0.332, allocations: 1.4 MB / 1.233 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.332, allocations: 4 kB / 1.233 GB, free: 1 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.332, allocations: 3.938 kB / 1.233 GB, free: 0.9961 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.332, allocations: 0 / 1.233 GB, free: 0.9961 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.3349, allocations: 1.818 MB / 1.234 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3349, allocations: 0 / 1.234 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007604/0.3356, allocations: 111.9 kB / 1.234 GB, free: 15 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3357, allocations: 7.984 kB / 1.234 GB, free: 15 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.478e-05/0.3357, allocations: 35.92 kB / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3358, allocations: 3.938 kB / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3358, allocations: 0 / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.3381, allocations: 1.463 MB / 1.236 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.3382, allocations: 93.03 kB / 1.236 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.533e-05/0.3383, allocations: 12 kB / 1.236 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004961/0.3388, allocations: 19.94 kB / 1.236 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.3389, allocations: 39.97 kB / 1.236 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.537e-05/0.339, allocations: 31.98 kB / 1.236 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.941e-05/0.3391, allocations: 79.28 kB / 1.236 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3391, allocations: 3.938 kB / 1.236 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005281/0.3396, allocations: 179.7 kB / 1.236 GB, free: 13.01 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.002997/0.3426, allocations: 2.127 MB / 1.238 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001221/0.3438, allocations: 0.7381 MB / 1.239 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3439, allocations: 4 kB / 1.239 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006599/0.3445, allocations: 451.7 kB / 1.24 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.3449, allocations: 22.06 kB / 1.24 GB, free: 9.648 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/0.3524, allocations: 3.712 MB / 1.243 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3527, allocations: 0.7142 MB / 1.244 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009936/0.3537, allocations: 297.5 kB / 1.244 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005596/0.3543, allocations: 123.3 kB / 1.244 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of SimCode: time 4.11e-07/0.3543, allocations: 0 / 1.244 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.315/1.67, allocations: 12.72 MB / 1.257 GB, free: 30.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.546/11.22, allocations: 2.344 kB / 1.257 GB, free: 30.36 MB / 0.9981 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