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.007088/0.007088, allocations: 99.72 kB / 15.73 MB, free: 6.496 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.001686/0.001686, allocations: 201.6 kB / 16.68 MB, free: 6.375 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.346/2.346, allocations: 390.2 MB / 0.6648 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.86 kB / 0.9504 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3132, allocations: 140.4 MB / 1.088 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001808/0.315, allocations: 0.5726 MB / 1.088 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002642/0.3153, allocations: 55.73 kB / 1.088 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.818e-05/0.3153, allocations: 4 kB / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.541e-05/0.3154, allocations: 0 / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.3154, allocations: 0 / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.3156, allocations: 31.84 kB / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.92e-05/0.3157, allocations: 27.97 kB / 1.088 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.3158, allocations: 4 kB / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.019e-05/0.3158, allocations: 7.984 kB / 1.088 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.926e-05/0.3158, allocations: 15.98 kB / 1.088 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.3159, allocations: 0 / 1.088 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.947e-05/0.3159, allocations: 15.98 kB / 1.088 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.316, allocations: 23.92 kB / 1.088 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.061e-05/0.316, allocations: 11.92 kB / 1.088 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.871e-05/0.3161, allocations: 36.11 kB / 1.088 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3161, allocations: 0 / 1.088 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3161, allocations: 0 / 1.088 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.3161, allocations: 0 / 1.088 GB, free: 1.145 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.0003513/0.3165, allocations: 335.5 kB / 1.089 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3165, allocations: 12.03 kB / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.3166, allocations: 38.73 kB / 1.089 GB, free: 0.707 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.3166, allocations: 8.891 kB / 1.089 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.899e-05/0.3167, allocations: 168.7 kB / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.3167, allocations: 384 / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.3168, allocations: 4.375 kB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.3169, allocations: 62.22 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3169, allocations: 7.938 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3169, allocations: 4 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3169, allocations: 0 / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.3171, allocations: 103.8 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.3172, allocations: 169.7 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.3173, allocations: 78.48 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.265e-05/0.3174, allocations: 32.88 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/0.3177, allocations: 409.5 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.3178, allocations: 30.56 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.3178, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0002385/0.318, allocations: 125.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.3181, allocations: 51.41 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.792e-05/0.3181, allocations: 101.9 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.3181, allocations: 29.7 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.3182, allocations: 80.14 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.3182, allocations: 23.78 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/0.3183, allocations: 33.7 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3184, allocations: 314.8 kB / 1.09 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.146e-05/0.3185, allocations: 27.92 kB / 1.09 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.469e-05/0.3185, allocations: 20.42 kB / 1.09 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.846e-05/0.3186, allocations: 64.98 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3186, allocations: 0 / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002032/0.3188, allocations: 101.5 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3188, allocations: 10.12 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.3188, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.3189, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.319, allocations: 19.98 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.319, allocations: 0 / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.303e-05/0.319, allocations: 7.938 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.319, allocations: 4 kB / 1.091 GB, free: 14.39 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.0001355/0.3192, allocations: 125.8 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.3192, allocations: 7.938 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.3194, allocations: 125.4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3194, allocations: 4 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3194, allocations: 0 / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3194, allocations: 0 / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.3196, allocations: 169.7 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3196, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.073e-05/0.3196, allocations: 23.98 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3197, allocations: 3.938 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.3197, allocations: 4 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3197, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3197, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.3198, allocations: 124.9 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.3199, allocations: 92.98 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.3199, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.735e-05/0.3199, allocations: 4 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.959e-05/0.32, allocations: 7.984 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.32, allocations: 8 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.857e-05/0.32, allocations: 75.28 kB / 1.091 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.32, allocations: 0 / 1.091 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002122/0.3202, allocations: 12 kB / 1.091 GB, free: 13.51 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.0004876/0.3207, allocations: 0.6787 MB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000145/0.3209, allocations: 68.28 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3209, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.201e-05/0.3209, allocations: 31.92 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.3211, allocations: 8 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003983/0.3215, allocations: 174.6 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.3218, allocations: 0.6924 MB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.946e-05/0.3219, allocations: 35.94 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.348e-05/0.3219, allocations: 19.42 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3219, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.3404, allocations: 1.562 MB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/8.367, allocations: 5.766 kB / 1.095 GB, free: 10.25 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