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.001917/0.001917, allocations: 81.55 kB / 19.76 MB, free: 2.027 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.002133/0.002133, allocations: 159.7 kB / 23.01 MB, free: 4.957 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.423/1.423, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.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 2.884/2.884, allocations: 394.2 MB / 0.6386 GB, free: 11.95 MB / 0.6075 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.003298/0.003298, allocations: 67.83 kB / 1.009 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8706/0.8739, allocations: 181.8 MB / 1.187 GB, free: 16.22 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001801/0.8757, allocations: 0.6285 MB / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.8772, allocations: 1.311 MB / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.257e-05/0.8772, allocations: 0 / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.688e-05/0.8773, allocations: 3.938 kB / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 1.79e-05/0.8773, allocations: 0 / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.8777, allocations: 87.03 kB / 1.189 GB, free: 14.86 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 5.393e-05/0.8777, allocations: 21.03 kB / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.8778, allocations: 3.266 kB / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 2.082e-05/0.8778, allocations: 11.89 kB / 1.189 GB, free: 14.85 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.541e-05/0.8779, allocations: 12.03 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.8779, allocations: 1.562 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.8782, allocations: 105.8 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.8782, allocations: 15.08 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.8782, allocations: 4.891 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.8784, allocations: 81.09 kB / 1.189 GB, free: 14.78 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8784, allocations: 0 / 1.189 GB, free: 14.78 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8784, allocations: 5.281 kB / 1.189 GB, free: 14.78 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.8784, allocations: 0.6094 kB / 1.189 GB, free: 14.78 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.0003707/0.8788, allocations: 275.2 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.8788, allocations: 8.938 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.8788, allocations: 2.75 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.073e-05/0.8789, allocations: 113.5 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.487e-06/0.8789, allocations: 6.844 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.8789, allocations: 11.69 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.8791, allocations: 81.98 kB / 1.189 GB, free: 14.29 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.8791, allocations: 5.188 kB / 1.189 GB, free: 14.28 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.8791, allocations: 0 / 1.189 GB, free: 14.28 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.8791, allocations: 0.8125 kB / 1.189 GB, free: 14.28 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.758e-05/0.8792, allocations: 26.44 kB / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.8793, allocations: 110.7 kB / 1.189 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.8794, allocations: 54.67 kB / 1.19 GB, free: 14.11 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.8794, allocations: 26.14 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002525/0.8797, allocations: 37.05 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.8797, allocations: 37.52 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.8797, allocations: 0 / 1.19 GB, free: 14.05 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.01995/0.8997, allocations: 4.161 MB / 1.194 GB, free: 12.48 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.8997, allocations: 66.56 kB / 1.194 GB, free: 12.41 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.085e-05/0.8997, allocations: 92.3 kB / 1.194 GB, free: 12.31 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.8998, allocations: 30.45 kB / 1.194 GB, free: 12.28 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 1.339e-05/0.8998, allocations: 89.02 kB / 1.194 GB, free: 12.19 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.794e-05/0.8999, allocations: 59.34 kB / 1.194 GB, free: 12.14 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.9001, allocations: 94.58 kB / 1.194 GB, free: 12.11 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.9002, allocations: 322 kB / 1.194 GB, free: 11.79 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004909/0.9007, allocations: 307.9 kB / 1.195 GB, free: 11.67 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.9012, allocations: 309.2 kB / 1.195 GB, free: 11.54 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.9026, allocations: 0.7747 MB / 1.196 GB, free: 11.2 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.9026, allocations: 5.219 kB / 1.196 GB, free: 11.2 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001512/0.9041, allocations: 0.7974 MB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.9041, allocations: 5.5 kB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.9041, allocations: 3.938 kB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.9042, allocations: 1.812 kB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008716/0.905, allocations: 90.84 kB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.905, allocations: 2.625 kB / 1.197 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/0.9056, allocations: 9.188 kB / 1.197 GB, free: 10.86 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/0.9057, allocations: 33.56 kB / 1.197 GB, free: 10.86 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.0001463/0.9058, allocations: 121.7 kB / 1.197 GB, free: 10.74 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.9059, allocations: 12.33 kB / 1.197 GB, free: 10.73 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/0.9088, allocations: 1.394 MB / 1.198 GB, free: 10.08 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.9088, allocations: 7.938 kB / 1.198 GB, free: 10.08 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.9088, allocations: 0 / 1.198 GB, free: 10.08 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.9088, allocations: 2.391 kB / 1.198 GB, free: 10.08 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.9115, allocations: 1.675 MB / 1.2 GB, free: 9.105 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.9115, allocations: 2.156 kB / 1.2 GB, free: 9.105 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008146/0.9123, allocations: 109.2 kB / 1.2 GB, free: 9.098 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.9123, allocations: 2.75 kB / 1.2 GB, free: 9.098 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.119e-05/0.9124, allocations: 25.62 kB / 1.2 GB, free: 9.094 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.9124, allocations: 2.219 kB / 1.2 GB, free: 9.094 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.9124, allocations: 9.656 kB / 1.2 GB, free: 9.086 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.9146, allocations: 1.459 MB / 1.201 GB, free: 8.34 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.759e-05/0.9146, allocations: 18.11 kB / 1.201 GB, free: 8.328 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.016e-05/0.9147, allocations: 14.77 kB / 1.201 GB, free: 8.316 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005462/0.9152, allocations: 10.58 kB / 1.201 GB, free: 8.312 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.9154, allocations: 52.38 kB / 1.201 GB, free: 8.301 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.802e-05/0.9154, allocations: 28.88 kB / 1.202 GB, free: 8.301 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.952e-05/0.9155, allocations: 75.98 kB / 1.202 GB, free: 8.227 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.9155, allocations: 1.469 kB / 1.202 GB, free: 8.227 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000653/0.9161, allocations: 186 kB / 1.202 GB, free: 8.195 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.0005251/0.9166, allocations: 232.2 kB / 1.202 GB, free: 8.062 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001195/0.9178, allocations: 0.7188 MB / 1.203 GB, free: 7.773 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9178, allocations: 0 / 1.203 GB, free: 7.773 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005719/0.9184, allocations: 402.2 kB / 1.203 GB, free: 7.609 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.9187, allocations: 21.61 kB / 1.203 GB, free: 7.594 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.9221, allocations: 0.7915 MB / 1.204 GB, free: 7.223 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.771e-05/0.9222, allocations: 102 kB / 1.204 GB, free: 7.148 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0009597/0.9232, allocations: 298 kB / 1.204 GB, free: 6.992 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005318/0.9237, allocations: 94.78 kB / 1.204 GB, free: 6.98 MB / 1.076 GB Notification: Performance of SimCode: time 8.62e-07/0.9237, allocations: 0 / 1.204 GB, free: 6.98 MB / 1.076 GB Notification: Performance of Templates: time 0.02098/0.9447, allocations: 11.96 MB / 1.216 GB, free: 5.895 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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/jenkins1/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.797037938027643]