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.001007/0.001008, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009771/0.0009771, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.648 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.458/2.458, allocations: 437 MB / 0.7099 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6278/0.6292, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001704/0.6309, allocations: 0.6879 MB / 1.017 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.6324, allocations: 1.287 MB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.449e-05/0.6324, allocations: 0 / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.6324, allocations: 4 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.304e-05/0.6324, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.6327, allocations: 55.77 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.697e-05/0.6328, allocations: 19.98 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.783e-05/0.6328, allocations: 3.984 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.268e-05/0.6329, allocations: 11.98 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.95e-05/0.6329, allocations: 15.92 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.633, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.6332, allocations: 99.89 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.6332, allocations: 11.98 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.6332, allocations: 15.94 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.6334, allocations: 63.84 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.6334, allocations: 0 / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.01e-07/0.6334, allocations: 4 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.6334, allocations: 0 / 1.019 GB, free: 0.5078 MB / 0.7637 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.0003999/0.6338, allocations: 353.8 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.6338, allocations: 11.97 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.018e-05/0.6339, allocations: 34.75 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.746e-05/0.6339, allocations: 4.938 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.634, allocations: 168.2 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.634, allocations: 12.36 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.6341, allocations: 384 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.6342, allocations: 57.8 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.6342, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.6342, allocations: 4 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.6342, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.31e-05/0.6343, allocations: 19.98 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.6344, allocations: 169.6 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.6346, allocations: 70.47 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.6346, allocations: 24.86 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000445/0.6351, allocations: 0.5544 MB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.6351, allocations: 42.5 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.6351, allocations: 0 / 1.02 GB, free: 14.7 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.01913/0.6542, allocations: 4.366 MB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.6543, allocations: 63.31 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.499e-05/0.6544, allocations: 89.86 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.6544, allocations: 33.64 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.825e-05/0.6545, allocations: 84.14 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.6546, allocations: 55.19 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.6548, allocations: 93.66 kB / 1.025 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.838e-05/0.6549, allocations: 318.8 kB / 1.025 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/0.6554, allocations: 312 kB / 1.026 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004937/0.656, allocations: 315.8 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.6574, allocations: 0.7718 MB / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6574, allocations: 0 / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001496/0.6589, allocations: 0.7995 MB / 1.028 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.659, allocations: 4 kB / 1.028 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.659, allocations: 0 / 1.028 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.659, allocations: 4 kB / 1.028 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007551/0.6597, allocations: 95.88 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.6598, allocations: 0 / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004549/0.6602, allocations: 12 kB / 1.028 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.247e-05/0.6603, allocations: 35.98 kB / 1.028 GB, free: 7.07 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.0001839/0.6605, allocations: 125.8 kB / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.412e-05/0.6606, allocations: 7.906 kB / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.6637, allocations: 1.4 MB / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6638, allocations: 4 kB / 1.029 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.6638, allocations: 0 / 1.029 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6638, allocations: 0 / 1.029 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.6666, allocations: 1.821 MB / 1.031 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.6666, allocations: 0 / 1.031 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007379/0.6673, allocations: 115.9 kB / 1.031 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.6674, allocations: 0 / 1.031 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.6674, allocations: 31.94 kB / 1.031 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6674, allocations: 0 / 1.031 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6675, allocations: 0 / 1.031 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.6697, allocations: 1.465 MB / 1.033 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.6698, allocations: 92.95 kB / 1.033 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.343e-05/0.6699, allocations: 11.94 kB / 1.033 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.6704, allocations: 12 kB / 1.033 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.6705, allocations: 39.97 kB / 1.033 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-05/0.6706, allocations: 31.98 kB / 1.033 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.265e-05/0.6706, allocations: 75.28 kB / 1.033 GB, free: 1.734 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.21e-07/0.6706, allocations: 3.938 kB / 1.033 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005822/0.6712, allocations: 180.1 kB / 1.033 GB, free: 1.555 MB / 0.7794 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.00294/0.6742, allocations: 2.139 MB / 1.035 GB, free: 15.39 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001161/0.6753, allocations: 0.7184 MB / 1.036 GB, free: 14.67 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6754, allocations: 0 / 1.036 GB, free: 14.67 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.676, allocations: 460.1 kB / 1.036 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.6763, allocations: 19.94 kB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.6832, allocations: 3.758 MB / 1.04 GB, free: 10.36 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.6834, allocations: 0.7185 MB / 1.041 GB, free: 9.617 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001357/0.6848, allocations: 301.5 kB / 1.041 GB, free: 9.32 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005908/0.6854, allocations: 119.4 kB / 1.041 GB, free: 9.203 MB / 0.795 GB Notification: Performance of SimCode: time 7.21e-07/0.6854, allocations: 0 / 1.041 GB, free: 9.203 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.7073, allocations: 12.05 MB / 1.053 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.7075, allocations: 224.8 kB / 1.053 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.442, allocations: 9.719 kB / 1.053 GB, free: 13.09 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