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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009183/0.0009183, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005763/0.005763, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.363/1.363, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.661/2.661, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 12.81 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 159.6 MB / 1.059 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007064/0.2932, allocations: 358.7 kB / 1.059 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2947, allocations: 1.287 MB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.562e-05/0.2947, allocations: 0 / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.2947, allocations: 3.938 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.449e-05/0.2947, allocations: 0 / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.2951, allocations: 51.89 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.927e-05/0.2951, allocations: 23.97 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.2952, allocations: 3.984 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.33e-05/0.2952, allocations: 4 kB / 1.06 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.2953, allocations: 19.92 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.2953, allocations: 4 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.2955, allocations: 99.83 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.692e-05/0.2955, allocations: 11.92 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.954e-05/0.2956, allocations: 41.62 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.2957, allocations: 63.91 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2958, allocations: 0 / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2958, allocations: 7.875 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.2958, allocations: 0 / 1.061 GB, free: 2.867 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.0004262/0.2962, allocations: 339.8 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.2963, allocations: 19.97 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.675e-05/0.2963, allocations: 34.73 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.2963, allocations: 4.938 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2964, allocations: 164.3 kB / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.2965, allocations: 4.375 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.2965, allocations: 4.375 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.2966, allocations: 61.73 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2966, allocations: 0 / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.2966, allocations: 0 / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2967, allocations: 8 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.089e-05/0.2967, allocations: 19.98 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.2969, allocations: 161.7 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/0.297, allocations: 66.59 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.156e-05/0.2971, allocations: 24.86 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004818/0.2976, allocations: 0.5661 MB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.2976, allocations: 38.44 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.2976, allocations: 0 / 1.062 GB, free: 1.07 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.01902/0.3166, allocations: 4.275 MB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.3167, allocations: 63.34 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.661e-05/0.3168, allocations: 89.86 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/0.3168, allocations: 33.7 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.278e-05/0.3169, allocations: 80.14 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.317, allocations: 51.2 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-05/0.3171, allocations: 25.7 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.987e-05/0.3172, allocations: 318.8 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004899/0.3177, allocations: 311.9 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000475/0.3182, allocations: 309.7 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.3196, allocations: 0.7802 MB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.3196, allocations: 0 / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001452/0.3211, allocations: 0.7981 MB / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3211, allocations: 4 kB / 1.069 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3211, allocations: 0 / 1.069 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3211, allocations: 0 / 1.069 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.3219, allocations: 91.94 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.322, allocations: 4 kB / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005258/0.3225, allocations: 4 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.906e-05/0.3226, allocations: 39.98 kB / 1.069 GB, free: 9.613 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.0002134/0.3228, allocations: 121.7 kB / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.324e-05/0.3229, allocations: 11.89 kB / 1.069 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003346/0.3262, allocations: 1.396 MB / 1.071 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3263, allocations: 4 kB / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3263, allocations: 0 / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3263, allocations: 0 / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.3291, allocations: 1.821 MB / 1.073 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3291, allocations: 0 / 1.073 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007716/0.3299, allocations: 107.9 kB / 1.073 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.3299, allocations: 4 kB / 1.073 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.266e-05/0.33, allocations: 35.94 kB / 1.073 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.33, allocations: 4 kB / 1.073 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.33, allocations: 4.031 kB / 1.073 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.3323, allocations: 1.461 MB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.3323, allocations: 92.89 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.813e-05/0.3324, allocations: 11.94 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005275/0.333, allocations: 12 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.3331, allocations: 47.89 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.3332, allocations: 40 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.88e-05/0.3332, allocations: 75.28 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.044e-06/0.3332, allocations: 0 / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005442/0.3338, allocations: 179.9 kB / 1.075 GB, free: 4.086 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.002868/0.3366, allocations: 2.131 MB / 1.077 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001172/0.3378, allocations: 0.7264 MB / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3378, allocations: 0 / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006219/0.3385, allocations: 451.8 kB / 1.078 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.3388, allocations: 14.53 kB / 1.078 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00726/0.3461, allocations: 3.762 MB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3463, allocations: 0.7145 MB / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001376/0.3477, allocations: 297.5 kB / 1.082 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000555/0.3483, allocations: 111.4 kB / 1.083 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of SimCode: time 8.72e-07/0.3483, allocations: 0 / 1.083 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.346/2.694, allocations: 11.92 MB / 1.094 GB, free: 76 kB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/2.694, allocations: 244.1 kB / 1.094 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/4.499, allocations: 0 / 1.094 GB, free: 15.81 MB / 0.8575 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