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.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.001962/0.001962, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.002464/0.002464, allocations: 168.2 kB / 22.46 MB, free: 5.359 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.437/1.437, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.65/2.65, allocations: 359 MB / 0.6037 GB, free: 15 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.951 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.799e-05/2.986e-05, allocations: 4.953 kB / 0.951 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001687/0.001717, allocations: 0.6113 MB / 0.9516 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00204/0.003758, allocations: 1.307 MB / 0.9529 GB, free: 9.617 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.003788, allocations: 4 kB / 0.9529 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.931e-05/0.003807, allocations: 7.938 kB / 0.9529 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 1.952e-05/0.003827, allocations: 0 / 0.9529 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.004279, allocations: 87.53 kB / 0.953 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.101e-05/0.00435, allocations: 23.97 kB / 0.953 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.004391, allocations: 0 / 0.953 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.069e-05/0.004432, allocations: 15.98 kB / 0.953 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.004504, allocations: 11.97 kB / 0.953 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.00452, allocations: 3.938 kB / 0.953 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.004826, allocations: 111.8 kB / 0.9532 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.542e-05/0.004841, allocations: 8 kB / 0.9532 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.004868, allocations: 11.98 kB / 0.9532 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.005065, allocations: 91.69 kB / 0.9533 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.005068, allocations: 0 / 0.9533 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.61e-07/0.005069, allocations: 0 / 0.9533 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.005073, allocations: 0 / 0.9533 GB, free: 9.246 MB / 0.8575 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.0004705/0.005543, allocations: 284 kB / 0.9535 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.005581, allocations: 8.031 kB / 0.9535 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.005616, allocations: 0.9375 kB / 0.9535 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.005733, allocations: 117.8 kB / 0.9537 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.005747, allocations: 384 / 0.9537 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.005778, allocations: 4.375 kB / 0.9537 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.005931, allocations: 75.95 kB / 0.9537 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.005944, allocations: 192 / 0.9537 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.005956, allocations: 384 / 0.9537 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.005964, allocations: 7.938 kB / 0.9537 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.776e-05/0.006041, allocations: 27.91 kB / 0.9538 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.006233, allocations: 117.2 kB / 0.9539 GB, free: 8.523 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.00637, allocations: 54.56 kB / 0.9539 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.552e-05/0.006416, allocations: 24.83 kB / 0.954 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002675/0.006683, allocations: 43.97 kB / 0.954 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.006723, allocations: 34.56 kB / 0.954 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.006725, allocations: 0 / 0.954 GB, free: 8.348 MB / 0.8575 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.02885, allocations: 4.176 MB / 0.9581 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.0289, allocations: 51.41 kB / 0.9582 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.059e-05/0.02899, allocations: 93.86 kB / 0.9582 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.274e-05/0.02908, allocations: 29.7 kB / 0.9583 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.02913, allocations: 88.11 kB / 0.9584 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.02927, allocations: 59.48 kB / 0.9584 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002672/0.02953, allocations: 89.67 kB / 0.9585 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.02968, allocations: 318.8 kB / 0.9588 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005761/0.03026, allocations: 311.8 kB / 0.9591 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005802/0.03084, allocations: 321.8 kB / 0.9594 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.03253, allocations: 0.7663 MB / 0.9602 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.03253, allocations: 0 / 0.9602 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001782/0.03431, allocations: 0.8037 MB / 0.9609 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.03433, allocations: 4 kB / 0.9609 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.03434, allocations: 0 / 0.9609 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.03436, allocations: 0 / 0.9609 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008884/0.03525, allocations: 99.88 kB / 0.961 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.03526, allocations: 0 / 0.961 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005667/0.03583, allocations: 8 kB / 0.961 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-05/0.03593, allocations: 32.06 kB / 0.9611 GB, free: 0.9766 MB / 0.8575 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.0002281/0.03615, allocations: 125.8 kB / 0.9612 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-05/0.03625, allocations: 11.89 kB / 0.9612 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.03972, allocations: 1.403 MB / 0.9626 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.03973, allocations: 4 kB / 0.9626 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.03974, allocations: 3.938 kB / 0.9626 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.03974, allocations: 0 / 0.9626 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.04304, allocations: 1.663 MB / 0.9642 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.04304, allocations: 4 kB / 0.9642 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008632/0.04391, allocations: 107.9 kB / 0.9643 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.04391, allocations: 4 kB / 0.9643 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.921e-05/0.04399, allocations: 27.98 kB / 0.9643 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.044, allocations: 0 / 0.9643 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.044, allocations: 7.938 kB / 0.9644 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.04669, allocations: 1.474 MB / 0.9658 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 2.7e-05/0.04672, allocations: 19.97 kB / 0.9658 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.04682, allocations: 12 kB / 0.9658 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.04739, allocations: 12 kB / 0.9658 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.04757, allocations: 43.95 kB / 0.9659 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.174e-05/0.04765, allocations: 24 kB / 0.9659 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.838e-05/0.0477, allocations: 87.27 kB / 0.966 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of sort global known variables: time 7.1e-08/0.0477, allocations: 0 / 0.966 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006286/0.04833, allocations: 183.6 kB / 0.9662 GB, free: 11.7 MB / 0.8731 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.00064/0.04897, allocations: 246.8 kB / 0.9664 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001389/0.05036, allocations: 0.7145 MB / 0.9671 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.05036, allocations: 0 / 0.9671 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007031/0.05107, allocations: 403.7 kB / 0.9675 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.05142, allocations: 13.88 kB / 0.9675 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.05519, allocations: 0.7851 MB / 0.9683 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.05531, allocations: 111.6 kB / 0.9684 GB, free: 9.371 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.00106/0.05637, allocations: 285.5 kB / 0.9686 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.05698, allocations: 100.4 kB / 0.9687 GB, free: 8.996 MB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/0.05698, allocations: 4 kB / 0.9687 GB, free: 8.992 MB / 0.8731 GB Notification: Performance of Templates: time 0.01947/0.07645, allocations: 11.96 MB / 0.9804 GB, free: 13.11 MB / 0.8887 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.890304010361433]