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: 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_10_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_10_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.007034/0.007034, allocations: 96.56 kB / 15.73 MB, free: 6.027 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.001643/0.001643, allocations: 194.5 kB / 16.68 MB, free: 5.957 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.783/2.783, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.89 kB / 1.019 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.305, allocations: 151.6 MB / 1.167 GB, free: 6.746 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001592/0.3067, allocations: 0.6135 MB / 1.167 GB, free: 6.133 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.3083, allocations: 1.283 MB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.3084, allocations: 0 / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.875e-05/0.3084, allocations: 7.875 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.717e-05/0.3085, allocations: 0 / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.3089, allocations: 79.72 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.014e-05/0.309, allocations: 19.98 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.309, allocations: 4 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.309, allocations: 7.938 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.284e-05/0.3091, allocations: 15.92 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.3091, allocations: 7.984 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.3094, allocations: 99.83 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.3094, allocations: 7.984 kB / 1.169 GB, free: 4.586 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.3094, allocations: 15.92 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.3096, allocations: 63.8 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3096, allocations: 4 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3096, allocations: 0 / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3097, allocations: 0 / 1.169 GB, free: 4.504 MB / 0.92 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.0004382/0.3101, allocations: 351.3 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3101, allocations: 8.031 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.3102, allocations: 8.938 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.3103, allocations: 164.3 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.3103, allocations: 4.375 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.3104, allocations: 8.328 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.3105, allocations: 57.98 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3105, allocations: 4 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.3105, allocations: 0 / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3105, allocations: 0 / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.97e-05/0.3106, allocations: 23.92 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.3108, allocations: 165.7 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.3109, allocations: 62.55 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.311, allocations: 28.86 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005423/0.3115, allocations: 0.5583 MB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.3115, allocations: 38.44 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.3115, allocations: 0 / 1.17 GB, free: 2.75 MB / 0.92 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.01867/0.3302, allocations: 4.383 MB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.3303, allocations: 55.31 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.3303, allocations: 89.86 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.773e-05/0.3304, allocations: 33.7 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.556e-05/0.3304, allocations: 84.27 kB / 1.175 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 9.749e-05/0.3305, allocations: 55.55 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.3308, allocations: 89.66 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3309, allocations: 322.8 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/0.3314, allocations: 307.9 kB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.3319, allocations: 311.9 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.3335, allocations: 0.7684 MB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.3335, allocations: 0 / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001569/0.335, allocations: 0.8059 MB / 1.177 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3351, allocations: 8 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3351, allocations: 0 / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3351, allocations: 0 / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/0.3359, allocations: 95.88 kB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3359, allocations: 400 / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.3364, allocations: 12 kB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/0.3365, allocations: 31.98 kB / 1.178 GB, free: 11.12 MB / 0.9356 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.0002018/0.3367, allocations: 121.7 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.3368, allocations: 11.95 kB / 1.178 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/0.3398, allocations: 1.396 MB / 1.179 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3398, allocations: 8 kB / 1.179 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3398, allocations: 4 kB / 1.179 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3399, allocations: 3.938 kB / 1.179 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.3427, allocations: 1.814 MB / 1.181 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3428, allocations: 0 / 1.181 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.3435, allocations: 111.9 kB / 1.181 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.3436, allocations: 7.938 kB / 1.181 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.3436, allocations: 31.94 kB / 1.181 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3437, allocations: 0 / 1.181 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3437, allocations: 4 kB / 1.181 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.346, allocations: 1.466 MB / 1.182 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.3461, allocations: 89 kB / 1.182 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-05/0.3462, allocations: 11.94 kB / 1.182 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.3467, allocations: 8 kB / 1.182 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3468, allocations: 47.95 kB / 1.183 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.3469, allocations: 28 kB / 1.183 GB, free: 5.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.435e-05/0.347, allocations: 83.34 kB / 1.183 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.347, allocations: 0 / 1.183 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005309/0.3475, allocations: 175.7 kB / 1.183 GB, free: 5.586 MB / 0.9356 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.0004948/0.348, allocations: 235.3 kB / 1.183 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.3493, allocations: 0.7223 MB / 1.184 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3493, allocations: 0 / 1.184 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.3499, allocations: 459.6 kB / 1.184 GB, free: 4.176 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.3503, allocations: 14.19 kB / 1.184 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.3535, allocations: 0.808 MB / 1.185 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.3538, allocations: 0.7142 MB / 1.186 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001/0.3548, allocations: 297.5 kB / 1.186 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005307/0.3553, allocations: 95.41 kB / 1.186 GB, free: 2.199 MB / 0.9356 GB Notification: Performance of SimCode: time 5.01e-07/0.3553, allocations: 0 / 1.186 GB, free: 2.199 MB / 0.9356 GB Notification: Performance of Templates: time 0.0151/0.3705, allocations: 11.24 MB / 1.197 GB, free: 7.016 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches