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.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.00178/0.00178, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001936/0.001936, allocations: 190.5 kB / 22.23 MB, free: 5.098 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.502/1.502, allocations: 225.6 MB / 251 MB, free: 13.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.131/3.131, allocations: 496 MB / 0.7835 GB, free: 33.59 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-maint.12.x/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_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 0.001955/0.001955, allocations: 72.25 kB / 1.138 GB, free: 33.96 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3225, allocations: 173.6 MB / 1.307 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001823/0.3243, allocations: 0.6282 MB / 1.308 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001829/0.3262, allocations: 1.303 MB / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.823e-05/0.3262, allocations: 0 / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.3262, allocations: 3.938 kB / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.36e-05/0.3262, allocations: 0 / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.3267, allocations: 79.73 kB / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.944e-05/0.3267, allocations: 19.92 kB / 1.309 GB, free: 15.75 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.799e-05/0.3268, allocations: 4 kB / 1.309 GB, free: 15.75 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.384e-05/0.3268, allocations: 7.984 kB / 1.309 GB, free: 15.74 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.079e-05/0.3269, allocations: 15.92 kB / 1.309 GB, free: 15.72 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.3269, allocations: 7.938 kB / 1.309 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002404/0.3271, allocations: 103.9 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.484e-05/0.3272, allocations: 0 / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.3272, allocations: 11.94 kB / 1.309 GB, free: 15.6 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.3274, allocations: 75.7 kB / 1.31 GB, free: 15.53 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3274, allocations: 4 kB / 1.31 GB, free: 15.52 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3274, allocations: 0 / 1.31 GB, free: 15.52 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.3274, allocations: 0 / 1.31 GB, free: 15.52 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.0005064/0.3279, allocations: 270.3 kB / 1.31 GB, free: 15.23 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3279, allocations: 12.03 kB / 1.31 GB, free: 15.22 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.3279, allocations: 0.9375 kB / 1.31 GB, free: 15.22 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3281, allocations: 114.4 kB / 1.31 GB, free: 15.08 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.3281, allocations: 12.3 kB / 1.31 GB, free: 15.07 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.3281, allocations: 8.375 kB / 1.31 GB, free: 15.06 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.3283, allocations: 61.92 kB / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3283, allocations: 0 / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3283, allocations: 0 / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3283, allocations: 0 / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.016e-05/0.3283, allocations: 23.98 kB / 1.31 GB, free: 14.97 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002108/0.3286, allocations: 136.7 kB / 1.31 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.3287, allocations: 54.56 kB / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.669e-05/0.3287, allocations: 28.78 kB / 1.31 GB, free: 14.7 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002732/0.329, allocations: 39.97 kB / 1.31 GB, free: 14.66 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.329, allocations: 34.5 kB / 1.31 GB, free: 14.62 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.329, allocations: 4 kB / 1.31 GB, free: 14.62 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.01994/0.349, allocations: 4.148 MB / 1.314 GB, free: 10.37 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.349, allocations: 55.31 kB / 1.314 GB, free: 10.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.3491, allocations: 89.86 kB / 1.314 GB, free: 10.2 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.3492, allocations: 33.7 kB / 1.315 GB, free: 10.16 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.3492, allocations: 84.27 kB / 1.315 GB, free: 10.08 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.3493, allocations: 63.47 kB / 1.315 GB, free: 10.02 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.3496, allocations: 85.67 kB / 1.315 GB, free: 9.926 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3498, allocations: 326.8 kB / 1.315 GB, free: 9.598 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.3503, allocations: 307.8 kB / 1.315 GB, free: 9.297 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/0.3509, allocations: 307.9 kB / 1.316 GB, free: 8.996 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.3525, allocations: 0.772 MB / 1.316 GB, free: 8.223 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3525, allocations: 7.875 kB / 1.316 GB, free: 8.215 MB / 1.014 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001639/0.3541, allocations: 0.7981 MB / 1.317 GB, free: 7.41 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3541, allocations: 12 kB / 1.317 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3541, allocations: 0 / 1.317 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.3541, allocations: 0 / 1.317 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.355, allocations: 91.94 kB / 1.317 GB, free: 7.309 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/0.355, allocations: 0 / 1.317 GB, free: 7.309 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.3556, allocations: 20 kB / 1.317 GB, free: 7.289 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.533e-05/0.3556, allocations: 35.92 kB / 1.317 GB, free: 7.254 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.0002077/0.3558, allocations: 125.7 kB / 1.317 GB, free: 7.121 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.35e-05/0.3559, allocations: 7.953 kB / 1.317 GB, free: 7.113 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.3592, allocations: 1.388 MB / 1.319 GB, free: 5.719 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3592, allocations: 11.94 kB / 1.319 GB, free: 5.707 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3592, allocations: 4 kB / 1.319 GB, free: 5.703 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3592, allocations: 3.984 kB / 1.319 GB, free: 5.699 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.3624, allocations: 1.782 MB / 1.321 GB, free: 3.855 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3624, allocations: 0 / 1.321 GB, free: 3.855 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.3632, allocations: 115.9 kB / 1.321 GB, free: 3.742 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.3632, allocations: 4 kB / 1.321 GB, free: 3.738 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.6e-05/0.3633, allocations: 27.94 kB / 1.321 GB, free: 3.711 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3633, allocations: 0 / 1.321 GB, free: 3.711 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3633, allocations: 4 kB / 1.321 GB, free: 3.707 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002545/0.3658, allocations: 1.466 MB / 1.322 GB, free: 2.223 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.3658, allocations: 15.84 kB / 1.322 GB, free: 2.207 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.366, allocations: 19.88 kB / 1.322 GB, free: 2.188 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.3665, allocations: 8 kB / 1.322 GB, free: 2.18 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.3666, allocations: 43.95 kB / 1.322 GB, free: 2.137 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-05/0.3667, allocations: 31.98 kB / 1.322 GB, free: 2.105 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.06e-05/0.3668, allocations: 79.34 kB / 1.322 GB, free: 2.027 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.3668, allocations: 4.094 kB / 1.322 GB, free: 2.023 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005721/0.3673, allocations: 179.7 kB / 1.323 GB, free: 1.848 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.0005012/0.3678, allocations: 219.5 kB / 1.323 GB, free: 1.625 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001306/0.3691, allocations: 0.7161 MB / 1.323 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3691, allocations: 0 / 1.323 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006654/0.3698, allocations: 407.9 kB / 1.324 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.3701, allocations: 20 kB / 1.324 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.3737, allocations: 0.8079 MB / 1.325 GB, free: 15.66 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.374, allocations: 0.7141 MB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001033/0.375, allocations: 297.5 kB / 1.326 GB, free: 14.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.3756, allocations: 87.41 kB / 1.326 GB, free: 14.53 MB / 1.029 GB Notification: Performance of SimCode: time 8.01e-07/0.3756, allocations: 3.938 kB / 1.326 GB, free: 14.53 MB / 1.029 GB Notification: Performance of Templates: time 0.01847/0.394, allocations: 11.75 MB / 1.337 GB, free: 2.828 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.95842636283487]