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.001044/0.001044, allocations: 108 kB / 15.6 MB, free: 132 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.001043/0.001043, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.273/1.273, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.475/2.475, allocations: 437.1 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.91 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5447/0.5467, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001537/0.5482, allocations: 0.5904 MB / 1.018 GB, free: 1.879 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002217/0.5485, allocations: 51.8 kB / 1.018 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.607e-05/0.5485, allocations: 0 / 1.018 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.716e-05/0.5485, allocations: 0 / 1.018 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.968e-06/0.5485, allocations: 3.938 kB / 1.018 GB, free: 1.824 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.5488, allocations: 19.98 kB / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.003e-05/0.5488, allocations: 35.89 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.27e-05/0.5489, allocations: 4 kB / 1.018 GB, free: 1.766 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.437e-05/0.5489, allocations: 4 kB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.839e-05/0.5489, allocations: 23.97 kB / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.549, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.307e-05/0.549, allocations: 15.98 kB / 1.018 GB, free: 1.723 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.5491, allocations: 8 kB / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.059e-05/0.5491, allocations: 19.86 kB / 1.018 GB, free: 1.695 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.982e-05/0.5492, allocations: 35.89 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5492, allocations: 3.984 kB / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5492, allocations: 0 / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.281e-06/0.5492, allocations: 0 / 1.018 GB, free: 1.656 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.0002641/0.5495, allocations: 339.4 kB / 1.019 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.5495, allocations: 16.03 kB / 1.019 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.855e-05/0.5495, allocations: 30.75 kB / 1.019 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.362e-05/0.5496, allocations: 4.938 kB / 1.019 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.161e-05/0.5496, allocations: 166.6 kB / 1.019 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.5497, allocations: 4.375 kB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.5497, allocations: 8.312 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.5498, allocations: 58.23 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.5498, allocations: 3.938 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.5498, allocations: 12 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.5498, allocations: 0 / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.55, allocations: 111.8 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.5501, allocations: 173.5 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.5502, allocations: 78.53 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.219e-05/0.5503, allocations: 32.84 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.5506, allocations: 401.6 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.5506, allocations: 30.56 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.5506, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0002099/0.5508, allocations: 121.5 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.5508, allocations: 51.62 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.672e-05/0.5509, allocations: 101.8 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.5509, allocations: 29.64 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 1.924e-05/0.5509, allocations: 80.14 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.551, allocations: 19.72 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.551, allocations: 33.7 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.243e-05/0.5511, allocations: 318.8 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.538e-05/0.5511, allocations: 23.98 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.063e-05/0.5512, allocations: 19.98 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.754e-05/0.5513, allocations: 56.78 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5513, allocations: 0 / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001262/0.5514, allocations: 101.5 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.5514, allocations: 7.938 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.5514, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.5514, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.102e-05/0.5515, allocations: 19.98 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.5515, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.909e-05/0.5516, allocations: 11.94 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.5516, allocations: 0 / 1.021 GB, free: 14.91 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 9.745e-05/0.5517, allocations: 125.8 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.5517, allocations: 15.83 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001891/0.5519, allocations: 118.4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.5519, allocations: 7.938 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5519, allocations: 4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.5519, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.552, allocations: 173.6 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.552, allocations: 3.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.774e-05/0.5521, allocations: 23.92 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.5521, allocations: 3.938 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.5521, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.5521, allocations: 4 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.5521, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.5523, allocations: 125 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.5523, allocations: 85.05 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.5523, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.566e-05/0.5524, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.5524, allocations: 7.984 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.5524, allocations: 7.938 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.589e-05/0.5524, allocations: 75.28 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5524, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001865/0.5526, allocations: 20 kB / 1.021 GB, free: 14.02 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.0004037/0.553, allocations: 0.6669 MB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001361/0.5532, allocations: 79.83 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.5532, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.732e-05/0.5533, allocations: 39.92 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.5534, allocations: 8 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.5537, allocations: 174.7 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.5539, allocations: 0.6807 MB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.608e-05/0.554, allocations: 35.94 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.554, allocations: 27.42 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.554, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.5691, allocations: 1.531 MB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.894/7.463, allocations: 12.14 kB / 1.025 GB, free: 10.76 MB / 0.7794 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