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.001399/0.001399, allocations: 108.7 kB / 16.45 MB, free: 6.508 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.001448/0.001448, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.471/1.471, allocations: 230.6 MB / 252.8 MB, free: 9.105 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.172/3.172, allocations: 0.4899 GB / 0.7916 GB, free: 33.47 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002123/0.002123, allocations: 74.58 kB / 1.149 GB, free: 26.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3323, allocations: 176.1 MB / 1.321 GB, free: 2.91 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001789/0.3341, allocations: 0.6292 MB / 1.322 GB, free: 2.281 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.3361, allocations: 1.366 MB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.316e-05/0.3361, allocations: 0 / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.81e-05/0.3361, allocations: 0 / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.886e-05/0.3361, allocations: 3.938 kB / 1.323 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.3366, allocations: 75.73 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.624e-05/0.3366, allocations: 23.97 kB / 1.323 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.3367, allocations: 0 / 1.323 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.005e-05/0.3367, allocations: 19.92 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.977e-05/0.3368, allocations: 15.92 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.3368, allocations: 4 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.3371, allocations: 111.8 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.732e-05/0.3371, allocations: 11.97 kB / 1.323 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.3371, allocations: 15.94 kB / 1.324 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.3373, allocations: 75.72 kB / 1.324 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3373, allocations: 0 / 1.324 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3373, allocations: 0 / 1.324 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.3373, allocations: 4 kB / 1.324 GB, free: 0.543 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.000521/0.3378, allocations: 351.3 kB / 1.324 GB, free: 156 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3379, allocations: 15.98 kB / 1.324 GB, free: 140 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.3379, allocations: 4.938 kB / 1.324 GB, free: 136 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.3381, allocations: 164.4 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.3381, allocations: 8.359 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.3381, allocations: 4.375 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001418/0.3383, allocations: 65.86 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3383, allocations: 0 / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3383, allocations: 0 / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3383, allocations: 4 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.186e-05/0.3384, allocations: 23.98 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002087/0.3386, allocations: 169.6 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.3387, allocations: 58.55 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.371e-05/0.3387, allocations: 16.86 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005604/0.3393, allocations: 0.5622 MB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.3393, allocations: 50.38 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.3393, allocations: 0 / 1.325 GB, free: 14.77 MB / 1.029 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.02208/0.3614, allocations: 4.377 MB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.3615, allocations: 59.41 kB / 1.329 GB, free: 10.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.49e-05/0.3616, allocations: 89.86 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.585e-05/0.3616, allocations: 29.7 kB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/0.3617, allocations: 80.14 kB / 1.33 GB, free: 9.957 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.3618, allocations: 67.45 kB / 1.33 GB, free: 9.891 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002749/0.3621, allocations: 89.67 kB / 1.33 GB, free: 9.797 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3623, allocations: 322.8 kB / 1.33 GB, free: 9.473 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005851/0.3628, allocations: 312 kB / 1.33 GB, free: 9.168 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005896/0.3634, allocations: 307.9 kB / 1.331 GB, free: 8.867 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3651, allocations: 0.7798 MB / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3651, allocations: 0 / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001764/0.3669, allocations: 0.7982 MB / 1.332 GB, free: 7.281 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3669, allocations: 5.875 kB / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3669, allocations: 0 / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3669, allocations: 0 / 1.332 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/0.3679, allocations: 99.88 kB / 1.332 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3679, allocations: 4 kB / 1.332 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005847/0.3685, allocations: 12 kB / 1.332 GB, free: 7.164 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.98e-05/0.3685, allocations: 31.98 kB / 1.332 GB, free: 7.133 MB / 1.029 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.0002241/0.3688, allocations: 125.7 kB / 1.332 GB, free: 7 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/0.3689, allocations: 15.94 kB / 1.332 GB, free: 6.984 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003534/0.3724, allocations: 1.396 MB / 1.334 GB, free: 5.578 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3724, allocations: 4 kB / 1.334 GB, free: 5.574 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3724, allocations: 0 / 1.334 GB, free: 5.574 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3724, allocations: 0 / 1.334 GB, free: 5.574 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.3757, allocations: 1.822 MB / 1.336 GB, free: 3.688 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3757, allocations: 0 / 1.336 GB, free: 3.688 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008724/0.3765, allocations: 107.9 kB / 1.336 GB, free: 3.582 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3766, allocations: 0 / 1.336 GB, free: 3.582 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.059e-05/0.3766, allocations: 35.97 kB / 1.336 GB, free: 3.547 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.3766, allocations: 4.078 kB / 1.336 GB, free: 3.543 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3766, allocations: 3.984 kB / 1.336 GB, free: 3.539 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.3793, allocations: 1.466 MB / 1.337 GB, free: 2.055 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.348e-05/0.3793, allocations: 92.98 kB / 1.337 GB, free: 1.945 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.776e-05/0.3794, allocations: 15.94 kB / 1.337 GB, free: 1.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.38, allocations: 16.06 kB / 1.337 GB, free: 1.914 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.3802, allocations: 47.89 kB / 1.337 GB, free: 1.867 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.908e-05/0.3802, allocations: 28 kB / 1.337 GB, free: 1.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.538e-05/0.3803, allocations: 75.28 kB / 1.337 GB, free: 1.766 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3803, allocations: 0 / 1.337 GB, free: 1.766 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000632/0.3809, allocations: 187.7 kB / 1.338 GB, free: 1.582 MB / 1.029 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.0005743/0.3815, allocations: 225.4 kB / 1.338 GB, free: 1.355 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001374/0.3829, allocations: 0.7185 MB / 1.339 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/0.3829, allocations: 0 / 1.339 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0006925/0.3836, allocations: 403.7 kB / 1.339 GB, free: 248 kB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3839, allocations: 21.62 kB / 1.339 GB, free: 228 kB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003706/0.3876, allocations: 0.8126 MB / 1.34 GB, free: 15.38 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.388, allocations: 0.7182 MB / 1.34 GB, free: 14.62 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001033/0.389, allocations: 289.5 kB / 1.341 GB, free: 14.34 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005876/0.3896, allocations: 91.41 kB / 1.341 GB, free: 14.25 MB / 1.045 GB Notification: Performance of SimCode: time 9.92e-07/0.3896, allocations: 0 / 1.341 GB, free: 14.25 MB / 1.045 GB Notification: Performance of Templates: time 0.01804/0.4076, allocations: 11.39 MB / 1.352 GB, free: 2.914 MB / 1.045 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.852802274283022]