Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_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.001146/0.001145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.15/2.15, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 67.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5809/0.5821, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001525/0.5836, allocations: 0.6137 MB / 0.9503 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.5848, allocations: 1.273 MB / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.954e-05/0.5848, allocations: 0 / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.5848, allocations: 5.375 kB / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.823e-05/0.5848, allocations: 0 / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.5851, allocations: 81.38 kB / 0.9517 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.946e-05/0.5852, allocations: 19.17 kB / 0.9517 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.281e-05/0.5853, allocations: 6.031 kB / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.045e-05/0.5853, allocations: 13.17 kB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.68e-05/0.5854, allocations: 16.86 kB / 0.9517 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.5854, allocations: 1.219 kB / 0.9517 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.5856, allocations: 100.8 kB / 0.9518 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.5856, allocations: 5.094 kB / 0.9518 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.19e-05/0.5856, allocations: 15.86 kB / 0.9518 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.5857, allocations: 63.2 kB / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.5857, allocations: 3.938 kB / 0.9519 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5857, allocations: 3.938 kB / 0.9519 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.5857, allocations: 1.562 kB / 0.9519 GB, free: 7.531 MB / 0.7169 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.0003282/0.5861, allocations: 360.8 kB / 0.9522 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.5861, allocations: 14.41 kB / 0.9523 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.311e-05/0.5862, allocations: 36.12 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.469e-05/0.5862, allocations: 2.062 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.421e-05/0.5862, allocations: 165.3 kB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.994e-06/0.5863, allocations: 2.469 kB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.5863, allocations: 7.531 kB / 0.9525 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.993e-05/0.5864, allocations: 53.03 kB / 0.9525 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.5864, allocations: 9.656 kB / 0.9525 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.5864, allocations: 0 / 0.9525 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.5864, allocations: 1.281 kB / 0.9525 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.981e-05/0.5865, allocations: 30.22 kB / 0.9525 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.5866, allocations: 164.2 kB / 0.9527 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.606e-05/0.5867, allocations: 60.59 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.478e-05/0.5868, allocations: 24.59 kB / 0.9528 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002972/0.5871, allocations: 0.5613 MB / 0.9533 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.5871, allocations: 36 kB / 0.9534 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.5871, allocations: 0 / 0.9534 GB, free: 5.852 MB / 0.7169 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.01837/0.6055, allocations: 4.372 MB / 0.9576 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.755e-05/0.6055, allocations: 61.5 kB / 0.9577 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.451e-05/0.6055, allocations: 94.91 kB / 0.9578 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.6056, allocations: 26.89 kB / 0.9578 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.049e-05/0.6056, allocations: 84.14 kB / 0.9579 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.265e-05/0.6057, allocations: 62.44 kB / 0.9579 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.6059, allocations: 92.45 kB / 0.958 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.464e-05/0.606, allocations: 323.9 kB / 0.9583 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.6064, allocations: 306.2 kB / 0.9586 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.6069, allocations: 309.2 kB / 0.9589 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.6082, allocations: 0.7773 MB / 0.9597 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.6082, allocations: 0 / 0.9597 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001344/0.6096, allocations: 0.797 MB / 0.9605 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.6096, allocations: 5.156 kB / 0.9605 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.6096, allocations: 5.094 kB / 0.9605 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.6096, allocations: 1.125 kB / 0.9605 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007919/0.6104, allocations: 92.12 kB / 0.9606 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.6105, allocations: 1.375 kB / 0.9606 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.611, allocations: 8.969 kB / 0.9606 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.547e-05/0.6111, allocations: 35.97 kB / 0.9606 GB, free: 1.543 MB / 0.7169 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.6112, allocations: 120.8 kB / 0.9607 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.6113, allocations: 7.281 kB / 0.9607 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00292/0.6142, allocations: 1.408 MB / 0.9621 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.6142, allocations: 8.484 kB / 0.9621 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6142, allocations: 0 / 0.9621 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.6143, allocations: 3.984 kB / 0.9621 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.6168, allocations: 1.805 MB / 0.9639 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.6168, allocations: 0.8438 kB / 0.9639 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007674/0.6176, allocations: 105.8 kB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.6176, allocations: 5.281 kB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.745e-05/0.6176, allocations: 37.62 kB / 0.964 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.6177, allocations: 2.781 kB / 0.964 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6177, allocations: 4.922 kB / 0.964 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.6198, allocations: 1.465 MB / 0.9655 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.6199, allocations: 89.98 kB / 0.9656 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.62, allocations: 14.14 kB / 0.9656 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.6205, allocations: 14.44 kB / 0.9656 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.6206, allocations: 42.5 kB / 0.9656 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.6207, allocations: 34.41 kB / 0.9657 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.619e-05/0.6207, allocations: 76.34 kB / 0.9657 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6207, allocations: 0 / 0.9657 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000539/0.6213, allocations: 182.8 kB / 0.9659 GB, free: 14.21 MB / 0.7325 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.002805/0.6241, allocations: 2.132 MB / 0.968 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001259/0.6254, allocations: 0.7485 MB / 0.9687 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.6254, allocations: 1.469 kB / 0.9687 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006176/0.626, allocations: 447.1 kB / 0.9691 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.6263, allocations: 25.83 kB / 0.9692 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007274/0.6336, allocations: 3.702 MB / 0.9728 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.6338, allocations: 0.7142 MB / 0.9735 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001307/0.6352, allocations: 297.5 kB / 0.9738 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005258/0.6357, allocations: 119.4 kB / 0.9739 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.6357, allocations: 0 / 0.9739 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04157/0.6773, allocations: 12.66 MB / 0.9862 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.618, allocations: 10.09 kB / 0.9862 GB, free: 11.88 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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