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.004626/0.004626, allocations: 105.3 kB / 15.73 MB, free: 6.047 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.001063/0.001063, allocations: 189.2 kB / 16.67 MB, free: 5.977 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.336/2.336, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 65.28 kB / 0.9504 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2539, allocations: 140.4 MB / 1.088 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00157/0.2555, allocations: 0.6116 MB / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.2571, allocations: 1.293 MB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.2571, allocations: 0 / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.2571, allocations: 4 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.18e-05/0.2572, allocations: 3.938 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.2576, allocations: 75.84 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.499e-05/0.2577, allocations: 19.97 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.2577, allocations: 4 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.173e-05/0.2578, allocations: 15.81 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.2578, allocations: 11.98 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.2578, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.2581, allocations: 103.9 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.323e-05/0.2581, allocations: 3.938 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.514e-05/0.2581, allocations: 19.91 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.2583, allocations: 63.86 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2583, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2583, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.2583, 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.0004374/0.2587, allocations: 350.4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2588, allocations: 12.03 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.33e-05/0.2588, allocations: 34.75 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.2589, allocations: 8.844 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.259, allocations: 172.3 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-06/0.259, allocations: 384 / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.259, allocations: 4.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.2591, allocations: 53.81 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2592, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.2592, allocations: 3.984 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.2592, allocations: 4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.267e-05/0.2593, allocations: 19.98 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.2594, allocations: 170.2 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.2596, allocations: 58.5 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.138e-05/0.2596, allocations: 28.84 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000485/0.2601, allocations: 0.5544 MB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.2601, allocations: 46.48 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.2601, allocations: 0 / 1.091 GB, free: 13.91 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.01996/0.2801, allocations: 4.375 MB / 1.095 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2802, allocations: 59.41 kB / 1.095 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.414e-05/0.2803, allocations: 93.84 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.069e-05/0.2804, allocations: 29.7 kB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.2804, allocations: 84.14 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.2805, allocations: 51.2 kB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.2808, allocations: 89.67 kB / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2809, allocations: 326.7 kB / 1.096 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/0.2814, allocations: 308 kB / 1.096 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/0.2819, allocations: 319.8 kB / 1.097 GB, free: 8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.2835, allocations: 0.7687 MB / 1.097 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2835, allocations: 4 kB / 1.097 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001557/0.2851, allocations: 0.7981 MB / 1.098 GB, free: 6.422 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2851, allocations: 4 kB / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2851, allocations: 0 / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.2851, allocations: 7.984 kB / 1.098 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007742/0.2859, allocations: 91.89 kB / 1.098 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.2859, allocations: 0 / 1.098 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004451/0.2864, allocations: 12 kB / 1.098 GB, free: 6.309 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.489e-05/0.2865, allocations: 35.97 kB / 1.098 GB, free: 6.273 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.0001757/0.2867, allocations: 121.8 kB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.457e-05/0.2867, allocations: 4 kB / 1.099 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.2897, allocations: 1.403 MB / 1.1 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2897, allocations: 4 kB / 1.1 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2897, allocations: 0 / 1.1 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.2897, allocations: 3.984 kB / 1.1 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.2925, allocations: 1.814 MB / 1.102 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2925, allocations: 0 / 1.102 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007463/0.2933, allocations: 111.9 kB / 1.102 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.2933, allocations: 0 / 1.102 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.522e-05/0.2934, allocations: 39.95 kB / 1.102 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.2934, allocations: 0.9375 kB / 1.102 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2934, allocations: 0 / 1.102 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.2958, allocations: 1.466 MB / 1.103 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.2958, allocations: 93.03 kB / 1.103 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/0.2959, allocations: 7.938 kB / 1.103 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004644/0.2964, allocations: 12 kB / 1.103 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.2965, allocations: 47.97 kB / 1.103 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.653e-05/0.2966, allocations: 32 kB / 1.103 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.633e-05/0.2966, allocations: 75.28 kB / 1.104 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2967, allocations: 0 / 1.104 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005773/0.2972, allocations: 180 kB / 1.104 GB, free: 0.7539 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.003016/0.3003, allocations: 2.135 MB / 1.106 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.3016, allocations: 0.7289 MB / 1.106 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3016, allocations: 0 / 1.106 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000652/0.3022, allocations: 455.7 kB / 1.107 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.3026, allocations: 16 kB / 1.107 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007088/0.3097, allocations: 3.71 MB / 1.111 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3099, allocations: 0.718 MB / 1.111 GB, free: 8.863 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009698/0.3109, allocations: 293.5 kB / 1.112 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005555/0.3115, allocations: 119.4 kB / 1.112 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of SimCode: time 5.61e-07/0.3115, allocations: 0 / 1.112 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.3423, allocations: 12.72 MB / 1.124 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.896, allocations: 11.5 kB / 1.124 GB, free: 11.87 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