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.001341/0.001341, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001513/0.001513, allocations: 212.8 kB / 22.25 MB, free: 5.258 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 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.367/3.367, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: 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.002152/0.002152, allocations: 62.88 kB / 1.186 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3875, allocations: 181.9 MB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001954/0.3894, allocations: 0.6263 MB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001999/0.3914, allocations: 1.299 MB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.81e-05/0.3914, allocations: 0 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.924e-05/0.3915, allocations: 0 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.107e-05/0.3915, allocations: 0 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.392, allocations: 87.67 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.938e-05/0.392, allocations: 23.97 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.06e-05/0.3921, allocations: 0 / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.649e-05/0.3921, allocations: 15.92 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.3922, allocations: 11.98 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.3922, allocations: 0 / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.3925, allocations: 107.9 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.3925, allocations: 11.92 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.599e-05/0.3925, allocations: 15.92 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.3927, allocations: 75.72 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.3927, allocations: 4 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3927, allocations: 4 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3927, allocations: 0 / 1.366 GB, free: 11.24 MB / 1.061 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.0004701/0.3932, allocations: 274.1 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3933, allocations: 8.031 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.3933, allocations: 4.938 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3934, allocations: 110.5 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.3934, allocations: 8.312 kB / 1.366 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.3934, allocations: 4.375 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.3936, allocations: 87.67 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3936, allocations: 4 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3936, allocations: 0 / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3936, allocations: 0 / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.246e-05/0.3937, allocations: 31.91 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.3939, allocations: 113.2 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.394, allocations: 54.56 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.628e-05/0.3941, allocations: 20.86 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000272/0.3943, allocations: 47.95 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.3944, allocations: 30.56 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.3944, allocations: 0 / 1.367 GB, free: 10.34 MB / 1.061 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.01999/0.4144, allocations: 4.169 MB / 1.371 GB, free: 6.074 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.4144, allocations: 59.34 kB / 1.371 GB, free: 6.004 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.139e-05/0.4145, allocations: 93.86 kB / 1.371 GB, free: 5.902 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.758e-05/0.4146, allocations: 33.7 kB / 1.371 GB, free: 5.863 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.683e-05/0.4146, allocations: 80.14 kB / 1.371 GB, free: 5.781 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4147, allocations: 59.47 kB / 1.371 GB, free: 5.723 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.4149, allocations: 93.66 kB / 1.371 GB, free: 5.625 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4151, allocations: 322.8 kB / 1.372 GB, free: 5.301 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.4156, allocations: 311.8 kB / 1.372 GB, free: 4.996 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.4162, allocations: 311.9 kB / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.4178, allocations: 0.7682 MB / 1.373 GB, free: 3.922 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4178, allocations: 4 kB / 1.373 GB, free: 3.918 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001613/0.4194, allocations: 0.8 MB / 1.374 GB, free: 3.113 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.4194, allocations: 12 kB / 1.374 GB, free: 3.102 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4194, allocations: 0 / 1.374 GB, free: 3.102 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.4194, allocations: 0 / 1.374 GB, free: 3.102 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008535/0.4203, allocations: 91.94 kB / 1.374 GB, free: 3.012 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4203, allocations: 0 / 1.374 GB, free: 3.012 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.4208, allocations: 12 kB / 1.374 GB, free: 3 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.4209, allocations: 31.98 kB / 1.374 GB, free: 2.969 MB / 1.061 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.0001985/0.4211, allocations: 126.8 kB / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-05/0.4212, allocations: 3.953 kB / 1.374 GB, free: 2.832 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.4244, allocations: 1.404 MB / 1.375 GB, free: 1.418 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4244, allocations: 4 kB / 1.375 GB, free: 1.414 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.4244, allocations: 7.984 kB / 1.375 GB, free: 1.406 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.4244, allocations: 4 kB / 1.375 GB, free: 1.402 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.4275, allocations: 1.666 MB / 1.377 GB, free: 15.69 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.4275, allocations: 4.031 kB / 1.377 GB, free: 15.69 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008376/0.4284, allocations: 111.9 kB / 1.377 GB, free: 15.58 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4284, allocations: 0 / 1.377 GB, free: 15.58 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.829e-05/0.4284, allocations: 27.98 kB / 1.377 GB, free: 15.55 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.4284, allocations: 7.938 kB / 1.377 GB, free: 15.54 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4284, allocations: 3.938 kB / 1.377 GB, free: 15.54 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.431, allocations: 1.462 MB / 1.379 GB, free: 14.06 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.431, allocations: 15.84 kB / 1.379 GB, free: 14.04 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-05/0.4311, allocations: 11.98 kB / 1.379 GB, free: 14.03 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/0.4317, allocations: 8 kB / 1.379 GB, free: 14.02 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.4318, allocations: 51.95 kB / 1.379 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/0.4319, allocations: 32 kB / 1.379 GB, free: 13.94 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.149e-05/0.4319, allocations: 75.28 kB / 1.379 GB, free: 13.87 MB / 1.076 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4319, allocations: 3.938 kB / 1.379 GB, free: 13.86 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006234/0.4325, allocations: 183.7 kB / 1.379 GB, free: 13.68 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.0005555/0.4331, allocations: 226.8 kB / 1.379 GB, free: 13.45 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001314/0.4344, allocations: 0.7151 MB / 1.38 GB, free: 12.74 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4344, allocations: 0 / 1.38 GB, free: 12.74 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0006731/0.4351, allocations: 415.7 kB / 1.38 GB, free: 12.33 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.4354, allocations: 15.94 kB / 1.38 GB, free: 12.32 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003587/0.439, allocations: 0.792 MB / 1.381 GB, free: 11.5 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.4391, allocations: 103.5 kB / 1.381 GB, free: 11.38 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.00106/0.4402, allocations: 293.5 kB / 1.381 GB, free: 11.09 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005421/0.4407, allocations: 91.41 kB / 1.382 GB, free: 11 MB / 1.076 GB Notification: Performance of SimCode: time 1.082e-06/0.4407, allocations: 0 / 1.382 GB, free: 11 MB / 1.076 GB Notification: Performance of Templates: time 0.0189/0.4596, allocations: 12.03 MB / 1.393 GB, free: 15.04 MB / 1.092 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: 9.10769747197628]