Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_10_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.0007836/0.0007836, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.00513/0.00513, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.494/2.494, allocations: 437.8 MB / 0.7121 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003705, allocations: 16 kB / 0.873 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5739/0.5743, allocations: 153.8 MB / 1.023 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006821/0.575, allocations: 357.4 kB / 1.023 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00153/0.5765, allocations: 1.272 MB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.915e-05/0.5766, allocations: 0 / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.006e-05/0.5766, allocations: 3.938 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.034e-05/0.5766, allocations: 4 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.5769, allocations: 55.81 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.729e-05/0.577, allocations: 19.98 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.459e-05/0.577, allocations: 7.922 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.577, allocations: 8 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.777e-05/0.5771, allocations: 19.91 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.5771, allocations: 0 / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.5773, allocations: 95.89 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.5774, allocations: 15.92 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.5774, allocations: 41.64 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.5775, allocations: 63.91 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.5776, allocations: 0 / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5776, allocations: 0 / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.5776, allocations: 0 / 1.025 GB, free: 14.06 MB / 0.7794 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.0003613/0.5779, allocations: 349.8 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.578, allocations: 8.031 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.578, allocations: 34.73 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.578, allocations: 8.938 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.813e-05/0.5782, allocations: 168.3 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.5782, allocations: 8.375 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.5782, allocations: 4.281 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.5783, allocations: 61.78 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.5783, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.5783, allocations: 4 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.5783, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.86e-05/0.5784, allocations: 19.98 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.5786, allocations: 169.6 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.5787, allocations: 66.48 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.128e-05/0.5788, allocations: 24.86 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000445/0.5792, allocations: 0.5583 MB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.5793, allocations: 38.5 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.5793, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.7794 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.01988/0.5992, allocations: 4.286 MB / 1.031 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.5992, allocations: 51.41 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.996e-05/0.5993, allocations: 93.86 kB / 1.031 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.086e-05/0.5994, allocations: 33.83 kB / 1.031 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.487e-05/0.5994, allocations: 80.14 kB / 1.031 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.5995, allocations: 55.17 kB / 1.031 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.5996, allocations: 21.7 kB / 1.031 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.5997, allocations: 314.8 kB / 1.031 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.6003, allocations: 315.9 kB / 1.032 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/0.6008, allocations: 311.8 kB / 1.032 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.6023, allocations: 0.7763 MB / 1.033 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6023, allocations: 0 / 1.033 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001566/0.6039, allocations: 0.7982 MB / 1.033 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.6039, allocations: 4 kB / 1.033 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.604, allocations: 0 / 1.033 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.604, allocations: 0 / 1.033 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/0.6048, allocations: 99.88 kB / 1.034 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.6048, allocations: 0.9375 kB / 1.034 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005619/0.6054, allocations: 4 kB / 1.034 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-05/0.6055, allocations: 35.98 kB / 1.034 GB, free: 4.797 MB / 0.7794 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.0001954/0.6057, allocations: 121.8 kB / 1.034 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.792e-05/0.6058, allocations: 11.89 kB / 1.034 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/0.6092, allocations: 1.396 MB / 1.035 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.6092, allocations: 4 kB / 1.035 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.6092, allocations: 0 / 1.035 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.6093, allocations: 3.984 kB / 1.035 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.6121, allocations: 1.818 MB / 1.037 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.6121, allocations: 0 / 1.037 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008049/0.6129, allocations: 111.9 kB / 1.037 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.6129, allocations: 3.938 kB / 1.037 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.988e-05/0.613, allocations: 31.94 kB / 1.037 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.613, allocations: 4 kB / 1.037 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.613, allocations: 0 / 1.037 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.6154, allocations: 1.468 MB / 1.038 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.6154, allocations: 92.89 kB / 1.039 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.6155, allocations: 11.94 kB / 1.039 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.6161, allocations: 20 kB / 1.039 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.6162, allocations: 35.97 kB / 1.039 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.002e-05/0.6163, allocations: 35.98 kB / 1.039 GB, free: 15.52 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.02e-05/0.6163, allocations: 75.28 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6163, allocations: 4.156 kB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005535/0.6169, allocations: 176 kB / 1.039 GB, free: 15.27 MB / 0.795 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.002996/0.6199, allocations: 2.139 MB / 1.041 GB, free: 13.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001191/0.6211, allocations: 0.7244 MB / 1.042 GB, free: 12.38 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6211, allocations: 4 kB / 1.042 GB, free: 12.38 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.6218, allocations: 456 kB / 1.042 GB, free: 11.93 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.6221, allocations: 12 kB / 1.042 GB, free: 11.92 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00747/0.6296, allocations: 3.772 MB / 1.046 GB, free: 8.066 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.6298, allocations: 0.7145 MB / 1.046 GB, free: 7.324 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001414/0.6312, allocations: 297.5 kB / 1.047 GB, free: 7.035 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005694/0.6318, allocations: 119.4 kB / 1.047 GB, free: 6.918 MB / 0.795 GB Notification: Performance of SimCode: time 4.11e-07/0.6318, allocations: 0 / 1.047 GB, free: 6.918 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.6559, allocations: 11.92 MB / 1.059 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.6561, allocations: 226.6 kB / 1.059 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.453, allocations: 0 / 1.059 GB, free: 10.97 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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