Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_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.001338/0.001339, 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.00149/0.00149, allocations: 192.5 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.275/1.275, 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 11.0.1-master/package.mo): time 2.6/2.6, allocations: 469.4 MB / 0.742 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002286, allocations: 65.58 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2633, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001769/0.2651, allocations: 0.5895 MB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002531/0.2653, allocations: 55.77 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.772e-05/0.2654, allocations: 3.938 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.2654, allocations: 3.938 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.2654, allocations: 0 / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.2657, allocations: 19.98 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.349e-05/0.2658, allocations: 27.98 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.898e-05/0.2658, allocations: 0 / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.162e-05/0.2659, allocations: 19.97 kB / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.485e-05/0.2659, allocations: 4 kB / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.2659, allocations: 0 / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.366e-05/0.266, allocations: 23.98 kB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.8e-05/0.266, allocations: 15.98 kB / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.391e-05/0.2661, allocations: 19.86 kB / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.862e-05/0.2661, allocations: 27.89 kB / 1.064 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2662, allocations: 0 / 1.064 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2662, allocations: 3.938 kB / 1.064 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.2662, allocations: 0 / 1.064 GB, free: 13.72 MB / 0.8262 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.0003103/0.2665, allocations: 331.6 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2665, allocations: 12.03 kB / 1.065 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.569e-05/0.2666, allocations: 42.73 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.2666, allocations: 12.84 kB / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.835e-05/0.2667, allocations: 164.6 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.2667, allocations: 4.375 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.2667, allocations: 4.375 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.2669, allocations: 66.22 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2669, allocations: 3.938 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.2669, allocations: 0 / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2669, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.2671, allocations: 99.88 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.2672, allocations: 177.6 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.2673, allocations: 70.55 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.2674, allocations: 28.84 kB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/0.2677, allocations: 413.4 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2677, allocations: 30.56 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 2.634e-06/0.2678, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0002342/0.268, allocations: 121.8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.268, allocations: 55.41 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.803e-05/0.2681, allocations: 97.77 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2681, allocations: 29.7 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.425e-05/0.2681, allocations: 80.14 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.2682, allocations: 27.64 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.2682, allocations: 29.7 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2683, allocations: 314.8 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.2684, allocations: 19.98 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.39e-05/0.2684, allocations: 23.98 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.2685, allocations: 65.42 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2685, allocations: 0 / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001311/0.2687, allocations: 93.55 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2687, allocations: 9.5 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2687, allocations: 0 / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.2687, allocations: 4 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2688, allocations: 15.98 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.2688, allocations: 4 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.2688, allocations: 4 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2689, allocations: 8 kB / 1.067 GB, free: 10.98 MB / 0.8262 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.0001087/0.269, allocations: 121.8 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.269, allocations: 11.84 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002068/0.2692, allocations: 121.5 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.2692, allocations: 4 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2692, allocations: 0 / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2692, allocations: 7.984 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.2694, allocations: 177.5 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2694, allocations: 0 / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.2694, allocations: 23.92 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2695, allocations: 3.938 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.2695, allocations: 4 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2695, allocations: 4 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2695, allocations: 0 / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.2696, allocations: 121.1 kB / 1.067 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.2697, allocations: 96.83 kB / 1.067 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.2697, allocations: 0 / 1.067 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.462e-05/0.2697, allocations: 0 / 1.067 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.2698, allocations: 11.98 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.2698, allocations: 4 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.358e-05/0.2698, allocations: 79.22 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.502e-06/0.2698, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001985/0.27, allocations: 23.94 kB / 1.068 GB, free: 10.07 MB / 0.8262 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.0004837/0.2705, allocations: 0.6676 MB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001452/0.2707, allocations: 67.84 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2707, allocations: 0 / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.253e-05/0.2707, allocations: 43.91 kB / 1.068 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.2709, allocations: 8 kB / 1.068 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003834/0.2713, allocations: 183.4 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.2715, allocations: 0.6807 MB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.866e-05/0.2716, allocations: 31.95 kB / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.2716, allocations: 23.42 kB / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.2716, allocations: 4 kB / 1.069 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.2879, allocations: 1.538 MB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.093/7.381, allocations: 12.06 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches