Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0008966/0.0008964, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01042/0.01042, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.434/1.434, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.0004629, allocations: 16 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8969/0.8974, allocations: 142.4 MB / 0.955 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.000847/0.8983, allocations: 323.6 kB / 0.9554 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003317/0.8986, allocations: 58.31 kB / 0.9554 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.485e-05/0.8986, allocations: 0 / 0.9554 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.13e-05/0.8987, allocations: 0 / 0.9554 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.521e-06/0.8987, allocations: 0 / 0.9554 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.899, allocations: 13.61 kB / 0.9554 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.878e-05/0.8991, allocations: 27.12 kB / 0.9554 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.981e-05/0.8991, allocations: 1.125 kB / 0.9555 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.598e-05/0.8992, allocations: 18.39 kB / 0.9555 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.8992, allocations: 16.48 kB / 0.9555 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.8992, allocations: 1.75 kB / 0.9555 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.411e-05/0.8993, allocations: 24.45 kB / 0.9555 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.8994, allocations: 5 kB / 0.9555 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.8994, allocations: 42.72 kB / 0.9556 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.8995, allocations: 30.95 kB / 0.9556 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.8995, allocations: 0 / 0.9556 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.996e-06/0.8996, allocations: 1.031 kB / 0.9556 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.8996, allocations: 0 / 0.9556 GB, free: 7.355 MB / 0.7169 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.0003074/0.8999, allocations: 327.2 kB / 0.9559 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.8999, allocations: 9.062 kB / 0.9559 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.083e-05/0.9, allocations: 3.75 kB / 0.9559 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.462e-05/0.9001, allocations: 175.5 kB / 0.9561 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.9001, allocations: 1.625 kB / 0.9561 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.9001, allocations: 4.469 kB / 0.9561 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.9003, allocations: 63.34 kB / 0.9561 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.9003, allocations: 192 / 0.9561 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.9003, allocations: 7.938 kB / 0.9562 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.9003, allocations: 1.188 kB / 0.9562 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.9005, allocations: 103.5 kB / 0.9563 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.9007, allocations: 177.3 kB / 0.9564 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.9008, allocations: 82.97 kB / 0.9565 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.978e-05/0.9008, allocations: 27.19 kB / 0.9565 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002916/0.9011, allocations: 401.8 kB / 0.9569 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.9012, allocations: 31.92 kB / 0.9569 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.923e-06/0.9012, allocations: 0 / 0.9569 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002534/0.9014, allocations: 125.9 kB / 0.9571 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.9015, allocations: 56.64 kB / 0.9571 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.232e-05/0.9015, allocations: 95.05 kB / 0.9572 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.9015, allocations: 30.83 kB / 0.9572 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.417e-05/0.9016, allocations: 80.14 kB / 0.9573 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.9016, allocations: 16.12 kB / 0.9573 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.9016, allocations: 26.42 kB / 0.9573 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.072e-05/0.9017, allocations: 313 kB / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.907e-05/0.9017, allocations: 19.7 kB / 0.9577 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.389e-05/0.9018, allocations: 24.98 kB / 0.9577 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.9019, allocations: 64.27 kB / 0.9578 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.9019, allocations: 0 / 0.9578 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001396/0.902, allocations: 91.95 kB / 0.9578 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.9021, allocations: 6.719 kB / 0.9578 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.9021, allocations: 5.375 kB / 0.9579 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.9021, allocations: 0 / 0.9579 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.9022, allocations: 23.48 kB / 0.9579 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.9022, allocations: 0 / 0.9579 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.443e-05/0.9023, allocations: 18.17 kB / 0.9579 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.9023, allocations: 2.344 kB / 0.9579 GB, free: 5.027 MB / 0.7169 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.000151/0.9024, allocations: 125.9 kB / 0.958 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.9025, allocations: 2.219 kB / 0.958 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.9027, allocations: 125.6 kB / 0.9581 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.9027, allocations: 2.188 kB / 0.9581 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.9027, allocations: 0 / 0.9581 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.9027, allocations: 3.984 kB / 0.9581 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.9028, allocations: 179.3 kB / 0.9583 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.9029, allocations: 0 / 0.9583 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.473e-05/0.9029, allocations: 24.17 kB / 0.9583 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.9029, allocations: 3.938 kB / 0.9583 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.903, allocations: 5.375 kB / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.903, allocations: 1.219 kB / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.903, allocations: 0 / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.9032, allocations: 127.8 kB / 0.9585 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.9032, allocations: 86.55 kB / 0.9585 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.9032, allocations: 1.188 kB / 0.9586 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.498e-05/0.9033, allocations: 4 kB / 0.9586 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.9033, allocations: 8.922 kB / 0.9586 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.9033, allocations: 2.688 kB / 0.9586 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.202e-05/0.9033, allocations: 75.28 kB / 0.9586 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.9033, allocations: 0 / 0.9586 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002035/0.9036, allocations: 19.84 kB / 0.9587 GB, free: 4.289 MB / 0.7169 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.0002232/0.9038, allocations: 115.1 kB / 0.9588 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001734/0.904, allocations: 69.52 kB / 0.9588 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.904, allocations: 1.094 kB / 0.9588 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.786e-05/0.904, allocations: 39.31 kB / 0.9589 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.9042, allocations: 9.281 kB / 0.9589 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003131/0.9045, allocations: 144.4 kB / 0.959 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.9047, allocations: 0.6838 MB / 0.9597 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.946e-05/0.9048, allocations: 39.66 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.997e-05/0.9048, allocations: 20.36 kB / 0.9597 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.9048, allocations: 3.938 kB / 0.9597 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of Templates: time 0.00324/0.9081, allocations: 0.5853 MB / 0.9603 GB, free: 2.973 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches