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: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 104 kB / 16.35 MB, free: 5.824 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.00118/0.00118, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.555/2.555, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 70.62 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2579, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001838/0.2598, allocations: 0.621 MB / 1.027 GB, free: 1.391 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2614, allocations: 1.297 MB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.101e-05/0.2615, allocations: 0 / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.983e-05/0.2615, allocations: 0 / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.042e-05/0.2616, allocations: 3.938 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.2621, allocations: 71.73 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.2622, allocations: 16.05 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.63e-05/0.2623, allocations: 11.92 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.057e-05/0.2623, allocations: 15.92 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.578e-05/0.2624, allocations: 11.98 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.2624, allocations: 4 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.2627, allocations: 95.89 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.2627, allocations: 11.92 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.2628, allocations: 7.938 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.263, allocations: 75.83 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.263, allocations: 0 / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.284e-06/0.263, allocations: 0 / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.349e-05/0.263, allocations: 0 / 1.029 GB, free: 15.76 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.0005954/0.2636, allocations: 347.6 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.2637, allocations: 12.03 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.186e-05/0.2637, allocations: 4.844 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.2639, allocations: 168.3 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.264, allocations: 8.375 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.264, allocations: 4.375 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.2642, allocations: 53.98 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.2642, allocations: 4 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.2642, allocations: 4 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2643, allocations: 0 / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.123e-05/0.2643, allocations: 23.98 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000238/0.2646, allocations: 161.7 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.2647, allocations: 70.47 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.618e-05/0.2648, allocations: 24.86 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000553/0.2653, allocations: 0.5622 MB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.2654, allocations: 34.5 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.2654, allocations: 0 / 1.03 GB, free: 14 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.019/0.2844, allocations: 4.379 MB / 1.035 GB, free: 9.465 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.2845, allocations: 51.41 kB / 1.035 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.941e-05/0.2845, allocations: 89.86 kB / 1.035 GB, free: 9.305 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/0.2846, allocations: 33.7 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.455e-05/0.2846, allocations: 80.14 kB / 1.035 GB, free: 9.184 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.538e-05/0.2847, allocations: 51.2 kB / 1.035 GB, free: 9.133 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.285, allocations: 93.78 kB / 1.035 GB, free: 9.035 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.163e-05/0.2851, allocations: 330.7 kB / 1.035 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.2856, allocations: 303.9 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004776/0.2861, allocations: 319.8 kB / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.2875, allocations: 0.7647 MB / 1.037 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2875, allocations: 0 / 1.037 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001477/0.289, allocations: 0.8005 MB / 1.037 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.289, allocations: 4 kB / 1.037 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.289, allocations: 4 kB / 1.037 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.2891, allocations: 0 / 1.037 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007554/0.2898, allocations: 95.89 kB / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2898, allocations: 0 / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.2903, allocations: 15.98 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.944e-05/0.2904, allocations: 27.98 kB / 1.038 GB, free: 6.379 MB / 0.8106 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.0001734/0.2906, allocations: 125.7 kB / 1.038 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.327e-05/0.2907, allocations: 7.906 kB / 1.038 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002962/0.2936, allocations: 1.4 MB / 1.039 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2936, allocations: 4 kB / 1.039 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2937, allocations: 7.984 kB / 1.039 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2937, allocations: 0 / 1.039 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/0.2965, allocations: 1.81 MB / 1.041 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2965, allocations: 8.031 kB / 1.041 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007444/0.2973, allocations: 107.9 kB / 1.041 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.2973, allocations: 0 / 1.041 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.2974, allocations: 35.92 kB / 1.041 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.2974, allocations: 0 / 1.041 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2974, allocations: 0 / 1.041 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.2997, allocations: 1.466 MB / 1.042 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/0.2997, allocations: 96.92 kB / 1.043 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/0.2998, allocations: 11.94 kB / 1.043 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.3003, allocations: 16 kB / 1.043 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.3005, allocations: 39.97 kB / 1.043 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/0.3006, allocations: 35.92 kB / 1.043 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.1e-05/0.3006, allocations: 79.28 kB / 1.043 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3006, allocations: 0 / 1.043 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005578/0.3012, allocations: 180 kB / 1.043 GB, free: 0.8438 MB / 0.8106 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.0005878/0.3018, allocations: 226.1 kB / 1.043 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001185/0.303, allocations: 0.7263 MB / 1.044 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.303, allocations: 0 / 1.044 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006197/0.3036, allocations: 460 kB / 1.044 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.3039, allocations: 12 kB / 1.044 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00313/0.3071, allocations: 0.8042 MB / 1.045 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.3073, allocations: 0.7182 MB / 1.046 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0009733/0.3083, allocations: 293.5 kB / 1.046 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.3089, allocations: 95.41 kB / 1.046 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3089, allocations: 0 / 1.046 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.01633/0.3252, allocations: 11.22 MB / 1.057 GB, free: 2.312 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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) Reference file matches