Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_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.001857/0.001857, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002049/0.002049, allocations: 192.5 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.254/2.254, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.796/2.796, allocations: 461.9 MB / 0.7343 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 66.02 kB / 0.8987 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2671, allocations: 157.4 MB / 1.052 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001835/0.269, allocations: 0.6853 MB / 1.053 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001606/0.2706, allocations: 1.295 MB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.974e-05/0.2707, allocations: 7.938 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.2707, allocations: 0 / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.009e-05/0.2707, allocations: 0 / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.2712, allocations: 55.89 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.178e-05/0.2712, allocations: 19.98 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.239e-05/0.2713, allocations: 7.984 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.343e-05/0.2713, allocations: 7.984 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.848e-05/0.2714, allocations: 15.92 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.2714, allocations: 4 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.2716, allocations: 115.8 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.2716, allocations: 3.938 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.2717, allocations: 11.94 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.2718, allocations: 67.89 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2718, allocations: 0 / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2718, allocations: 3.938 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.2718, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 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.0004349/0.2723, allocations: 352.8 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2723, allocations: 8.625 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.2724, allocations: 38.75 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.158e-05/0.2724, allocations: 4.844 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.856e-05/0.2725, allocations: 164.4 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.2725, allocations: 4.375 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.2726, allocations: 4.375 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.2727, allocations: 61.73 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2727, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.2727, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2727, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.747e-05/0.2728, allocations: 23.98 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.273, allocations: 169.7 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.2731, allocations: 54.56 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.2732, allocations: 32.78 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004671/0.2736, allocations: 0.5544 MB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.2737, allocations: 38.5 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.2737, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 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.02142/0.2951, allocations: 4.384 MB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.2952, allocations: 51.41 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.961e-05/0.2953, allocations: 93.86 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.326e-05/0.2953, allocations: 29.7 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.886e-05/0.2954, allocations: 80.14 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.2955, allocations: 59.19 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.2958, allocations: 85.67 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.2959, allocations: 322.9 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005672/0.2965, allocations: 311.9 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005188/0.297, allocations: 315.8 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.2986, allocations: 0.7756 MB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2986, allocations: 3.938 kB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001595/0.3002, allocations: 0.7921 MB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3002, allocations: 8 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3002, allocations: 0 / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3002, allocations: 0 / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008074/0.3011, allocations: 91.94 kB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3011, allocations: 0 / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.3016, allocations: 16 kB / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.159e-05/0.3017, allocations: 35.92 kB / 1.063 GB, free: 12.88 MB / 0.8262 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.0002012/0.3019, allocations: 121.8 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.302, allocations: 7.891 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.3054, allocations: 1.399 MB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3054, allocations: 11.88 kB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3055, allocations: 4 kB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3055, allocations: 0 / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.3085, allocations: 1.817 MB / 1.067 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3085, allocations: 0 / 1.067 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/0.3093, allocations: 107.9 kB / 1.067 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.3093, allocations: 4 kB / 1.067 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.127e-05/0.3094, allocations: 27.94 kB / 1.067 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.3094, allocations: 4 kB / 1.067 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3094, allocations: 0.9375 kB / 1.067 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/0.3118, allocations: 1.465 MB / 1.068 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-05/0.3119, allocations: 92.89 kB / 1.068 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.312, allocations: 19.88 kB / 1.068 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.3126, allocations: 8 kB / 1.068 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.3127, allocations: 47.95 kB / 1.068 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/0.3128, allocations: 24 kB / 1.068 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.435e-05/0.3129, allocations: 83.28 kB / 1.068 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3129, allocations: 4.094 kB / 1.068 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006524/0.3135, allocations: 172 kB / 1.069 GB, free: 7.367 MB / 0.8262 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.003263/0.3168, allocations: 2.127 MB / 1.071 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.3182, allocations: 0.7424 MB / 1.071 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3182, allocations: 0 / 1.071 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.3189, allocations: 455.7 kB / 1.072 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.3193, allocations: 18.53 kB / 1.072 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007696/0.327, allocations: 3.759 MB / 1.076 GB, free: 168 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.3273, allocations: 0.718 MB / 1.076 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001463/0.3288, allocations: 293.5 kB / 1.077 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006003/0.3294, allocations: 119.4 kB / 1.077 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.3294, allocations: 3.938 kB / 1.077 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.047/1.376, allocations: 12.59 MB / 1.089 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003415/1.377, allocations: 232.5 kB / 1.089 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.769/5.146, allocations: 4.062 kB / 1.089 GB, free: 2.367 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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