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.001067/0.001067, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001702/0.002769, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001096/0.001096, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001591/0.002687, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9739/0.9739, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1122/1.086, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.862/1.862, allocations: 378.4 MB / 0.6079 GB, free: 7.695 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5355/2.397, allocations: 123.3 MB / 0.7283 GB, free: 5.711 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0.5469 kB / 0.7297 GB, free: 4.324 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.852e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.32 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001978/0.002007, allocations: 0.6815 MB / 0.7304 GB, free: 3.668 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001778/0.003785, allocations: 1.355 MB / 0.7317 GB, free: 2.309 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.003814, allocations: 0.6875 kB / 0.7317 GB, free: 2.309 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 9.358e-06/0.003823, allocations: 5 kB / 0.7317 GB, free: 2.305 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 1.169e-05/0.003835, allocations: 0 / 0.7317 GB, free: 2.305 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.004152, allocations: 76.48 kB / 0.7318 GB, free: 2.234 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 6.97e-05/0.004221, allocations: 22.28 kB / 0.7318 GB, free: 2.215 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.361e-05/0.004265, allocations: 4 kB / 0.7318 GB, free: 2.211 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 5.968e-05/0.004325, allocations: 21.39 kB / 0.7318 GB, free: 2.191 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.281e-05/0.004407, allocations: 13.45 kB / 0.7318 GB, free: 2.18 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.004422, allocations: 0 / 0.7318 GB, free: 2.18 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.004751, allocations: 120.5 kB / 0.732 GB, free: 2.062 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.289e-05/0.004773, allocations: 5.641 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.004794, allocations: 5.484 kB / 0.732 GB, free: 2.055 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.004969, allocations: 74.2 kB / 0.732 GB, free: 1.984 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.438e-05/0.004983, allocations: 4.547 kB / 0.732 GB, free: 1.98 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.413e-06/0.004984, allocations: 1.406 kB / 0.732 GB, free: 1.98 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.508e-05/0.004999, allocations: 0 / 0.732 GB, free: 1.98 MB / 0.698 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.0005/0.005499, allocations: 265.2 kB / 0.7323 GB, free: 1.699 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.00554, allocations: 8.562 kB / 0.7323 GB, free: 1.691 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.144e-05/0.005581, allocations: 4.938 kB / 0.7323 GB, free: 1.688 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.005685, allocations: 107.2 kB / 0.7324 GB, free: 1.559 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.005704, allocations: 12.36 kB / 0.7324 GB, free: 1.547 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.005742, allocations: 5.141 kB / 0.7324 GB, free: 1.543 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.005869, allocations: 73.03 kB / 0.7325 GB, free: 1.461 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.005881, allocations: 4.172 kB / 0.7325 GB, free: 1.457 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.005891, allocations: 4.359 kB / 0.7325 GB, free: 1.453 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.0059, allocations: 8.438 kB / 0.7325 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.856e-05/0.005949, allocations: 9.594 kB / 0.7325 GB, free: 1.438 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.006066, allocations: 73 kB / 0.7326 GB, free: 1.352 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.00617, allocations: 55.22 kB / 0.7326 GB, free: 1.289 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.56e-05/0.006196, allocations: 16.84 kB / 0.7327 GB, free: 1.27 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002107/0.006406, allocations: 41.94 kB / 0.7327 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.006433, allocations: 30.56 kB / 0.7327 GB, free: 1.191 MB / 0.698 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.006434, allocations: 1.594 kB / 0.7327 GB, free: 1.191 MB / 0.698 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.01528/0.02172, allocations: 8.615 MB / 0.7411 GB, free: 8.645 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.02175, allocations: 59.39 kB / 0.7412 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.02183, allocations: 102.7 kB / 0.7413 GB, free: 8.461 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.02194, allocations: 29.7 kB / 0.7413 GB, free: 8.426 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.971e-05/0.02197, allocations: 84.27 kB / 0.7414 GB, free: 8.34 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.02211, allocations: 59.48 kB / 0.7415 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.02234, allocations: 61.58 kB / 0.7415 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.129e-05/0.02242, allocations: 322.8 kB / 0.7418 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000499/0.02292, allocations: 0.665 MB / 0.7425 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.02343, allocations: 0.6717 MB / 0.7431 GB, free: 6.555 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.0247, allocations: 1.433 MB / 0.7445 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.0247, allocations: 0 / 0.7445 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001237/0.02594, allocations: 1.423 MB / 0.7459 GB, free: 3.691 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.02596, allocations: 7.938 kB / 0.7459 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.02597, allocations: 3.938 kB / 0.7459 GB, free: 3.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.02598, allocations: 4 kB / 0.7459 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007681/0.02675, allocations: 127.8 kB / 0.7461 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.02675, allocations: 1.562 kB / 0.7461 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.02705, allocations: 12 kB / 0.7461 GB, free: 3.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.02713, allocations: 19.94 kB / 0.7461 GB, free: 3.52 MB / 0.7136 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.0002358/0.02737, allocations: 121.8 kB / 0.7462 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.02755, allocations: 15.92 kB / 0.7462 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.03096, allocations: 1.973 MB / 0.7482 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.03097, allocations: 8 kB / 0.7482 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.03097, allocations: 0 / 0.7482 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.03098, allocations: 7.984 kB / 0.7482 GB, free: 1.375 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.03329, allocations: 1.866 MB / 0.75 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.03329, allocations: 0 / 0.75 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008698/0.03416, allocations: 207.8 kB / 0.7502 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.0342, allocations: 39.62 kB / 0.7502 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.03421, allocations: 3.984 kB / 0.7502 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.786e-05/0.03427, allocations: 12 kB / 0.7502 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.03428, allocations: 11.92 kB / 0.7503 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.03428, allocations: 0 / 0.7503 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.03617, allocations: 1.644 MB / 0.7519 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.03628, allocations: 12 kB / 0.7519 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.03664, allocations: 28 kB / 0.7519 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.03682, allocations: 64.94 kB / 0.752 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.448e-05/0.0369, allocations: 15.98 kB / 0.752 GB, free: 13.44 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 1.907e-05/0.03691, allocations: 4.859 kB / 0.752 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.03691, allocations: 0 / 0.752 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006431/0.03756, allocations: 267.6 kB / 0.7522 GB, free: 13.17 MB / 0.7292 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 (89): * Single equations (assignments): 89 * 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.000496/0.03805, allocations: 247.8 kB / 0.7525 GB, free: 12.92 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001176/0.03923, allocations: 1.23 MB / 0.7537 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.226e-05/0.03925, allocations: 4 kB / 0.7537 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0005995/0.03985, allocations: 0.6118 MB / 0.7543 GB, free: 11.06 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.04016, allocations: 63.84 kB / 0.7543 GB, free: 11 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.04267, allocations: 1.116 MB / 0.7554 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.247e-05/0.04273, allocations: 104 kB / 0.7555 GB, free: 9.73 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.001595/0.04432, allocations: 0.6976 MB / 0.7562 GB, free: 9.035 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.04541, allocations: 131.3 kB / 0.7563 GB, free: 8.906 MB / 0.7292 GB Notification: Performance of SimCode: time 2.415e-06/0.04541, allocations: 0 / 0.7563 GB, free: 8.906 MB / 0.7292 GB Notification: Performance of Templates: time 0.02866/0.07407, allocations: 25.98 MB / 0.7817 GB, free: 14.92 MB / 0.7605 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.288136897608638]