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.001261/0.001261, 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.001249/0.00125, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.387/2.387, allocations: 437 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.89 kB / 0.8693 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.585/0.5863, allocations: 151.6 MB / 1.017 GB, free: 2.539 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001654/0.588, allocations: 0.5803 MB / 1.018 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002343/0.5883, allocations: 59.78 kB / 1.018 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.597e-05/0.5883, allocations: 0 / 1.018 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.489e-05/0.5883, allocations: 0 / 1.018 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.5883, allocations: 3.938 kB / 1.018 GB, free: 1.891 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.5886, allocations: 19.92 kB / 1.018 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.99e-05/0.5887, allocations: 27.97 kB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.5887, allocations: 8 kB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.5887, allocations: 7.984 kB / 1.018 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.619e-05/0.5888, allocations: 19.98 kB / 1.018 GB, free: 1.809 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.5888, allocations: 0 / 1.018 GB, free: 1.809 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.559e-05/0.5888, allocations: 15.98 kB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.472e-05/0.5889, allocations: 11.98 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.5889, allocations: 15.88 kB / 1.018 GB, free: 1.766 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.5e-05/0.589, allocations: 39.88 kB / 1.018 GB, free: 1.727 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.589, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.589, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.589, allocations: 0 / 1.018 GB, free: 1.727 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.0002753/0.5893, allocations: 331.5 kB / 1.019 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.5893, allocations: 12.03 kB / 1.019 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.03e-05/0.5894, allocations: 42.69 kB / 1.019 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.701e-05/0.5894, allocations: 8.922 kB / 1.019 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.287e-05/0.5895, allocations: 170.6 kB / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.5895, allocations: 4.375 kB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.5895, allocations: 4.375 kB / 1.019 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.5896, allocations: 58.23 kB / 1.019 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.5897, allocations: 3.938 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.5897, allocations: 4 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.5897, allocations: 3.984 kB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.5898, allocations: 103.9 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.59, allocations: 181.4 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.5901, allocations: 74.48 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.584e-05/0.5901, allocations: 28.84 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002784/0.5904, allocations: 401.5 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.5905, allocations: 42.55 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.5905, allocations: 0 / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of matching and sorting (n=11): time 0.000239/0.5907, allocations: 117.9 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.5908, allocations: 55.34 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.932e-05/0.5908, allocations: 97.77 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.5908, allocations: 29.7 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.019e-05/0.5908, allocations: 80.14 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.5909, allocations: 19.8 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.5909, allocations: 25.72 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.591, allocations: 318.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.8e-05/0.5911, allocations: 23.98 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.433e-05/0.5911, allocations: 19.98 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.32e-05/0.5912, allocations: 61.48 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.5912, allocations: 0 / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001361/0.5913, allocations: 101.4 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.5914, allocations: 7.938 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.5914, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.5914, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.328e-05/0.5915, allocations: 23.98 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.5915, allocations: 0 / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.5915, allocations: 11.94 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.5915, allocations: 0 / 1.021 GB, free: 14.98 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.0001072/0.5916, allocations: 121.8 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.5917, allocations: 11.84 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.5919, allocations: 125.5 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.5919, allocations: 7.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5919, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5919, allocations: 4 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.592, allocations: 173.5 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.592, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.86e-05/0.5921, allocations: 23.98 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.5921, allocations: 3.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.5921, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5921, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5921, allocations: 8 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.5923, allocations: 124.9 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.5923, allocations: 81.05 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.5923, allocations: 7.984 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.624e-05/0.5924, allocations: 7.938 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.5924, allocations: 7.984 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.5924, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.31e-05/0.5924, allocations: 75.28 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5924, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001906/0.5926, allocations: 12 kB / 1.021 GB, free: 14.1 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.0004261/0.5931, allocations: 0.6786 MB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001452/0.5932, allocations: 75.84 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.5932, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.925e-05/0.5933, allocations: 35.98 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.5934, allocations: 8 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.5938, allocations: 175.5 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.594, allocations: 0.6846 MB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.463e-05/0.5941, allocations: 35.94 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.573e-05/0.5941, allocations: 23.42 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5941, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.6114, allocations: 1.526 MB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.049/7.66, allocations: 13.72 kB / 1.025 GB, free: 10.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 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.mat","/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