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.001688/0.001688, allocations: 108.8 kB / 16.46 MB, free: 6.453 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.002077/0.002077, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.547/1.547, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.387/3.387, allocations: 0.505 GB / 0.8066 GB, free: 23.07 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.0025/0.0025, allocations: 75.28 kB / 1.172 GB, free: 17.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3665, allocations: 180.2 MB / 1.348 GB, free: 9.922 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002214/0.3687, allocations: 0.5969 MB / 1.348 GB, free: 9.328 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003244/0.369, allocations: 63.72 kB / 1.348 GB, free: 9.266 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.492e-05/0.369, allocations: 4 kB / 1.348 GB, free: 9.262 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.944e-05/0.3691, allocations: 0 / 1.348 GB, free: 9.262 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.675e-06/0.3691, allocations: 0 / 1.348 GB, free: 9.262 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.3694, allocations: 7.984 kB / 1.348 GB, free: 9.254 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.666e-05/0.3695, allocations: 31.97 kB / 1.348 GB, free: 9.223 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.557e-05/0.3695, allocations: 4 kB / 1.348 GB, free: 9.219 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.462e-05/0.3696, allocations: 11.98 kB / 1.348 GB, free: 9.207 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 3.259e-05/0.3696, allocations: 15.92 kB / 1.349 GB, free: 9.191 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.3696, allocations: 4 kB / 1.349 GB, free: 9.188 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.243e-05/0.3697, allocations: 15.98 kB / 1.349 GB, free: 9.172 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.3697, allocations: 15.92 kB / 1.349 GB, free: 9.156 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.154e-05/0.3698, allocations: 15.92 kB / 1.349 GB, free: 9.141 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.3699, allocations: 40.11 kB / 1.349 GB, free: 9.102 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3699, allocations: 0 / 1.349 GB, free: 9.102 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3699, allocations: 0 / 1.349 GB, free: 9.102 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.3699, allocations: 0 / 1.349 GB, free: 9.102 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.0003938/0.3703, allocations: 339.4 kB / 1.349 GB, free: 8.719 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3704, allocations: 15.98 kB / 1.349 GB, free: 8.703 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.3704, allocations: 38.75 kB / 1.349 GB, free: 8.656 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.3704, allocations: 0.9375 kB / 1.349 GB, free: 8.656 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.3706, allocations: 164.4 kB / 1.349 GB, free: 8.457 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3706, allocations: 384 / 1.349 GB, free: 8.457 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.3706, allocations: 8.375 kB / 1.349 GB, free: 8.449 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.3707, allocations: 66.16 kB / 1.349 GB, free: 8.379 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3707, allocations: 3.938 kB / 1.349 GB, free: 8.375 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3707, allocations: 3.984 kB / 1.349 GB, free: 8.371 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3707, allocations: 4 kB / 1.349 GB, free: 8.367 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.3709, allocations: 107.8 kB / 1.349 GB, free: 8.262 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.3711, allocations: 177.6 kB / 1.349 GB, free: 8.039 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.3712, allocations: 66.95 kB / 1.35 GB, free: 7.965 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.933e-05/0.3713, allocations: 28.83 kB / 1.35 GB, free: 7.934 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003604/0.3716, allocations: 405.5 kB / 1.35 GB, free: 7.445 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.3717, allocations: 34.5 kB / 1.35 GB, free: 7.402 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.3717, allocations: 0 / 1.35 GB, free: 7.402 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0002516/0.3719, allocations: 117.9 kB / 1.35 GB, free: 7.281 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.372, allocations: 55.41 kB / 1.35 GB, free: 7.215 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.085e-05/0.372, allocations: 101.8 kB / 1.35 GB, free: 7.105 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.372, allocations: 25.7 kB / 1.35 GB, free: 7.074 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.397e-05/0.3721, allocations: 80.14 kB / 1.35 GB, free: 6.992 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.3721, allocations: 23.84 kB / 1.35 GB, free: 6.969 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.3721, allocations: 33.7 kB / 1.35 GB, free: 6.93 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3723, allocations: 314.8 kB / 1.351 GB, free: 6.613 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.05e-05/0.3723, allocations: 23.98 kB / 1.351 GB, free: 6.59 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.898e-05/0.3723, allocations: 23.92 kB / 1.351 GB, free: 6.566 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.3725, allocations: 61.48 kB / 1.351 GB, free: 6.504 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3725, allocations: 0 / 1.351 GB, free: 6.504 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001562/0.3726, allocations: 97.55 kB / 1.351 GB, free: 6.402 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3726, allocations: 7.938 kB / 1.351 GB, free: 6.395 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3726, allocations: 7.984 kB / 1.351 GB, free: 6.387 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3727, allocations: 0 / 1.351 GB, free: 6.387 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3728, allocations: 19.94 kB / 1.351 GB, free: 6.367 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3728, allocations: 4 kB / 1.351 GB, free: 6.363 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.3728, allocations: 7.938 kB / 1.351 GB, free: 6.355 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.3728, allocations: 7.984 kB / 1.351 GB, free: 6.348 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.000172/0.373, allocations: 120.7 kB / 1.351 GB, free: 6.223 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/0.373, allocations: 11.89 kB / 1.351 GB, free: 6.211 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.3732, allocations: 121.5 kB / 1.351 GB, free: 6.078 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.3732, allocations: 4 kB / 1.351 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3732, allocations: 0 / 1.351 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3733, allocations: 4 kB / 1.351 GB, free: 6.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.3734, allocations: 173.6 kB / 1.351 GB, free: 5.852 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3734, allocations: 0 / 1.351 GB, free: 5.852 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.5e-05/0.3735, allocations: 19.98 kB / 1.351 GB, free: 5.832 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3735, allocations: 3.938 kB / 1.351 GB, free: 5.828 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.3735, allocations: 4 kB / 1.351 GB, free: 5.824 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3735, allocations: 3.984 kB / 1.351 GB, free: 5.82 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3735, allocations: 0 / 1.351 GB, free: 5.82 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.3737, allocations: 117 kB / 1.352 GB, free: 5.688 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.3737, allocations: 92.94 kB / 1.352 GB, free: 5.578 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.3737, allocations: 7.984 kB / 1.352 GB, free: 5.57 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.546e-05/0.3738, allocations: 0 / 1.352 GB, free: 5.57 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.3738, allocations: 7.938 kB / 1.352 GB, free: 5.562 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.3738, allocations: 11.98 kB / 1.352 GB, free: 5.551 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.201e-05/0.3738, allocations: 79.22 kB / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3738, allocations: 0 / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002133/0.374, allocations: 12 kB / 1.352 GB, free: 5.461 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.0005675/0.3746, allocations: 0.6632 MB / 1.352 GB, free: 4.77 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.3748, allocations: 63.84 kB / 1.352 GB, free: 4.707 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3748, allocations: 0 / 1.352 GB, free: 4.707 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 6.002e-05/0.3748, allocations: 36.56 kB / 1.352 GB, free: 4.672 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.375, allocations: 8 kB / 1.352 GB, free: 4.664 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/0.3755, allocations: 190.6 kB / 1.353 GB, free: 4.438 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.3758, allocations: 0.6884 MB / 1.353 GB, free: 3.723 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.207e-05/0.3759, allocations: 35.94 kB / 1.353 GB, free: 3.688 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.276e-05/0.3759, allocations: 15.44 kB / 1.353 GB, free: 3.672 MB / 1.045 GB Notification: Performance of SimCode: time 3.8e-07/0.3759, allocations: 0 / 1.353 GB, free: 3.672 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.4014, allocations: 1.58 MB / 1.355 GB, free: 2.207 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.605, allocations: 10.06 kB / 1.355 GB, free: 2.199 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.914221453014761]