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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008284/0.008284, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.002152/0.002152, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.7/2.7, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 71.89 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3181, allocations: 151.6 MB / 1.166 GB, free: 7.238 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002179/0.3203, allocations: 0.5766 MB / 1.167 GB, free: 6.66 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.3207, allocations: 63.78 kB / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.336e-05/0.3207, allocations: 0 / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.3208, allocations: 4 kB / 1.167 GB, free: 6.594 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.083e-06/0.3208, allocations: 0 / 1.167 GB, free: 6.594 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.3211, allocations: 15.86 kB / 1.167 GB, free: 6.578 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.835e-05/0.3212, allocations: 35.95 kB / 1.167 GB, free: 6.543 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.44e-05/0.3213, allocations: 4 kB / 1.167 GB, free: 6.539 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.767e-05/0.3213, allocations: 8 kB / 1.167 GB, free: 6.531 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.625e-05/0.3214, allocations: 15.91 kB / 1.167 GB, free: 6.516 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.3214, allocations: 4 kB / 1.167 GB, free: 6.512 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.3216, allocations: 19.98 kB / 1.167 GB, free: 6.492 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.3216, allocations: 8 kB / 1.167 GB, free: 6.484 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.578e-05/0.3217, allocations: 15.92 kB / 1.167 GB, free: 6.469 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.3218, allocations: 36.11 kB / 1.167 GB, free: 6.434 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.3218, allocations: 4 kB / 1.167 GB, free: 6.43 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3218, allocations: 0 / 1.167 GB, free: 6.43 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.353e-06/0.3219, allocations: 0 / 1.167 GB, free: 6.43 MB / 0.92 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.000442/0.3223, allocations: 335.4 kB / 1.167 GB, free: 6.051 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.3224, allocations: 8.031 kB / 1.167 GB, free: 6.043 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.3224, allocations: 42.73 kB / 1.167 GB, free: 5.992 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.3225, allocations: 8.938 kB / 1.167 GB, free: 5.984 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.3226, allocations: 168.7 kB / 1.168 GB, free: 5.781 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.3226, allocations: 4.375 kB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.3227, allocations: 8.312 kB / 1.168 GB, free: 5.77 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.3229, allocations: 62.22 kB / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3229, allocations: 3.938 kB / 1.168 GB, free: 5.699 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.3229, allocations: 0 / 1.168 GB, free: 5.699 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.3229, allocations: 7.984 kB / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.3231, allocations: 95.88 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002168/0.3233, allocations: 181.6 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.3235, allocations: 78.42 kB / 1.168 GB, free: 5.285 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.72e-05/0.3235, allocations: 32.84 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003748/0.3239, allocations: 401.5 kB / 1.168 GB, free: 4.766 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.3239, allocations: 38.56 kB / 1.168 GB, free: 4.719 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.3239, allocations: 0 / 1.168 GB, free: 4.719 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0002744/0.3242, allocations: 113.9 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.3243, allocations: 55.41 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.63e-05/0.3243, allocations: 105.8 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.3243, allocations: 25.7 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.518e-05/0.3244, allocations: 80.14 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.3245, allocations: 31.78 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.3245, allocations: 29.7 kB / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3247, allocations: 314.8 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.3247, allocations: 23.92 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.507e-05/0.3248, allocations: 23.92 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.979e-05/0.3249, allocations: 64.83 kB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3249, allocations: 0 / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001406/0.325, allocations: 81.67 kB / 1.169 GB, free: 3.727 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.325, allocations: 11.94 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3251, allocations: 0 / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3251, allocations: 0 / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3252, allocations: 23.92 kB / 1.169 GB, free: 3.691 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.3252, allocations: 0 / 1.169 GB, free: 3.691 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.889e-05/0.3253, allocations: 15.83 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.3253, allocations: 4 kB / 1.169 GB, free: 3.672 MB / 0.92 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.0001909/0.3255, allocations: 125.8 kB / 1.169 GB, free: 3.539 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.022e-05/0.3255, allocations: 7.938 kB / 1.169 GB, free: 3.531 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.3258, allocations: 122.3 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3258, allocations: 0 / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3258, allocations: 0 / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3258, allocations: 0 / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.3259, allocations: 177.6 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.326, allocations: 0 / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.326, allocations: 23.98 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.326, allocations: 3.938 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3261, allocations: 4 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3261, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3261, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.3262, allocations: 133 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-05/0.3263, allocations: 88.94 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.3263, allocations: 4 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.916e-05/0.3264, allocations: 8 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.979e-05/0.3264, allocations: 7.984 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.3264, allocations: 4 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.231e-05/0.3264, allocations: 75.28 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3265, allocations: 0 / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002144/0.3267, allocations: 12 kB / 1.17 GB, free: 2.781 MB / 0.92 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.0006157/0.3273, allocations: 0.6748 MB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000159/0.3275, allocations: 55.97 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3275, allocations: 0 / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.579e-05/0.3275, allocations: 39.92 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.3277, allocations: 6.031 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004368/0.3281, allocations: 190.4 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.3285, allocations: 0.6846 MB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.434e-05/0.3285, allocations: 31.95 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.3286, allocations: 23.42 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of SimCode: time 2.5e-07/0.3286, allocations: 0 / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.3489, allocations: 1.562 MB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/8.082, allocations: 7.891 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/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