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.001282/0.001282, allocations: 77.23 kB / 19.76 MB, free: 2.031 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.001371/0.001371, allocations: 158.3 kB / 23.01 MB, free: 4.941 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.416/1.416, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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 2.825/2.825, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 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.002293/0.002293, allocations: 67.84 kB / 0.982 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8098/0.812, allocations: 176.1 MB / 1.154 GB, free: 33.33 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00156/0.8136, allocations: 0.612 MB / 1.155 GB, free: 32.96 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.8148, allocations: 1.307 MB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.628e-05/0.8149, allocations: 0 / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.305e-05/0.8149, allocations: 0 / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 2.233e-05/0.8149, allocations: 7.938 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.8153, allocations: 78.67 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 5.165e-05/0.8153, allocations: 26.88 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.581e-05/0.8153, allocations: 0 / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.8154, allocations: 13 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.529e-05/0.8154, allocations: 17.16 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.8154, allocations: 0 / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.8157, allocations: 112.3 kB / 1.156 GB, free: 31.93 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.8157, allocations: 6.828 kB / 1.156 GB, free: 31.93 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.071e-05/0.8157, allocations: 18.31 kB / 1.156 GB, free: 31.92 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.8159, allocations: 71.44 kB / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8159, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.213e-06/0.8159, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.8159, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 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.0003449/0.8162, allocations: 278.1 kB / 1.156 GB, free: 31.62 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.798e-05/0.8162, allocations: 8.594 kB / 1.156 GB, free: 31.62 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.8163, allocations: 11.08 kB / 1.156 GB, free: 31.62 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.607e-05/0.8163, allocations: 109.3 kB / 1.157 GB, free: 31.49 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.8164, allocations: 7.281 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.8164, allocations: 7.25 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.8165, allocations: 90 kB / 1.157 GB, free: 31.4 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.8165, allocations: 0 / 1.157 GB, free: 31.4 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.8165, allocations: 3.938 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.8165, allocations: 0 / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.512e-05/0.8166, allocations: 21.67 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001098/0.8167, allocations: 117.1 kB / 1.157 GB, free: 31.26 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 9.861e-05/0.8168, allocations: 52.95 kB / 1.157 GB, free: 31.22 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.8168, allocations: 24 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002197/0.817, allocations: 45.33 kB / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.8171, allocations: 34.5 kB / 1.157 GB, free: 31.16 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.8171, allocations: 3.938 kB / 1.157 GB, free: 31.15 MB / 1.076 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.01863/0.8357, allocations: 4.167 MB / 1.161 GB, free: 29.59 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.8357, allocations: 57.94 kB / 1.161 GB, free: 29.52 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.135e-05/0.8358, allocations: 89.86 kB / 1.161 GB, free: 29.42 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/0.8358, allocations: 32.39 kB / 1.161 GB, free: 29.39 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 1.337e-05/0.8358, allocations: 80.14 kB / 1.161 GB, free: 29.3 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.492e-05/0.8359, allocations: 66.75 kB / 1.161 GB, free: 29.25 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/0.8361, allocations: 92.97 kB / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.545e-05/0.8362, allocations: 321.3 kB / 1.162 GB, free: 28.91 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/0.8366, allocations: 306.5 kB / 1.162 GB, free: 28.78 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004281/0.837, allocations: 313.4 kB / 1.162 GB, free: 28.65 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.8384, allocations: 0.7665 MB / 1.163 GB, free: 28.32 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.8384, allocations: 4 kB / 1.163 GB, free: 28.32 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001343/0.8397, allocations: 0.8051 MB / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.8397, allocations: 7.562 kB / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.8397, allocations: 0 / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.8397, allocations: 0 / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008075/0.8405, allocations: 90.94 kB / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.8405, allocations: 3.938 kB / 1.164 GB, free: 27.98 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.8411, allocations: 9.594 kB / 1.164 GB, free: 27.97 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/0.8412, allocations: 34.03 kB / 1.164 GB, free: 27.97 MB / 1.076 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.0001417/0.8413, allocations: 127.2 kB / 1.164 GB, free: 27.84 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.432e-05/0.8414, allocations: 6.625 kB / 1.164 GB, free: 27.84 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/0.844, allocations: 1.395 MB / 1.165 GB, free: 27.19 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.844, allocations: 9.25 kB / 1.165 GB, free: 27.19 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.844, allocations: 0 / 1.165 GB, free: 27.19 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.844, allocations: 0 / 1.165 GB, free: 27.19 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/0.8464, allocations: 1.674 MB / 1.167 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8464, allocations: 2.719 kB / 1.167 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.8472, allocations: 111.5 kB / 1.167 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.8472, allocations: 0 / 1.167 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.8473, allocations: 26.09 kB / 1.167 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.8473, allocations: 7.125 kB / 1.167 GB, free: 26.2 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.8473, allocations: 3.938 kB / 1.167 GB, free: 26.2 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.8498, allocations: 1.466 MB / 1.169 GB, free: 25.45 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.339e-05/0.8498, allocations: 17.56 kB / 1.169 GB, free: 25.43 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.385e-05/0.8499, allocations: 11.59 kB / 1.169 GB, free: 25.43 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.8504, allocations: 9.469 kB / 1.169 GB, free: 25.42 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.8506, allocations: 49.19 kB / 1.169 GB, free: 25.41 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/0.8506, allocations: 34.97 kB / 1.169 GB, free: 25.41 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.717e-05/0.8507, allocations: 80.59 kB / 1.169 GB, free: 25.33 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/0.8507, allocations: 0 / 1.169 GB, free: 25.33 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005588/0.8512, allocations: 180 kB / 1.169 GB, free: 25.3 MB / 1.076 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.0004343/0.8516, allocations: 231.5 kB / 1.169 GB, free: 25.18 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001125/0.8528, allocations: 0.7159 MB / 1.17 GB, free: 24.89 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8528, allocations: 4 kB / 1.17 GB, free: 24.89 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005741/0.8534, allocations: 403.3 kB / 1.17 GB, free: 24.72 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.8537, allocations: 12.34 kB / 1.17 GB, free: 24.71 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.8571, allocations: 0.7899 MB / 1.171 GB, free: 24.34 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.5e-05/0.8571, allocations: 101.1 kB / 1.171 GB, free: 24.27 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0009487/0.8581, allocations: 300 kB / 1.172 GB, free: 24.12 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005162/0.8586, allocations: 93.48 kB / 1.172 GB, free: 24.1 MB / 1.076 GB Notification: Performance of SimCode: time 4.91e-07/0.8586, allocations: 0 / 1.172 GB, free: 24.1 MB / 1.076 GB Notification: Performance of Templates: time 0.0182/0.8768, allocations: 11.97 MB / 1.183 GB, free: 23.02 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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: 8.64674003701657]