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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 214.9 kB / 22.25 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.505/1.505, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.317/3.317, allocations: 0.505 GB / 0.8101 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 64.14 kB / 1.177 GB, free: 16.99 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3947, allocations: 180.2 MB / 1.353 GB, free: 8.465 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001754/0.3965, allocations: 0.5875 MB / 1.353 GB, free: 7.879 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003153/0.3968, allocations: 68.08 kB / 1.354 GB, free: 7.812 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.3968, allocations: 4 kB / 1.354 GB, free: 7.809 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.321e-05/0.3969, allocations: 0 / 1.354 GB, free: 7.809 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.602e-06/0.3969, allocations: 0 / 1.354 GB, free: 7.809 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.3972, allocations: 27.89 kB / 1.354 GB, free: 7.781 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.852e-05/0.3973, allocations: 23.98 kB / 1.354 GB, free: 7.758 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.3973, allocations: 8 kB / 1.354 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.278e-05/0.3974, allocations: 11.97 kB / 1.354 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 3.424e-05/0.3974, allocations: 12 kB / 1.354 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.3974, allocations: 0 / 1.354 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.3975, allocations: 27.95 kB / 1.354 GB, free: 7.699 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.989e-05/0.3975, allocations: 8 kB / 1.354 GB, free: 7.691 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.3976, allocations: 15.88 kB / 1.354 GB, free: 7.676 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.3977, allocations: 36.11 kB / 1.354 GB, free: 7.641 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3977, allocations: 0 / 1.354 GB, free: 7.641 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3977, allocations: 0 / 1.354 GB, free: 7.641 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.3977, allocations: 0 / 1.354 GB, free: 7.641 MB / 1.045 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.0004187/0.3981, allocations: 270.3 kB / 1.354 GB, free: 7.344 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3982, allocations: 8.031 kB / 1.354 GB, free: 7.336 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.3982, allocations: 38.75 kB / 1.354 GB, free: 7.289 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.3983, allocations: 0.9375 kB / 1.354 GB, free: 7.289 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.3984, allocations: 114.5 kB / 1.354 GB, free: 7.152 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3984, allocations: 4.375 kB / 1.354 GB, free: 7.148 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.3984, allocations: 8.375 kB / 1.354 GB, free: 7.141 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.3986, allocations: 58.23 kB / 1.354 GB, free: 7.078 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3986, allocations: 3.938 kB / 1.354 GB, free: 7.074 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.3986, allocations: 0 / 1.354 GB, free: 7.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.3986, allocations: 4 kB / 1.354 GB, free: 7.07 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.3988, allocations: 103.8 kB / 1.354 GB, free: 6.969 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.3989, allocations: 152.6 kB / 1.354 GB, free: 6.777 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.3991, allocations: 82.41 kB / 1.355 GB, free: 6.688 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.265e-05/0.3991, allocations: 24.84 kB / 1.355 GB, free: 6.66 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001862/0.3993, allocations: 19.98 kB / 1.355 GB, free: 6.641 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.3993, allocations: 30.56 kB / 1.355 GB, free: 6.602 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.3993, allocations: 0 / 1.355 GB, free: 6.602 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0002585/0.3996, allocations: 117.9 kB / 1.355 GB, free: 6.48 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.3996, allocations: 55.34 kB / 1.355 GB, free: 6.414 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.47e-05/0.3997, allocations: 105.8 kB / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.3997, allocations: 29.7 kB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.3997, allocations: 84.08 kB / 1.355 GB, free: 6.18 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.057e-05/0.3998, allocations: 15.86 kB / 1.355 GB, free: 6.164 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.3998, allocations: 33.7 kB / 1.355 GB, free: 6.125 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4, allocations: 314.8 kB / 1.355 GB, free: 5.809 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.059e-05/0.4, allocations: 19.98 kB / 1.355 GB, free: 5.789 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.638e-05/0.4, allocations: 19.98 kB / 1.355 GB, free: 5.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.4002, allocations: 56.83 kB / 1.355 GB, free: 5.711 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4002, allocations: 4 kB / 1.355 GB, free: 5.707 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000153/0.4003, allocations: 97.55 kB / 1.355 GB, free: 5.605 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.4003, allocations: 7.938 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.4003, allocations: 0 / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.4004, allocations: 3.984 kB / 1.356 GB, free: 5.594 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.4005, allocations: 19.98 kB / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.4005, allocations: 0 / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.156e-05/0.4005, allocations: 7.938 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.4005, allocations: 4 kB / 1.356 GB, free: 5.562 MB / 1.045 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.0001533/0.4006, allocations: 125.8 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/0.4007, allocations: 11.89 kB / 1.356 GB, free: 5.418 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.4009, allocations: 122.2 kB / 1.356 GB, free: 5.289 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.4009, allocations: 0 / 1.356 GB, free: 5.289 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4009, allocations: 8 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.4009, allocations: 3.984 kB / 1.356 GB, free: 5.277 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.4011, allocations: 148.6 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4011, allocations: 0 / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.4011, allocations: 23.98 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4011, allocations: 3.938 kB / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.4011, allocations: 4 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4011, allocations: 0 / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4011, allocations: 0 / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.4013, allocations: 129 kB / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.4013, allocations: 11.89 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.4014, allocations: 0 / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.4014, allocations: 0 / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.4014, allocations: 15.98 kB / 1.356 GB, free: 4.887 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.4014, allocations: 7.984 kB / 1.356 GB, free: 4.879 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.706e-05/0.4015, allocations: 75.28 kB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4015, allocations: 0 / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002025/0.4017, allocations: 16 kB / 1.356 GB, free: 4.789 MB / 1.045 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.0005855/0.4022, allocations: 0.6659 MB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001668/0.4024, allocations: 55.91 kB / 1.357 GB, free: 4.043 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4024, allocations: 3.938 kB / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.793e-05/0.4025, allocations: 35.91 kB / 1.357 GB, free: 4.004 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.4026, allocations: 8 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.4031, allocations: 178.4 kB / 1.357 GB, free: 3.781 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.4034, allocations: 0.6923 MB / 1.358 GB, free: 3.062 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.739e-05/0.4035, allocations: 35.94 kB / 1.358 GB, free: 3.027 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.4035, allocations: 15.44 kB / 1.358 GB, free: 3.012 MB / 1.045 GB Notification: Performance of SimCode: time 2.8e-07/0.4035, allocations: 0 / 1.358 GB, free: 3.012 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.4311, allocations: 1.703 MB / 1.36 GB, free: 1.441 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11, allocations: 11.86 kB / 1.36 GB, free: 1.434 MB / 1.045 GB " [Timeout remaining time 289] (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 800 --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) [Timeout 840.0] 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) [Timeout 300] "Error: Could not read variable falFac[6] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[6] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[7] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[7] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[8] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[8] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[9] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[9] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[10] in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[10] from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.235858130999986]