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.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.00256/0.00256, allocations: 89.48 kB / 19.44 MB, free: 336 kB / 13.93 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.00303/0.00303, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.551/1.551, allocations: 177.1 MB / 203.1 MB, free: 5.535 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.553/3.553, allocations: 429.5 MB / 0.6729 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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 1.393e-06/1.393e-06, allocations: 0 / 0.8775 GB, free: 6.621 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.546e-05, allocations: 7.062 kB / 0.8775 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001697/0.001722, allocations: 0.6276 MB / 0.8781 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002091/0.003813, allocations: 1.327 MB / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.49e-05/0.003838, allocations: 0 / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.215e-05/0.00385, allocations: 0 / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.973e-05/0.00388, allocations: 1.094 kB / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.004319, allocations: 88.25 kB / 0.8795 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.374e-05/0.004383, allocations: 19.97 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.004417, allocations: 9.531 kB / 0.8795 GB, free: 4.559 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.423e-05/0.004471, allocations: 15.92 kB / 0.8795 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.004544, allocations: 11.97 kB / 0.8796 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.004559, allocations: 4 kB / 0.8796 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003044/0.004863, allocations: 106.7 kB / 0.8797 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.00488, allocations: 7.984 kB / 0.8797 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.004906, allocations: 11.92 kB / 0.8797 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.005102, allocations: 87.77 kB / 0.8798 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.005105, allocations: 0 / 0.8798 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.42e-07/0.005105, allocations: 0 / 0.8798 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.005109, allocations: 0 / 0.8798 GB, free: 4.32 MB / 0.8386 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.0005407/0.00565, allocations: 381.8 kB / 0.8801 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.005689, allocations: 12.03 kB / 0.8801 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.475e-05/0.005734, allocations: 0.9375 kB / 0.8801 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.005869, allocations: 120.5 kB / 0.8802 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.005882, allocations: 1 kB / 0.8803 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.00591, allocations: 8.375 kB / 0.8803 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.006054, allocations: 76.72 kB / 0.8803 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.006068, allocations: 192 / 0.8803 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.006083, allocations: 9.125 kB / 0.8803 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.006089, allocations: 3.938 kB / 0.8803 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.883e-05/0.006168, allocations: 19.98 kB / 0.8804 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002/0.006368, allocations: 128.6 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.006509, allocations: 70.92 kB / 0.8806 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/0.006563, allocations: 31.66 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002827/0.006846, allocations: 39.97 kB / 0.8806 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.006886, allocations: 33.39 kB / 0.8807 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.006887, allocations: 0 / 0.8807 GB, free: 3.273 MB / 0.8386 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.0224/0.02928, allocations: 6.01 MB / 0.8865 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.02933, allocations: 51.41 kB / 0.8866 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.02944, allocations: 157.9 kB / 0.8867 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.149e-05/0.02951, allocations: 29.7 kB / 0.8868 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.863e-05/0.02958, allocations: 126.9 kB / 0.8869 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.02969, allocations: 55.55 kB / 0.8869 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.02998, allocations: 99.45 kB / 0.887 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002562/0.03024, allocations: 0.4962 MB / 0.8875 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008469/0.03109, allocations: 0.5506 MB / 0.888 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.03193, allocations: 0.553 MB / 0.8886 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/0.03414, allocations: 1.269 MB / 0.8898 GB, free: 9.711 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.03414, allocations: 4 kB / 0.8898 GB, free: 9.707 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002371/0.03651, allocations: 1.308 MB / 0.8911 GB, free: 8.395 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.03653, allocations: 11.98 kB / 0.8911 GB, free: 8.383 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.03654, allocations: 0 / 0.8911 GB, free: 8.383 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.03655, allocations: 0 / 0.8911 GB, free: 8.383 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000918/0.03747, allocations: 91.89 kB / 0.8912 GB, free: 8.293 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.03748, allocations: 4 kB / 0.8912 GB, free: 8.289 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.03807, allocations: 12 kB / 0.8912 GB, free: 8.277 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.43e-05/0.03817, allocations: 39.97 kB / 0.8913 GB, free: 8.238 MB / 0.8542 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.0002336/0.0384, allocations: 164.6 kB / 0.8914 GB, free: 8.066 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.03854, allocations: 11.89 kB / 0.8914 GB, free: 8.055 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003725/0.04226, allocations: 1.517 MB / 0.8929 GB, free: 6.531 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.04227, allocations: 4 kB / 0.8929 GB, free: 6.527 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.04228, allocations: 0 / 0.8929 GB, free: 6.527 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.04228, allocations: 3.984 kB / 0.8929 GB, free: 6.523 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.04578, allocations: 1.845 MB / 0.8947 GB, free: 4.633 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.04578, allocations: 0 / 0.8947 GB, free: 4.633 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008867/0.04667, allocations: 107.9 kB / 0.8948 GB, free: 4.527 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.04668, allocations: 4 kB / 0.8948 GB, free: 4.523 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.012e-05/0.04676, allocations: 24 kB / 0.8948 GB, free: 4.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.04676, allocations: 8.031 kB / 0.8949 GB, free: 4.492 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.04677, allocations: 0 / 0.8949 GB, free: 4.492 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/0.04977, allocations: 1.692 MB / 0.8965 GB, free: 2.773 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.0498, allocations: 15.84 kB / 0.8965 GB, free: 2.758 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.876e-05/0.0499, allocations: 8 kB / 0.8965 GB, free: 2.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005594/0.05046, allocations: 8 kB / 0.8965 GB, free: 2.742 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.05064, allocations: 47.94 kB / 0.8966 GB, free: 2.695 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.23e-05/0.05072, allocations: 32 kB / 0.8966 GB, free: 2.664 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.301e-05/0.0508, allocations: 119.2 kB / 0.8967 GB, free: 2.547 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.0508, allocations: 0 / 0.8967 GB, free: 2.547 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006311/0.05143, allocations: 191.7 kB / 0.8969 GB, free: 2.359 MB / 0.8542 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.0005728/0.052, allocations: 242.8 kB / 0.8971 GB, free: 2.113 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001844/0.05384, allocations: 1.046 MB / 0.8982 GB, free: 1.062 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.05385, allocations: 4 kB / 0.8982 GB, free: 1.059 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0008099/0.05466, allocations: 487.4 kB / 0.8986 GB, free: 0.5781 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.055, allocations: 40.16 kB / 0.8987 GB, free: 0.543 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.05894, allocations: 0.8512 MB / 0.8995 GB, free: 15.66 MB / 0.8699 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.05906, allocations: 111.3 kB / 0.8996 GB, free: 15.53 MB / 0.8699 GB Notification: Performance of simCode: alias equations: time 0.001114/0.06018, allocations: 293.5 kB / 0.8999 GB, free: 15.24 MB / 0.8699 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005894/0.06077, allocations: 100.4 kB / 0.9 GB, free: 15.14 MB / 0.8699 GB Notification: Performance of SimCode: time 1.372e-06/0.06077, allocations: 0 / 0.9 GB, free: 15.14 MB / 0.8699 GB Notification: Performance of Templates: time 0.02258/0.08335, allocations: 12.28 MB / 0.912 GB, free: 2.945 MB / 0.8699 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] 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.801225519971922]