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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.0056/0.0056, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001339/0.001339, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.521/2.521, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 72.09 kB / 1.018 GB, free: 9.816 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7948/0.7963, allocations: 151.6 MB / 1.166 GB, free: 3.691 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001637/0.798, allocations: 0.6136 MB / 1.167 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.7995, allocations: 1.289 MB / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.7995, allocations: 0 / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.436e-05/0.7995, allocations: 0 / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.238e-05/0.7996, allocations: 3.938 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.7999, allocations: 80.97 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.513e-05/0.8, allocations: 27.92 kB / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.8001, allocations: 0 / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.14e-05/0.8001, allocations: 8 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.84e-05/0.8001, allocations: 19.91 kB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.8002, allocations: 0 / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.8004, allocations: 95.89 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.8004, allocations: 11.98 kB / 1.168 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.671e-05/0.8004, allocations: 15.92 kB / 1.168 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.8006, allocations: 59.86 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.8006, allocations: 4 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8006, allocations: 0 / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.391e-06/0.8006, allocations: 4 kB / 1.168 GB, free: 1.453 MB / 0.8887 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.0004919/0.8011, allocations: 349.8 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.8012, allocations: 8.922 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.623e-05/0.8012, allocations: 34.75 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.8013, allocations: 8.844 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.8014, allocations: 164.4 kB / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.8014, allocations: 4.375 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.8014, allocations: 8.312 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.8016, allocations: 57.8 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.8016, allocations: 8 kB / 1.169 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.8016, allocations: 3.938 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.8016, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.297e-05/0.8017, allocations: 27.91 kB / 1.169 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001896/0.8019, allocations: 169.5 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.802, allocations: 58.56 kB / 1.169 GB, free: 424 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.987e-05/0.8021, allocations: 28.84 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005209/0.8026, allocations: 0.5583 MB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.8027, allocations: 34.5 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.8027, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 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.01994/0.8226, allocations: 4.36 MB / 1.174 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.8227, allocations: 55.34 kB / 1.174 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.907e-05/0.8227, allocations: 93.86 kB / 1.174 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.8228, allocations: 33.69 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.8229, allocations: 84.27 kB / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.823, allocations: 67.03 kB / 1.174 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.8232, allocations: 89.67 kB / 1.175 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.906e-05/0.8233, allocations: 326.8 kB / 1.175 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.8239, allocations: 303.9 kB / 1.175 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/0.8244, allocations: 310.4 kB / 1.175 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.8259, allocations: 0.7702 MB / 1.176 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.8259, allocations: 4 kB / 1.176 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001578/0.8275, allocations: 0.8005 MB / 1.177 GB, free: 8.172 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.8275, allocations: 15.94 kB / 1.177 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.8276, allocations: 0 / 1.177 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.8276, allocations: 0 / 1.177 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007685/0.8283, allocations: 91.94 kB / 1.177 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.8284, allocations: 0 / 1.177 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004655/0.8288, allocations: 16 kB / 1.177 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/0.8289, allocations: 35.97 kB / 1.177 GB, free: 8.016 MB / 0.9044 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.0001659/0.8291, allocations: 117.7 kB / 1.177 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.8292, allocations: 4 kB / 1.177 GB, free: 7.887 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.8321, allocations: 1.392 MB / 1.179 GB, free: 6.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.8322, allocations: 8 kB / 1.179 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8322, allocations: 4 kB / 1.179 GB, free: 6.469 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.8322, allocations: 3.984 kB / 1.179 GB, free: 6.465 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.835, allocations: 1.818 MB / 1.18 GB, free: 4.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.835, allocations: 0 / 1.18 GB, free: 4.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.8358, allocations: 103.9 kB / 1.18 GB, free: 4.488 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.8358, allocations: 4 kB / 1.18 GB, free: 4.484 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.411e-05/0.8359, allocations: 31.94 kB / 1.18 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.8359, allocations: 3.938 kB / 1.18 GB, free: 4.449 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.8359, allocations: 7.984 kB / 1.181 GB, free: 4.441 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.8383, allocations: 1.458 MB / 1.182 GB, free: 2.961 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.8384, allocations: 88.95 kB / 1.182 GB, free: 2.855 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.65e-05/0.8385, allocations: 11.94 kB / 1.182 GB, free: 2.844 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.8389, allocations: 15.98 kB / 1.182 GB, free: 2.828 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.8391, allocations: 39.97 kB / 1.182 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-05/0.8392, allocations: 28 kB / 1.182 GB, free: 2.762 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.585e-05/0.8392, allocations: 79.28 kB / 1.182 GB, free: 2.684 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8392, allocations: 4.156 kB / 1.182 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006008/0.8398, allocations: 176 kB / 1.182 GB, free: 2.508 MB / 0.9044 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.003229/0.8431, allocations: 2.137 MB / 1.184 GB, free: 348 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001282/0.8444, allocations: 0.7223 MB / 1.185 GB, free: 15.62 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.8444, allocations: 4.062 kB / 1.185 GB, free: 15.61 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0006359/0.845, allocations: 460 kB / 1.186 GB, free: 15.16 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.8453, allocations: 19.94 kB / 1.186 GB, free: 15.14 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006983/0.8523, allocations: 3.725 MB / 1.189 GB, free: 11.34 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.8526, allocations: 0.7142 MB / 1.19 GB, free: 10.6 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0009356/0.8536, allocations: 289.5 kB / 1.19 GB, free: 10.31 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005553/0.8541, allocations: 119.4 kB / 1.19 GB, free: 10.2 MB / 0.92 GB Notification: Performance of SimCode: time 3.71e-07/0.8541, allocations: 4 kB / 1.19 GB, free: 10.19 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07849/0.9326, allocations: 12.73 MB / 1.203 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/9.298, allocations: 14.2 kB / 1.203 GB, free: 13.59 MB / 0.9356 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