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.01014/0.01014, allocations: 103.5 kB / 15.73 MB, free: 6.492 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.001927/0.001927, allocations: 188.1 kB / 16.67 MB, free: 6.379 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.347/1.347, 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 9.1.3-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 390.2 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 68.33 kB / 0.9504 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2876, allocations: 140.4 MB / 1.088 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001793/0.2894, allocations: 0.6116 MB / 1.088 GB, free: 1.348 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.2911, allocations: 1.293 MB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.44e-05/0.2911, allocations: 0 / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.2912, allocations: 0 / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.448e-05/0.2912, allocations: 4 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.2916, allocations: 75.73 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.009e-05/0.2917, allocations: 19.92 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.2918, allocations: 7.984 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.546e-05/0.2918, allocations: 11.94 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.883e-05/0.2919, allocations: 7.984 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.382e-05/0.2919, allocations: 4 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.2921, allocations: 103.9 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.2921, allocations: 3.938 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.886e-05/0.2922, allocations: 19.92 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.2923, allocations: 67.84 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2924, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.492e-06/0.2924, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.2924, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 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.0004487/0.2928, allocations: 350.4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.2929, allocations: 12.03 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.007e-05/0.2929, allocations: 30.75 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.2929, allocations: 8.844 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.2931, allocations: 168.3 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.2931, allocations: 8.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.2931, allocations: 8.359 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.2932, allocations: 53.81 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2933, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.2933, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2933, allocations: 4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.579e-05/0.2934, allocations: 19.98 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.2935, allocations: 170.2 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.2937, allocations: 58.5 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.2937, allocations: 28.84 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000522/0.2943, allocations: 0.5544 MB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.2943, allocations: 38.73 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.2943, allocations: 3.938 kB / 1.091 GB, free: 13.92 MB / 0.8575 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.02016/0.3145, allocations: 4.373 MB / 1.095 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.3145, allocations: 55.41 kB / 1.095 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.724e-05/0.3146, allocations: 93.86 kB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.3147, allocations: 29.7 kB / 1.096 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.3147, allocations: 80.14 kB / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3149, allocations: 59.19 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.3151, allocations: 89.67 kB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3152, allocations: 322.8 kB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/0.3158, allocations: 307.9 kB / 1.096 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005298/0.3163, allocations: 315.9 kB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.3178, allocations: 0.7762 MB / 1.097 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3179, allocations: 0 / 1.097 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001548/0.3194, allocations: 0.7981 MB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3194, allocations: 6.656 kB / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.3195, allocations: 0 / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3195, allocations: 4 kB / 1.098 GB, free: 6.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.3203, allocations: 95.88 kB / 1.098 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.3204, allocations: 0 / 1.098 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006259/0.321, allocations: 8 kB / 1.098 GB, free: 6.324 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-05/0.3211, allocations: 31.98 kB / 1.098 GB, free: 6.293 MB / 0.8575 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.0001905/0.3213, allocations: 133.7 kB / 1.099 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.089e-05/0.3214, allocations: 7.984 kB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.3245, allocations: 1.399 MB / 1.1 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3245, allocations: 4 kB / 1.1 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.3245, allocations: 0 / 1.1 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3245, allocations: 3.984 kB / 1.1 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/0.3276, allocations: 1.814 MB / 1.102 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3276, allocations: 0 / 1.102 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008416/0.3284, allocations: 111.9 kB / 1.102 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.3285, allocations: 0 / 1.102 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.565e-05/0.3285, allocations: 27.94 kB / 1.102 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.3286, allocations: 8.031 kB / 1.102 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.3286, allocations: 4.938 kB / 1.102 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.3311, allocations: 1.466 MB / 1.103 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.353e-05/0.3312, allocations: 96.98 kB / 1.103 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.3313, allocations: 7.938 kB / 1.103 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005546/0.3318, allocations: 12 kB / 1.103 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.332, allocations: 44.02 kB / 1.103 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.3321, allocations: 32 kB / 1.103 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.469e-05/0.3321, allocations: 79.28 kB / 1.104 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3321, allocations: 0 / 1.104 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005823/0.3327, allocations: 180 kB / 1.104 GB, free: 0.7578 MB / 0.8575 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.003162/0.3359, allocations: 2.131 MB / 1.106 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001277/0.3372, allocations: 0.7226 MB / 1.106 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3372, allocations: 0 / 1.106 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006926/0.3379, allocations: 459.6 kB / 1.107 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.3382, allocations: 16 kB / 1.107 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007806/0.3461, allocations: 3.706 MB / 1.111 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3463, allocations: 0.7259 MB / 1.111 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001024/0.3474, allocations: 297.5 kB / 1.112 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006023/0.348, allocations: 115.4 kB / 1.112 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of SimCode: time 5.81e-07/0.348, allocations: 4 kB / 1.112 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.3813, allocations: 13.01 MB / 1.124 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/7.992, allocations: 19.42 kB / 1.124 GB, free: 11.57 MB / 0.8887 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