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.002309/0.002309, allocations: 93.47 kB / 19.44 MB, free: 336 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.002301/0.002301, allocations: 173.2 kB / 22.76 MB, free: 1.66 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.565/1.565, allocations: 177.1 MB / 203.1 MB, free: 5.609 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.384/3.384, allocations: 429.5 MB / 0.6729 GB, free: 4.023 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.813e-06/1.813e-06, allocations: 0 / 0.8775 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.853e-05/3.035e-05, allocations: 9.438 kB / 0.8775 GB, free: 6.605 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001693/0.001724, allocations: 0.6003 MB / 0.8781 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00029/0.002014, allocations: 59.73 kB / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.273e-05/0.002036, allocations: 1.094 kB / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.664e-05/0.002083, allocations: 1.125 kB / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.002089, allocations: 0 / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.002377, allocations: 15.91 kB / 0.8782 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.728e-05/0.002464, allocations: 33.09 kB / 0.8782 GB, free: 5.922 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.002502, allocations: 7.984 kB / 0.8782 GB, free: 5.914 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.732e-05/0.002549, allocations: 16.53 kB / 0.8782 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 2.72e-05/0.002576, allocations: 9.078 kB / 0.8782 GB, free: 5.891 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.002592, allocations: 0.7656 kB / 0.8782 GB, free: 5.891 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.962e-05/0.002691, allocations: 23.97 kB / 0.8782 GB, free: 5.867 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.978e-05/0.002721, allocations: 12.7 kB / 0.8783 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.303e-05/0.002754, allocations: 12.7 kB / 0.8783 GB, free: 5.848 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.003111, allocations: 43.81 kB / 0.8783 GB, free: 5.805 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.003113, allocations: 0 / 0.8783 GB, free: 5.805 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.52e-07/0.003114, allocations: 0 / 0.8783 GB, free: 5.805 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.003118, allocations: 0 / 0.8783 GB, free: 5.805 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.0004226/0.00354, allocations: 364.2 kB / 0.8787 GB, free: 5.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.003579, allocations: 12.03 kB / 0.8787 GB, free: 5.398 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.003623, allocations: 4.938 kB / 0.8787 GB, free: 5.395 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.887e-05/0.003722, allocations: 109.2 kB / 0.8788 GB, free: 5.262 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.003737, allocations: 5.906 kB / 0.8788 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.00375, allocations: 4.375 kB / 0.8788 GB, free: 5.254 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.003903, allocations: 54.23 kB / 0.8788 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.003913, allocations: 192 / 0.8788 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.003925, allocations: 12.25 kB / 0.8789 GB, free: 5.184 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.003932, allocations: 5.688 kB / 0.8789 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.004094, allocations: 87.81 kB / 0.8789 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001995/0.004293, allocations: 132.5 kB / 0.8791 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.004429, allocations: 63.91 kB / 0.8791 GB, free: 4.855 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.679e-05/0.004486, allocations: 31.67 kB / 0.8792 GB, free: 4.82 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001824/0.004668, allocations: 17.52 kB / 0.8792 GB, free: 4.805 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.004709, allocations: 37.39 kB / 0.8792 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.004711, allocations: 3.938 kB / 0.8792 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002814/0.004992, allocations: 97.94 kB / 0.8793 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.005037, allocations: 52.88 kB / 0.8794 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.005142, allocations: 154.2 kB / 0.8795 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.005165, allocations: 25.7 kB / 0.8795 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.005235, allocations: 130.8 kB / 0.8797 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.005276, allocations: 24.95 kB / 0.8797 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.005341, allocations: 43.36 kB / 0.8797 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002746/0.005615, allocations: 496.1 kB / 0.8802 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.041e-05/0.005665, allocations: 19.98 kB / 0.8802 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.519e-05/0.005701, allocations: 8 kB / 0.8802 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.005801, allocations: 52.27 kB / 0.8803 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.005803, allocations: 3.938 kB / 0.8803 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001506/0.005953, allocations: 89.56 kB / 0.8804 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.005967, allocations: 4 kB / 0.8804 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.005972, allocations: 0 / 0.8804 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.005985, allocations: 0 / 0.8804 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.006095, allocations: 23.98 kB / 0.8804 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.006101, allocations: 0 / 0.8804 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.59e-05/0.006127, allocations: 11.94 kB / 0.8804 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.006134, allocations: 7.938 kB / 0.8804 GB, free: 3.465 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.0001353/0.006269, allocations: 164.6 kB / 0.8806 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.006288, allocations: 7.953 kB / 0.8806 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.006524, allocations: 113.5 kB / 0.8807 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.006526, allocations: 0 / 0.8807 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.006529, allocations: 0 / 0.8807 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.006536, allocations: 3.938 kB / 0.8807 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.006691, allocations: 132.5 kB / 0.8808 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.006692, allocations: 0 / 0.8808 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.081e-05/0.006772, allocations: 27.92 kB / 0.8808 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.006777, allocations: 3.984 kB / 0.8808 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.006787, allocations: 4 kB / 0.8808 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.006789, allocations: 0 / 0.8808 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.006792, allocations: 3.984 kB / 0.8808 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.006982, allocations: 124.3 kB / 0.881 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.325e-06/0.00699, allocations: 7.953 kB / 0.881 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.007005, allocations: 4 kB / 0.881 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.808e-05/0.007023, allocations: 4 kB / 0.881 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.007062, allocations: 7.922 kB / 0.881 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.00707, allocations: 8 kB / 0.881 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.92e-05/0.007139, allocations: 123.9 kB / 0.8811 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.007139, allocations: 0 / 0.8811 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001968/0.007336, allocations: 16 kB / 0.8811 GB, free: 2.652 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.0002089/0.007545, allocations: 118.3 kB / 0.8812 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.007697, allocations: 55.66 kB / 0.8813 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.007698, allocations: 0 / 0.8813 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.832e-05/0.007766, allocations: 43.55 kB / 0.8813 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.007917, allocations: 15.17 kB / 0.8814 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.008254, allocations: 142.2 kB / 0.8815 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.486e-05/0.008329, allocations: 63.34 kB / 0.8815 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.178e-05/0.008411, allocations: 35.92 kB / 0.8816 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.776e-05/0.008458, allocations: 20.5 kB / 0.8816 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of SimCode: time 5.51e-07/0.008459, allocations: 0 / 0.8816 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of Templates: time 0.003558/0.01202, allocations: 0.603 MB / 0.8822 GB, free: 1.508 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 240] 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.327064502984285]