Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.001912/0.001912, allocations: 92.7 kB / 19.44 MB, free: 320 kB / 13.93 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.002527/0.002527, allocations: 161.3 kB / 22.75 MB, free: 1.652 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.481/1.481, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 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 3.247/3.247, allocations: 429.6 MB / 0.673 GB, free: 3.91 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0.6562 kB / 0.8776 GB, free: 6.445 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.598e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.441 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001687/0.001713, allocations: 0.6028 MB / 0.8782 GB, free: 5.863 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002835/0.001996, allocations: 56.3 kB / 0.8783 GB, free: 5.809 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.981e-05/0.002016, allocations: 0.875 kB / 0.8783 GB, free: 5.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.002056, allocations: 0 / 0.8783 GB, free: 5.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.119e-06/0.002061, allocations: 2.391 kB / 0.8783 GB, free: 5.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.002344, allocations: 19.91 kB / 0.8783 GB, free: 5.789 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.955e-05/0.002434, allocations: 32.52 kB / 0.8783 GB, free: 5.758 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.015e-05/0.002464, allocations: 0 / 0.8783 GB, free: 5.758 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.403e-05/0.002508, allocations: 19.97 kB / 0.8784 GB, free: 5.738 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.019e-05/0.002538, allocations: 14.12 kB / 0.8784 GB, free: 5.727 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.002556, allocations: 4 kB / 0.8784 GB, free: 5.723 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.915e-05/0.002655, allocations: 15.98 kB / 0.8784 GB, free: 5.707 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.002683, allocations: 5.75 kB / 0.8784 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.00272, allocations: 14.38 kB / 0.8784 GB, free: 5.691 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.002848, allocations: 44.38 kB / 0.8784 GB, free: 5.648 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.00285, allocations: 0.6562 kB / 0.8785 GB, free: 5.648 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.11e-07/0.002851, allocations: 3.938 kB / 0.8785 GB, free: 5.645 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.002855, allocations: 0.7188 kB / 0.8785 GB, free: 5.645 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003662/0.003221, allocations: 266.3 kB / 0.8787 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.003261, allocations: 11.75 kB / 0.8787 GB, free: 5.344 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.003316, allocations: 8.938 kB / 0.8787 GB, free: 5.336 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.994e-05/0.003416, allocations: 101.8 kB / 0.8788 GB, free: 5.211 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.003431, allocations: 4.375 kB / 0.8788 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.003451, allocations: 8.375 kB / 0.8788 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.003621, allocations: 62.22 kB / 0.8789 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.003633, allocations: 192 / 0.8789 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.003646, allocations: 384 / 0.8789 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.003657, allocations: 4.375 kB / 0.8789 GB, free: 5.129 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.003859, allocations: 99.75 kB / 0.879 GB, free: 5.031 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002077/0.004067, allocations: 118.8 kB / 0.8791 GB, free: 4.887 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.00423, allocations: 70.59 kB / 0.8792 GB, free: 4.809 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/0.0043, allocations: 24.84 kB / 0.8792 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000247/0.004547, allocations: 19.98 kB / 0.8792 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.004591, allocations: 39.58 kB / 0.8793 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.004593, allocations: 0 / 0.8793 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0003524/0.004945, allocations: 125.5 kB / 0.8794 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.004993, allocations: 52.75 kB / 0.8794 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.978e-05/0.005073, allocations: 97.86 kB / 0.8795 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.005093, allocations: 29.64 kB / 0.8795 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.557e-05/0.005139, allocations: 85.11 kB / 0.8796 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.948e-05/0.005178, allocations: 23.84 kB / 0.8797 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.023e-05/0.005238, allocations: 36.36 kB / 0.8797 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001787/0.005417, allocations: 318.8 kB / 0.88 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.375e-05/0.005461, allocations: 19.98 kB / 0.88 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.318e-05/0.005504, allocations: 23.98 kB / 0.88 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.005747, allocations: 56.78 kB / 0.8801 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.005749, allocations: 0 / 0.8801 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001807/0.005929, allocations: 105.5 kB / 0.8802 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.005945, allocations: 5.875 kB / 0.8802 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.005949, allocations: 0 / 0.8802 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.005971, allocations: 0 / 0.8802 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.00609, allocations: 19.98 kB / 0.8802 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.006098, allocations: 0 / 0.8802 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.525e-05/0.006133, allocations: 15.88 kB / 0.8802 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.006142, allocations: 0.7188 kB / 0.8802 GB, free: 3.664 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001753/0.006317, allocations: 127.4 kB / 0.8804 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.006341, allocations: 7.953 kB / 0.8804 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002701/0.006611, allocations: 121.6 kB / 0.8805 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.006623, allocations: 4.438 kB / 0.8805 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.00663, allocations: 0.5938 kB / 0.8805 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.006636, allocations: 3.938 kB / 0.8805 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.006785, allocations: 122.1 kB / 0.8806 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.006787, allocations: 0 / 0.8806 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.471e-05/0.006871, allocations: 25.52 kB / 0.8806 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.006874, allocations: 0 / 0.8806 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.006886, allocations: 4 kB / 0.8806 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.006888, allocations: 0 / 0.8806 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.006889, allocations: 0 / 0.8806 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.007115, allocations: 129.9 kB / 0.8808 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.248e-05/0.007127, allocations: 7.953 kB / 0.8808 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.007142, allocations: 0 / 0.8808 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.631e-05/0.007159, allocations: 0 / 0.8808 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.007215, allocations: 15.92 kB / 0.8808 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.007224, allocations: 7.938 kB / 0.8808 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.007278, allocations: 75.28 kB / 0.8809 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.007278, allocations: 0 / 0.8809 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002178/0.007496, allocations: 16 kB / 0.8809 GB, free: 2.953 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002437/0.00774, allocations: 115.2 kB / 0.881 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001841/0.007924, allocations: 64.02 kB / 0.881 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.007926, allocations: 0 / 0.881 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.872e-05/0.007994, allocations: 35.91 kB / 0.8811 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.008146, allocations: 6.5 kB / 0.8811 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.008548, allocations: 148.5 kB / 0.8812 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.611e-05/0.008635, allocations: 71.34 kB / 0.8813 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.526e-05/0.00872, allocations: 35.95 kB / 0.8813 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.008758, allocations: 20.42 kB / 0.8813 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of SimCode: time 1.062e-06/0.008759, allocations: 0 / 0.8813 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of Templates: time 0.003736/0.0125, allocations: 0.6043 MB / 0.8819 GB, free: 1.809 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.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: 8.02911918098107]