Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001336/0.001336, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.001367/0.001367, allocations: 197.3 kB / 22.17 MB, free: 5.656 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.524/1.524, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.942/2.942, allocations: 476.7 MB / 0.7645 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 71.88 kB / 1.109 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8433/0.8454, allocations: 168.7 MB / 1.274 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001771/0.8471, allocations: 0.6171 MB / 1.275 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001795/0.8489, allocations: 1.295 MB / 1.276 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.849, allocations: 4 kB / 1.276 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.849, allocations: 0 / 1.276 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.937e-05/0.849, allocations: 3.938 kB / 1.276 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.8494, allocations: 71.73 kB / 1.276 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.832e-05/0.8495, allocations: 31.91 kB / 1.276 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.723e-05/0.8495, allocations: 0 / 1.276 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.624e-05/0.8496, allocations: 4 kB / 1.276 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.731e-05/0.8496, allocations: 19.92 kB / 1.276 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.8496, allocations: 3.938 kB / 1.276 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.8499, allocations: 103.9 kB / 1.276 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.8499, allocations: 8 kB / 1.276 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.8499, allocations: 15.91 kB / 1.276 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.8501, allocations: 66.47 kB / 1.276 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.8501, allocations: 0 / 1.276 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8501, allocations: 0 / 1.276 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.8501, allocations: 0 / 1.276 GB, free: 2.273 MB / 0.9669 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.0005011/0.8506, allocations: 355.3 kB / 1.277 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.8506, allocations: 8.031 kB / 1.277 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.8507, allocations: 8.938 kB / 1.277 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.8509, allocations: 176.3 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.8509, allocations: 384 / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.8509, allocations: 8.328 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.8511, allocations: 57.98 kB / 1.277 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.8511, allocations: 3.938 kB / 1.277 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.8511, allocations: 0 / 1.277 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.8511, allocations: 0 / 1.277 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.88e-05/0.8511, allocations: 23.98 kB / 1.277 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.8514, allocations: 173.6 kB / 1.277 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.8515, allocations: 58.5 kB / 1.277 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.556e-05/0.8515, allocations: 20.84 kB / 1.277 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005927/0.8521, allocations: 0.5583 MB / 1.278 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.8522, allocations: 38.5 kB / 1.278 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.8522, allocations: 0 / 1.278 GB, free: 0.5117 MB / 0.9669 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.02104/0.8732, allocations: 4.37 MB / 1.282 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.8733, allocations: 63.41 kB / 1.282 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.136e-05/0.8733, allocations: 89.86 kB / 1.282 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/0.8734, allocations: 25.7 kB / 1.282 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.11e-05/0.8735, allocations: 84.14 kB / 1.282 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.8736, allocations: 59.47 kB / 1.282 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.8738, allocations: 93.67 kB / 1.282 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.874, allocations: 326.7 kB / 1.283 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005929/0.8746, allocations: 311.8 kB / 1.283 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005758/0.8752, allocations: 312 kB / 1.283 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.8768, allocations: 0.7722 MB / 1.284 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.8768, allocations: 0 / 1.284 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001731/0.8786, allocations: 0.7981 MB / 1.285 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.8786, allocations: 4 kB / 1.285 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.8786, allocations: 0 / 1.285 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.803e-05/0.8786, allocations: 4 kB / 1.285 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008983/0.8795, allocations: 95.88 kB / 1.285 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.8795, allocations: 0 / 1.285 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005381/0.8801, allocations: 8 kB / 1.285 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-05/0.8802, allocations: 35.98 kB / 1.285 GB, free: 8.883 MB / 0.9825 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.00022/0.8804, allocations: 121.8 kB / 1.285 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.128e-05/0.8805, allocations: 7.953 kB / 1.285 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.8838, allocations: 1.403 MB / 1.286 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.8838, allocations: 4 kB / 1.286 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.8839, allocations: 0 / 1.286 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.8839, allocations: 3.984 kB / 1.286 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.8873, allocations: 1.829 MB / 1.288 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.8873, allocations: 0 / 1.288 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000871/0.8882, allocations: 107.9 kB / 1.288 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.8882, allocations: 0 / 1.288 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.551e-05/0.8882, allocations: 31.94 kB / 1.288 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.8882, allocations: 12.03 kB / 1.288 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8882, allocations: 3.938 kB / 1.288 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.8911, allocations: 1.467 MB / 1.29 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.8911, allocations: 93.03 kB / 1.29 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.8912, allocations: 7.938 kB / 1.29 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005774/0.8918, allocations: 16 kB / 1.29 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.892, allocations: 44.02 kB / 1.29 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.892, allocations: 32 kB / 1.29 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.059e-05/0.8921, allocations: 75.28 kB / 1.29 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8921, allocations: 0 / 1.29 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006449/0.8927, allocations: 179.7 kB / 1.29 GB, free: 3.34 MB / 0.9825 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.0006872/0.8934, allocations: 227.3 kB / 1.29 GB, free: 3.109 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001445/0.8949, allocations: 0.716 MB / 1.291 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.8949, allocations: 4.094 kB / 1.291 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007509/0.8956, allocations: 399.7 kB / 1.292 GB, free: 2 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.896, allocations: 20 kB / 1.292 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003756/0.8997, allocations: 0.8204 MB / 1.292 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.9002, allocations: 0.7259 MB / 1.293 GB, free: 380 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001014/0.9012, allocations: 289.5 kB / 1.293 GB, free: 92 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.9017, allocations: 95.41 kB / 1.293 GB, free: 16 MB / 0.9981 GB Notification: Performance of SimCode: time 1.082e-06/0.9017, allocations: 4 kB / 1.293 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of Templates: time 0.02127/0.923, allocations: 11.68 MB / 1.305 GB, free: 4.367 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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.325870444998145]