Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 216.5 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.291/3.291, allocations: 0.4892 GB / 0.7943 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 72.09 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3573, allocations: 176.1 MB / 1.326 GB, free: 1.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001778/0.3591, allocations: 0.608 MB / 1.326 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001897/0.361, allocations: 1.303 MB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.577e-05/0.361, allocations: 0 / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.736e-05/0.3611, allocations: 0 / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.002e-05/0.3611, allocations: 11.94 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.3615, allocations: 79.67 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.37e-05/0.3615, allocations: 19.97 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/0.3616, allocations: 8 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.155e-05/0.3616, allocations: 7.984 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.397e-05/0.3617, allocations: 11.92 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.3617, allocations: 4 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.362, allocations: 119.8 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.362, allocations: 7.969 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.362, allocations: 15.94 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.3622, allocations: 79.72 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3622, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3622, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.3622, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 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.0004644/0.3627, allocations: 274.2 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.3627, allocations: 8.031 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.3627, allocations: 4.922 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.3629, allocations: 106.5 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.3629, allocations: 4.375 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.3629, allocations: 8.375 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.363, allocations: 91.56 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3631, allocations: 3.984 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.3631, allocations: 0 / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3631, allocations: 4 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.37e-05/0.3631, allocations: 19.98 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.3633, allocations: 117.2 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.3634, allocations: 54.56 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.3635, allocations: 24.84 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002557/0.3637, allocations: 43.97 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.3638, allocations: 42.48 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.3638, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 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.02033/0.3841, allocations: 4.162 MB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.3842, allocations: 51.41 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.986e-05/0.3843, allocations: 97.84 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.018e-05/0.3843, allocations: 29.7 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.46e-05/0.3844, allocations: 80.14 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3845, allocations: 67.41 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/0.3848, allocations: 89.67 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3849, allocations: 322.8 kB / 1.333 GB, free: 9.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.3855, allocations: 307.9 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000565/0.386, allocations: 313.9 kB / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.3877, allocations: 0.7741 MB / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3877, allocations: 0 / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001669/0.3894, allocations: 0.7997 MB / 1.335 GB, free: 7.402 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3894, allocations: 7.984 kB / 1.335 GB, free: 7.395 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3894, allocations: 0 / 1.335 GB, free: 7.395 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3894, allocations: 3.984 kB / 1.335 GB, free: 7.391 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008846/0.3903, allocations: 91.95 kB / 1.336 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3903, allocations: 0 / 1.336 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005627/0.3909, allocations: 8 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.722e-05/0.391, allocations: 35.97 kB / 1.336 GB, free: 7.258 MB / 1.029 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.0002242/0.3912, allocations: 130.2 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.543e-05/0.3913, allocations: 4 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/0.3947, allocations: 1.399 MB / 1.337 GB, free: 5.703 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.3947, allocations: 4 kB / 1.337 GB, free: 5.699 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3947, allocations: 0 / 1.337 GB, free: 5.699 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3947, allocations: 3.984 kB / 1.337 GB, free: 5.695 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.398, allocations: 1.669 MB / 1.339 GB, free: 3.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.398, allocations: 0 / 1.339 GB, free: 3.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008759/0.3989, allocations: 107.9 kB / 1.339 GB, free: 3.875 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/0.3989, allocations: 4 kB / 1.339 GB, free: 3.871 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-05/0.399, allocations: 24 kB / 1.339 GB, free: 3.848 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.399, allocations: 0 / 1.339 GB, free: 3.848 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.399, allocations: 7.938 kB / 1.339 GB, free: 3.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002707/0.4017, allocations: 1.474 MB / 1.34 GB, free: 2.348 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.4017, allocations: 15.88 kB / 1.34 GB, free: 2.332 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.007e-05/0.4018, allocations: 12.09 kB / 1.34 GB, free: 2.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005621/0.4024, allocations: 12 kB / 1.34 GB, free: 2.309 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4025, allocations: 55.81 kB / 1.34 GB, free: 2.254 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.541e-05/0.4026, allocations: 32 kB / 1.34 GB, free: 2.223 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.028e-05/0.4027, allocations: 79.28 kB / 1.341 GB, free: 2.145 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4027, allocations: 0 / 1.341 GB, free: 2.145 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0006444/0.4033, allocations: 183.7 kB / 1.341 GB, free: 1.965 MB / 1.029 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.0006168/0.4039, allocations: 222.8 kB / 1.341 GB, free: 1.738 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001422/0.4054, allocations: 0.7185 MB / 1.342 GB, free: 1.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.4054, allocations: 0 / 1.342 GB, free: 1.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.4061, allocations: 403.6 kB / 1.342 GB, free: 0.625 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.4064, allocations: 19.06 kB / 1.342 GB, free: 0.6094 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.4101, allocations: 0.7964 MB / 1.343 GB, free: 15.79 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.4102, allocations: 99.47 kB / 1.343 GB, free: 15.67 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001094/0.4113, allocations: 293.5 kB / 1.343 GB, free: 15.38 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005644/0.4118, allocations: 95.41 kB / 1.343 GB, free: 15.28 MB / 1.045 GB Notification: Performance of SimCode: time 9.61e-07/0.4118, allocations: 0 / 1.343 GB, free: 15.28 MB / 1.045 GB Notification: Performance of Templates: time 0.01988/0.4317, allocations: 12.04 MB / 1.355 GB, free: 3.312 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.254656128585339]