Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.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.001887/0.001887, allocations: 83.69 kB / 20.23 MB, free: 4.191 MB / 18.57 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.002487/0.002487, allocations: 157.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 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.55/1.55, allocations: 177.1 MB / 203.9 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.866/2.866, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 0.7864 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.668e-05/3.885e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003281/0.00332, allocations: 1.57 MB / 0.7879 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0004288/0.003749, allocations: 140.1 kB / 0.788 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.217e-05/0.003791, allocations: 0.6875 kB / 0.788 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.003819, allocations: 0 / 0.788 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 5.66e-05/0.003876, allocations: 8.844 kB / 0.7881 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.004201, allocations: 31.84 kB / 0.7881 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.639e-05/0.004297, allocations: 44.5 kB / 0.7881 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.085e-05/0.004388, allocations: 11.98 kB / 0.7881 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.698e-05/0.004445, allocations: 15.42 kB / 0.7882 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.742e-05/0.004492, allocations: 19.97 kB / 0.7882 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.004511, allocations: 4 kB / 0.7882 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.222e-05/0.004603, allocations: 19.97 kB / 0.7882 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.004627, allocations: 11.94 kB / 0.7882 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.004654, allocations: 11.98 kB / 0.7882 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.004813, allocations: 51.8 kB / 0.7883 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004815, allocations: 0 / 0.7883 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.42e-07/0.004816, allocations: 0 / 0.7883 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.004821, allocations: 0.7188 kB / 0.7883 GB, free: 10.72 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005589/0.00538, allocations: 372.2 kB / 0.7886 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.005421, allocations: 13.69 kB / 0.7886 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.005471, allocations: 4.875 kB / 0.7886 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.005602, allocations: 116.6 kB / 0.7888 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.00563, allocations: 8.375 kB / 0.7888 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.005641, allocations: 1.719 kB / 0.7888 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.005818, allocations: 58.23 kB / 0.7888 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.005827, allocations: 192 / 0.7888 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.005836, allocations: 384 / 0.7888 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.005841, allocations: 1.969 kB / 0.7888 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.005994, allocations: 31.92 kB / 0.7889 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.006494, allocations: 283.7 kB / 0.7891 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.00681, allocations: 56.73 kB / 0.7892 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.019e-05/0.0069, allocations: 27.73 kB / 0.7892 GB, free: 9.648 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.007032, allocations: 11.98 kB / 0.7892 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.007076, allocations: 42.73 kB / 0.7893 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.007078, allocations: 7.938 kB / 0.7893 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003366/0.007414, allocations: 77.61 kB / 0.7893 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.007463, allocations: 51.94 kB / 0.7894 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.007601, allocations: 170.4 kB / 0.7895 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.007624, allocations: 34.17 kB / 0.7896 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.00771, allocations: 126.9 kB / 0.7897 GB, free: 9.082 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.007728, allocations: 8.828 kB / 0.7897 GB, free: 9.074 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-05/0.007782, allocations: 23.38 kB / 0.7897 GB, free: 9.043 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002745/0.008057, allocations: 0.4892 MB / 0.7902 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.008126, allocations: 12 kB / 0.7902 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.607e-05/0.008182, allocations: 16.52 kB / 0.7902 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.008306, allocations: 41.27 kB / 0.7903 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.008307, allocations: 0 / 0.7903 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001843/0.008491, allocations: 78.83 kB / 0.7904 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.008505, allocations: 4 kB / 0.7904 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.00851, allocations: 0 / 0.7904 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.008523, allocations: 0 / 0.7904 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.795e-05/0.008591, allocations: 12.64 kB / 0.7904 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.008603, allocations: 4.234 kB / 0.7904 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.1e-05/0.008644, allocations: 4.719 kB / 0.7904 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.008653, allocations: 5.125 kB / 0.7904 GB, free: 8.363 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001319/0.008784, allocations: 160.6 kB / 0.7905 GB, free: 8.195 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.008814, allocations: 11.88 kB / 0.7905 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.00903, allocations: 70.17 kB / 0.7906 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.009033, allocations: 0.9375 kB / 0.7906 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.009035, allocations: 0 / 0.7906 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.009038, allocations: 2.219 kB / 0.7906 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.009206, allocations: 124.7 kB / 0.7907 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.009207, allocations: 0 / 0.7907 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.24e-05/0.009269, allocations: 11.98 kB / 0.7907 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.009271, allocations: 0 / 0.7907 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.009283, allocations: 7.938 kB / 0.7908 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.009284, allocations: 3.188 kB / 0.7908 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.009285, allocations: 0 / 0.7908 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002729/0.009558, allocations: 223.8 kB / 0.791 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-06/0.009564, allocations: 0 / 0.791 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.009584, allocations: 7.922 kB / 0.791 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.495e-05/0.009659, allocations: 4 kB / 0.791 GB, free: 7.68 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.009711, allocations: 7.984 kB / 0.791 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.009718, allocations: 4 kB / 0.791 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.187e-05/0.00979, allocations: 124.3 kB / 0.7911 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.00979, allocations: 0 / 0.7911 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002199/0.01001, allocations: 11.94 kB / 0.7911 GB, free: 7.535 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001787/0.01019, allocations: 108.3 kB / 0.7912 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000187/0.01038, allocations: 40.17 kB / 0.7913 GB, free: 7.379 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.01038, allocations: 1.062 kB / 0.7913 GB, free: 7.379 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.6e-05/0.01046, allocations: 31.67 kB / 0.7913 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.0107, allocations: 8.859 kB / 0.7913 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.01104, allocations: 134.1 kB / 0.7914 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.136e-05/0.01111, allocations: 64.16 kB / 0.7915 GB, free: 7.094 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.737e-05/0.01114, allocations: 0.9375 kB / 0.7915 GB, free: 7.094 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.01117, allocations: 17.72 kB / 0.7915 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of SimCode: time 4.01e-07/0.01117, allocations: 0 / 0.7915 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of Templates: time 0.003802/0.01498, allocations: 0.7962 MB / 0.7923 GB, free: 6.309 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.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: 7.804123813053593]