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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_9_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.008712/0.008712, allocations: 104.3 kB / 15.74 MB, free: 6.441 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.002193/0.002193, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.281 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.485/2.485, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 62.25 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2696, allocations: 140.4 MB / 1.088 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001713/0.2714, allocations: 0.5688 MB / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002915/0.2717, allocations: 63.77 kB / 1.088 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.946e-05/0.2717, allocations: 0 / 1.088 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.2718, allocations: 4 kB / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.2718, allocations: 0 / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.2721, allocations: 15.92 kB / 1.088 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.2723, allocations: 27.97 kB / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.898e-05/0.2723, allocations: 11.98 kB / 1.088 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.536e-05/0.2724, allocations: 4 kB / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.615e-05/0.2724, allocations: 19.97 kB / 1.088 GB, free: 1.25 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.2724, allocations: 4 kB / 1.088 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.623e-05/0.2725, allocations: 15.98 kB / 1.088 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/0.2726, allocations: 7.938 kB / 1.088 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/0.2726, allocations: 15.92 kB / 1.088 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001306/0.2727, allocations: 35.89 kB / 1.088 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2728, allocations: 4 kB / 1.088 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2728, allocations: 3.938 kB / 1.088 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.2728, allocations: 0 / 1.088 GB, free: 1.164 MB / 0.8419 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.0003586/0.2731, allocations: 339.6 kB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2732, allocations: 8.031 kB / 1.089 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.2732, allocations: 34.75 kB / 1.089 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.2733, allocations: 4.844 kB / 1.089 GB, free: 0.7266 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.2734, allocations: 171.5 kB / 1.089 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.2734, allocations: 4.375 kB / 1.089 GB, free: 0.5195 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2734, allocations: 8.312 kB / 1.089 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.2736, allocations: 62.17 kB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2736, allocations: 3.938 kB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.2736, allocations: 4 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2736, allocations: 8 kB / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.2738, allocations: 99.86 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.2739, allocations: 166.2 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.2741, allocations: 74.47 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.25e-05/0.2741, allocations: 32.84 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000358/0.2745, allocations: 401.5 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.2745, allocations: 34.56 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.2745, allocations: 4 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0002473/0.2748, allocations: 118.2 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.2748, allocations: 51.41 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.297e-05/0.2749, allocations: 101.8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.2749, allocations: 25.7 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.618e-05/0.2749, allocations: 84.14 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.275, allocations: 27.92 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.275, allocations: 33.64 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2751, allocations: 326.8 kB / 1.09 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.993e-05/0.2752, allocations: 15.98 kB / 1.09 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.2752, allocations: 24.03 kB / 1.09 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.2754, allocations: 60.78 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2754, allocations: 4 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001392/0.2755, allocations: 89.66 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2755, allocations: 14.12 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2755, allocations: 0 / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.2756, allocations: 0 / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.2757, allocations: 19.94 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.2757, allocations: 7.984 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.2757, allocations: 3.938 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2757, allocations: 7.938 kB / 1.091 GB, free: 14.42 MB / 0.8575 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.0001474/0.2759, allocations: 117.8 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.2759, allocations: 15.83 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.2761, allocations: 125.5 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2761, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2761, allocations: 4 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2761, allocations: 3.984 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.2763, allocations: 177.6 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2763, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/0.2764, allocations: 16 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2764, allocations: 3.938 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.2764, allocations: 3.984 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2764, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.556e-05/0.2764, allocations: 3.984 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.2766, allocations: 125 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.2766, allocations: 92.88 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.2767, allocations: 8 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.532e-05/0.2767, allocations: 0 / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.449e-05/0.2767, allocations: 7.984 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.2767, allocations: 4 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.698e-05/0.2768, allocations: 75.28 kB / 1.091 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2768, allocations: 0 / 1.091 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002033/0.277, allocations: 12 kB / 1.091 GB, free: 13.53 MB / 0.8575 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.0004827/0.2775, allocations: 0.6792 MB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001458/0.2776, allocations: 63.95 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2776, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.363e-05/0.2777, allocations: 35.92 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.2778, allocations: 12 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003987/0.2782, allocations: 170.7 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.2785, allocations: 0.6845 MB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.332e-05/0.2786, allocations: 35.94 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.167e-05/0.2787, allocations: 19.44 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of SimCode: time 4.2e-07/0.2787, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.3003, allocations: 1.563 MB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.924, allocations: 8.047 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/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