Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 186.1 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.103/3.103, allocations: 495.7 MB / 0.7831 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 65.81 kB / 1.137 GB, free: 34.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3286, allocations: 173.6 MB / 1.307 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002128/0.3307, allocations: 0.64 MB / 1.308 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001777/0.3325, allocations: 1.303 MB / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.638e-05/0.3326, allocations: 0 / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.3326, allocations: 0 / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.324e-05/0.3326, allocations: 0 / 1.309 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.333, allocations: 79.67 kB / 1.309 GB, free: 28 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.142e-05/0.3331, allocations: 23.92 kB / 1.309 GB, free: 4 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.181e-05/0.3331, allocations: 0 / 1.309 GB, free: 4 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.894e-05/0.3331, allocations: 8.078 kB / 1.309 GB, free: 15.99 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.586e-05/0.3332, allocations: 23.91 kB / 1.309 GB, free: 15.97 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.3332, allocations: 0 / 1.309 GB, free: 15.97 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.3334, allocations: 103.9 kB / 1.309 GB, free: 15.87 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.3335, allocations: 4 kB / 1.309 GB, free: 15.86 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.3335, allocations: 11.92 kB / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.3336, allocations: 71.72 kB / 1.309 GB, free: 15.78 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3336, allocations: 0 / 1.309 GB, free: 15.78 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3336, allocations: 0 / 1.309 GB, free: 15.78 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3336, allocations: 4 kB / 1.309 GB, free: 15.78 MB / 1.014 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.0004772/0.3341, allocations: 270.3 kB / 1.309 GB, free: 15.48 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3342, allocations: 12.92 kB / 1.309 GB, free: 15.47 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.3342, allocations: 4.938 kB / 1.309 GB, free: 15.47 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.3343, allocations: 114.3 kB / 1.31 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.3343, allocations: 4.375 kB / 1.31 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.3343, allocations: 4.375 kB / 1.31 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.3345, allocations: 57.98 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3345, allocations: 0 / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.3345, allocations: 0 / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3345, allocations: 7.938 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.337e-05/0.3346, allocations: 19.98 kB / 1.31 GB, free: 15.24 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.3348, allocations: 136.8 kB / 1.31 GB, free: 15.06 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.3349, allocations: 62.48 kB / 1.31 GB, free: 14.99 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.465e-05/0.3349, allocations: 20.86 kB / 1.31 GB, free: 14.97 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002637/0.3352, allocations: 35.97 kB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3352, allocations: 46.48 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.3352, allocations: 0 / 1.31 GB, free: 14.88 MB / 1.014 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.02061/0.3558, allocations: 4.15 MB / 1.314 GB, free: 10.63 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3559, allocations: 59.31 kB / 1.314 GB, free: 10.56 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.356, allocations: 97.84 kB / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.185e-05/0.356, allocations: 29.7 kB / 1.314 GB, free: 10.42 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.3561, allocations: 80.14 kB / 1.314 GB, free: 10.34 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3562, allocations: 59.48 kB / 1.314 GB, free: 10.28 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.3565, allocations: 89.67 kB / 1.314 GB, free: 10.18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3566, allocations: 322.8 kB / 1.315 GB, free: 9.859 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.3572, allocations: 308 kB / 1.315 GB, free: 9.559 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/0.3577, allocations: 315.8 kB / 1.315 GB, free: 9.25 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.3593, allocations: 0.7762 MB / 1.316 GB, free: 8.473 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3593, allocations: 0 / 1.316 GB, free: 8.473 MB / 1.014 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001735/0.3611, allocations: 0.7981 MB / 1.317 GB, free: 7.668 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.3611, allocations: 5.406 kB / 1.317 GB, free: 7.664 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3611, allocations: 0 / 1.317 GB, free: 7.664 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3611, allocations: 0 / 1.317 GB, free: 7.664 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008818/0.362, allocations: 95.88 kB / 1.317 GB, free: 7.57 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.362, allocations: 4 kB / 1.317 GB, free: 7.566 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/0.3626, allocations: 12 kB / 1.317 GB, free: 7.555 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.293e-05/0.3627, allocations: 40.91 kB / 1.317 GB, free: 7.516 MB / 1.014 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.0002133/0.3629, allocations: 125.7 kB / 1.317 GB, free: 7.383 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.363, allocations: 11.89 kB / 1.317 GB, free: 7.371 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003372/0.3663, allocations: 1.392 MB / 1.319 GB, free: 5.973 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.3663, allocations: 8 kB / 1.319 GB, free: 5.965 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3663, allocations: 0 / 1.319 GB, free: 5.965 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3664, allocations: 3.984 kB / 1.319 GB, free: 5.961 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.3695, allocations: 1.786 MB / 1.32 GB, free: 4.113 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3695, allocations: 0 / 1.32 GB, free: 4.113 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008578/0.3704, allocations: 107.9 kB / 1.32 GB, free: 4.008 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/0.3704, allocations: 4 kB / 1.32 GB, free: 4.004 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.534e-05/0.3705, allocations: 31.97 kB / 1.32 GB, free: 3.973 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.3705, allocations: 4 kB / 1.32 GB, free: 3.969 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3705, allocations: 0 / 1.32 GB, free: 3.969 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.3731, allocations: 1.466 MB / 1.322 GB, free: 2.484 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/0.3731, allocations: 19.88 kB / 1.322 GB, free: 2.465 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.741e-05/0.3732, allocations: 11.94 kB / 1.322 GB, free: 2.453 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.3737, allocations: 8 kB / 1.322 GB, free: 2.445 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.3739, allocations: 52 kB / 1.322 GB, free: 2.395 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.789e-05/0.374, allocations: 28 kB / 1.322 GB, free: 2.367 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.188e-05/0.374, allocations: 79.28 kB / 1.322 GB, free: 2.289 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.374, allocations: 0 / 1.322 GB, free: 2.289 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006075/0.3746, allocations: 183.7 kB / 1.322 GB, free: 2.109 MB / 1.014 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.0005184/0.3751, allocations: 215.6 kB / 1.322 GB, free: 1.891 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001331/0.3765, allocations: 0.7146 MB / 1.323 GB, free: 1.176 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3765, allocations: 4 kB / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006714/0.3771, allocations: 408 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3775, allocations: 16 kB / 1.324 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.3811, allocations: 0.804 MB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.3814, allocations: 0.722 MB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001047/0.3825, allocations: 297.4 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/0.383, allocations: 95.34 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of SimCode: time 5.81e-07/0.383, allocations: 3.938 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of Templates: time 0.01845/0.4015, allocations: 11.74 MB / 1.337 GB, free: 3.09 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.841293967328966]