Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.006585/0.006585, allocations: 96.73 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.001693/0.001693, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.922/2.922, allocations: 469.8 MB / 0.7425 GB, free: 7.438 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.89 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3463, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001899/0.3482, allocations: 0.6067 MB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001983/0.3502, allocations: 1.289 MB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.819e-05/0.3502, allocations: 0 / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.468e-05/0.3502, allocations: 0 / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.792e-05/0.3502, allocations: 7.875 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.3507, allocations: 75.72 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.778e-05/0.3507, allocations: 19.98 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.172e-05/0.3508, allocations: 4 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.516e-05/0.3508, allocations: 15.98 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.104e-05/0.3509, allocations: 19.91 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.3509, allocations: 0 / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.3511, allocations: 95.91 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.3512, allocations: 11.97 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.3512, allocations: 11.88 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.3513, allocations: 63.86 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3514, allocations: 0 / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3514, allocations: 3.938 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.3514, allocations: 0 / 1.223 GB, free: 11.56 MB / 0.9825 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.0004847/0.3519, allocations: 359.2 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3519, allocations: 8.031 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.3519, allocations: 4.938 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.3521, allocations: 168.3 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3521, allocations: 4.375 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.3521, allocations: 8.328 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.3522, allocations: 57.98 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3522, allocations: 4 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3523, allocations: 0 / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3523, allocations: 4 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.107e-05/0.3523, allocations: 23.97 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002148/0.3525, allocations: 169.6 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.3527, allocations: 58.5 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.072e-05/0.3527, allocations: 24.84 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006576/0.3534, allocations: 0.5583 MB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.3534, allocations: 42.48 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.3534, allocations: 0 / 1.224 GB, free: 9.797 MB / 0.9825 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.0212/0.3746, allocations: 4.366 MB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.3747, allocations: 51.41 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.3748, allocations: 101.8 kB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.279e-05/0.3749, allocations: 29.7 kB / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.969e-05/0.3749, allocations: 80.14 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.3751, allocations: 63.47 kB / 1.229 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.3753, allocations: 93.8 kB / 1.229 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3755, allocations: 322.8 kB / 1.229 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005787/0.3761, allocations: 311.8 kB / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005788/0.3767, allocations: 314.1 kB / 1.23 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.3784, allocations: 0.7724 MB / 1.231 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3784, allocations: 0 / 1.231 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001707/0.3801, allocations: 0.7943 MB / 1.231 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3802, allocations: 8 kB / 1.231 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3802, allocations: 0 / 1.231 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3802, allocations: 4 kB / 1.231 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008253/0.381, allocations: 99.88 kB / 1.231 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.381, allocations: 0 / 1.231 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/0.3815, allocations: 8 kB / 1.231 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/0.3817, allocations: 39.97 kB / 1.232 GB, free: 2.16 MB / 0.9825 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.0001974/0.3819, allocations: 114.3 kB / 1.232 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.88e-05/0.382, allocations: 7.953 kB / 1.232 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/0.3852, allocations: 1.4 MB / 1.233 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3852, allocations: 4 kB / 1.233 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3852, allocations: 4 kB / 1.233 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3852, allocations: 7.984 kB / 1.233 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.3883, allocations: 1.818 MB / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3883, allocations: 0 / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007963/0.3891, allocations: 107.9 kB / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3891, allocations: 0 / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.108e-05/0.3892, allocations: 31.94 kB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3892, allocations: 3.984 kB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3892, allocations: 4 kB / 1.235 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.3918, allocations: 1.471 MB / 1.236 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.331e-05/0.3919, allocations: 89 kB / 1.236 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.797e-05/0.392, allocations: 11.92 kB / 1.236 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.3925, allocations: 12 kB / 1.236 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.3926, allocations: 43.97 kB / 1.237 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-05/0.3927, allocations: 28 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.932e-05/0.3928, allocations: 79.22 kB / 1.237 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3928, allocations: 4 kB / 1.237 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006153/0.3934, allocations: 179.7 kB / 1.237 GB, free: 12.64 MB / 0.9981 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.0006531/0.394, allocations: 230.9 kB / 1.237 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001435/0.3955, allocations: 0.7184 MB / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3955, allocations: 0 / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006921/0.3962, allocations: 403.7 kB / 1.238 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.3965, allocations: 15.94 kB / 1.238 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.3998, allocations: 0.8188 MB / 1.239 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.4001, allocations: 0.7181 MB / 1.24 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001025/0.4012, allocations: 297.5 kB / 1.24 GB, free: 9.387 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.4017, allocations: 91.41 kB / 1.24 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of SimCode: time 8.32e-07/0.4017, allocations: 4 kB / 1.24 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of Templates: time 0.6819/1.084, allocations: 11.25 MB / 1.251 GB, free: 30.32 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches