Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 196.8 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.633/2.633, allocations: 437 MB / 0.7103 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 75.89 kB / 0.8692 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6948/0.6962, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001961/0.6982, allocations: 0.5897 MB / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002891/0.6985, allocations: 51.78 kB / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.177e-05/0.6985, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.998e-05/0.6986, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.606e-06/0.6986, allocations: 4 kB / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.6989, allocations: 19.92 kB / 1.018 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.952e-05/0.699, allocations: 35.95 kB / 1.018 GB, free: 1.848 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.6991, allocations: 4 kB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.136e-05/0.6991, allocations: 8 kB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.308e-05/0.6991, allocations: 15.97 kB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.6992, allocations: 7.938 kB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.85e-05/0.6992, allocations: 15.98 kB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.6993, allocations: 8 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.6993, allocations: 19.84 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.51e-05/0.6994, allocations: 31.89 kB / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.6994, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6994, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.6994, allocations: 4 kB / 1.018 GB, free: 1.734 MB / 0.7637 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.0003225/0.6998, allocations: 344.9 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.6998, allocations: 11.98 kB / 1.018 GB, free: 1.336 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.209e-05/0.6999, allocations: 4.938 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.7, allocations: 166.3 kB / 1.019 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.7, allocations: 384 / 1.019 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.7, allocations: 4.375 kB / 1.019 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.7002, allocations: 66.17 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.7002, allocations: 8.125 kB / 1.019 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.7002, allocations: 3.938 kB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.7002, allocations: 4 kB / 1.019 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.7004, allocations: 103.9 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.7006, allocations: 177.5 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.7007, allocations: 78.47 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.427e-05/0.7008, allocations: 28.84 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/0.7012, allocations: 401.5 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.7012, allocations: 34.5 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.7012, allocations: 4 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of matching and sorting (n=11): time 0.0002612/0.7015, allocations: 117.9 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.7015, allocations: 51.41 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.451e-05/0.7016, allocations: 101.7 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.7016, allocations: 29.7 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.7016, allocations: 80.14 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.7017, allocations: 15.81 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.7017, allocations: 29.7 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.7018, allocations: 322.8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.177e-05/0.7019, allocations: 19.98 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.468e-05/0.7019, allocations: 19.98 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.702, allocations: 60.78 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.702, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001406/0.7022, allocations: 97.5 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.7022, allocations: 5.875 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.7022, allocations: 3.938 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7022, allocations: 0 / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.713e-05/0.7023, allocations: 16 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.7024, allocations: 7.984 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.7024, allocations: 7.938 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.7024, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 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.000145/0.7025, allocations: 127.3 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.7026, allocations: 7.984 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002109/0.7028, allocations: 130.1 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.7028, allocations: 4 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.7028, allocations: 4 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.7028, allocations: 0 / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.703, allocations: 177.6 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.703, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.703, allocations: 19.94 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.7031, allocations: 3.938 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.7031, allocations: 3.984 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7031, allocations: 4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7031, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001543/0.7032, allocations: 125.1 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.7033, allocations: 89.03 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.7033, allocations: 3.938 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.555e-05/0.7033, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.7034, allocations: 15.92 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.7034, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.832e-05/0.7034, allocations: 79.22 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7034, allocations: 4 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002004/0.7036, allocations: 16 kB / 1.021 GB, free: 14.14 MB / 0.7794 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.0001718/0.7038, allocations: 107.2 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001616/0.704, allocations: 75.91 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.704, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.942e-05/0.704, allocations: 31.98 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.7042, allocations: 4 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003019/0.7045, allocations: 156.8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.7047, allocations: 0.6846 MB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.498e-05/0.7048, allocations: 39.88 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.7049, allocations: 11.44 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of SimCode: time 5.51e-07/0.7049, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of Templates: time 0.002683/0.7076, allocations: 0.6023 MB / 1.023 GB, free: 12.37 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches