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.001515/0.001515, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.00173/0.00173, allocations: 212.2 kB / 22.99 MB, free: 4.957 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.235/3.235, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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.001991/0.001991, allocations: 67.55 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4058, allocations: 176.1 MB / 1.327 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00204/0.4078, allocations: 0.6204 MB / 1.328 GB, free: 292 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.4099, allocations: 1.307 MB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.172e-05/0.4099, allocations: 4 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.4099, allocations: 3.938 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.247e-05/0.4099, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000462/0.4104, allocations: 83.72 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.175e-05/0.4105, allocations: 27.92 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.606e-05/0.4105, allocations: 0 / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.234e-05/0.4106, allocations: 11.98 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.046e-05/0.4107, allocations: 19.91 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.4107, allocations: 0 / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003213/0.411, allocations: 111.9 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.186e-05/0.411, allocations: 7.922 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.411, allocations: 12 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.4112, allocations: 79.7 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4112, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4112, allocations: 4 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.4112, allocations: 0 / 1.329 GB, free: 14.6 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.0005244/0.4118, allocations: 282.2 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.4118, allocations: 11.97 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.4119, allocations: 4.938 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.412, allocations: 102.5 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.412, allocations: 4.375 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.412, allocations: 8.312 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.4122, allocations: 91.62 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.4122, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.4122, allocations: 8 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.4122, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.347e-05/0.4123, allocations: 19.98 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.4125, allocations: 117.2 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.4127, allocations: 58.48 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.944e-05/0.4127, allocations: 24.86 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002872/0.413, allocations: 39.95 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.413, allocations: 38.56 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.413, allocations: 0 / 1.33 GB, free: 13.69 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.02213/0.4352, allocations: 4.166 MB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4352, allocations: 51.41 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.4353, allocations: 93.86 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.501e-05/0.4354, allocations: 33.83 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.4354, allocations: 80.14 kB / 1.334 GB, free: 9.141 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.4356, allocations: 59.48 kB / 1.334 GB, free: 9.082 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002786/0.4359, allocations: 93.66 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.436, allocations: 318.8 kB / 1.335 GB, free: 8.664 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005998/0.4366, allocations: 311.9 kB / 1.335 GB, free: 8.359 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005721/0.4372, allocations: 313.4 kB / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.4389, allocations: 0.7761 MB / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.4389, allocations: 0 / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001711/0.4406, allocations: 0.7982 MB / 1.337 GB, free: 6.473 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4406, allocations: 4 kB / 1.337 GB, free: 6.469 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.4406, allocations: 4 kB / 1.337 GB, free: 6.465 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.4406, allocations: 4 kB / 1.337 GB, free: 6.461 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008609/0.4415, allocations: 91.94 kB / 1.337 GB, free: 6.371 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.4415, allocations: 3.938 kB / 1.337 GB, free: 6.367 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.442, allocations: 8 kB / 1.337 GB, free: 6.359 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.201e-05/0.4421, allocations: 31.98 kB / 1.337 GB, free: 6.328 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.0002219/0.4423, allocations: 122.3 kB / 1.337 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.665e-05/0.4424, allocations: 4 kB / 1.337 GB, free: 6.195 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.4456, allocations: 1.407 MB / 1.339 GB, free: 4.773 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.4457, allocations: 4 kB / 1.339 GB, free: 4.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4457, allocations: 0 / 1.339 GB, free: 4.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4457, allocations: 0 / 1.339 GB, free: 4.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.4488, allocations: 1.665 MB / 1.34 GB, free: 3.059 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4488, allocations: 0 / 1.34 GB, free: 3.059 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008295/0.4497, allocations: 111.9 kB / 1.34 GB, free: 2.949 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.4497, allocations: 4 kB / 1.34 GB, free: 2.945 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.921e-05/0.4497, allocations: 27.98 kB / 1.34 GB, free: 2.918 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.4498, allocations: 4 kB / 1.34 GB, free: 2.914 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4498, allocations: 3.938 kB / 1.34 GB, free: 2.91 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.4524, allocations: 1.466 MB / 1.342 GB, free: 1.426 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.818e-05/0.4524, allocations: 23.88 kB / 1.342 GB, free: 1.402 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.857e-05/0.4525, allocations: 11.98 kB / 1.342 GB, free: 1.391 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000511/0.453, allocations: 12 kB / 1.342 GB, free: 1.379 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.4532, allocations: 47.89 kB / 1.342 GB, free: 1.332 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.839e-05/0.4532, allocations: 28.06 kB / 1.342 GB, free: 1.305 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.884e-05/0.4533, allocations: 83.28 kB / 1.342 GB, free: 1.223 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4533, allocations: 0 / 1.342 GB, free: 1.223 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000638/0.4539, allocations: 183.7 kB / 1.342 GB, free: 1.043 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.0005703/0.4545, allocations: 234.7 kB / 1.342 GB, free: 0.8047 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001357/0.4558, allocations: 0.7183 MB / 1.343 GB, free: 88 kB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4558, allocations: 0 / 1.343 GB, free: 88 kB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007065/0.4566, allocations: 399.8 kB / 1.344 GB, free: 15.69 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.4569, allocations: 25.34 kB / 1.344 GB, free: 15.67 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.4602, allocations: 0.7905 MB / 1.344 GB, free: 14.85 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.4604, allocations: 103.5 kB / 1.344 GB, free: 14.73 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001063/0.4614, allocations: 293.5 kB / 1.345 GB, free: 14.43 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005857/0.462, allocations: 91.41 kB / 1.345 GB, free: 14.34 MB / 1.045 GB Notification: Performance of SimCode: time 1.082e-06/0.462, allocations: 0 / 1.345 GB, free: 14.34 MB / 1.045 GB Notification: Performance of Templates: time 0.01922/0.4812, allocations: 12.13 MB / 1.357 GB, free: 2.277 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 -s gbode -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/jenkins1/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.251022164011374]