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.001631/0.001631, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002067/0.002067, allocations: 213.6 kB / 22.25 MB, free: 5.262 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.539/1.539, allocations: 230.6 MB / 256 MB, free: 7.801 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.31/3.31, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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.002315/0.002315, allocations: 70.17 kB / 1.186 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4386/0.4409, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001801/0.4427, allocations: 0.5913 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002889/0.443, allocations: 60.2 kB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.443, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.763e-05/0.443, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.443, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.4434, allocations: 19.91 kB / 1.364 GB, free: 13.37 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.991e-05/0.4434, allocations: 27.98 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.651e-05/0.4435, allocations: 11.98 kB / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.353e-05/0.4435, allocations: 19.92 kB / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.959e-05/0.4435, allocations: 11.92 kB / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.4436, allocations: 0 / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.4437, allocations: 23.97 kB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.4437, allocations: 8 kB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.4437, allocations: 11.92 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.4438, allocations: 36.11 kB / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4438, allocations: 0 / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4438, allocations: 0 / 1.364 GB, free: 13.22 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.4438, allocations: 4 kB / 1.364 GB, free: 13.21 MB / 1.061 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.0003646/0.4442, allocations: 262.3 kB / 1.364 GB, free: 12.93 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4443, allocations: 8.031 kB / 1.364 GB, free: 12.92 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.4443, allocations: 42.73 kB / 1.365 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.649e-05/0.4443, allocations: 0.9375 kB / 1.365 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.722e-05/0.4444, allocations: 110.5 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.4444, allocations: 384 / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.4444, allocations: 8.375 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.4446, allocations: 62.22 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.4446, allocations: 7.938 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.4446, allocations: 7.922 kB / 1.365 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.4446, allocations: 4 kB / 1.365 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.4448, allocations: 91.88 kB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/0.445, allocations: 148.6 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.4451, allocations: 70.48 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.775e-05/0.4451, allocations: 28.84 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001748/0.4453, allocations: 27.95 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.4453, allocations: 30.56 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.4453, allocations: 0 / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0002595/0.4456, allocations: 117.9 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.4456, allocations: 55.34 kB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.045e-05/0.4457, allocations: 101.8 kB / 1.365 GB, free: 11.89 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.4457, allocations: 29.7 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.4458, allocations: 80.14 kB / 1.365 GB, free: 11.77 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.4458, allocations: 19.84 kB / 1.365 GB, free: 11.75 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.4458, allocations: 33.7 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.446, allocations: 314.8 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.137e-05/0.446, allocations: 19.98 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.468e-05/0.4461, allocations: 19.98 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.66e-05/0.4462, allocations: 56.83 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4462, allocations: 7.875 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001412/0.4463, allocations: 90.33 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4463, allocations: 22.22 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.4463, allocations: 0 / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.4463, allocations: 0 / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.823e-05/0.4464, allocations: 19.98 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.4464, allocations: 0 / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.185e-05/0.4465, allocations: 7.891 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.4465, allocations: 8 kB / 1.366 GB, free: 11.14 MB / 1.061 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.0001383/0.4466, allocations: 121.8 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.4466, allocations: 3.938 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.4469, allocations: 137.4 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4469, allocations: 0 / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4469, allocations: 0 / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4469, allocations: 0 / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.447, allocations: 144.7 kB / 1.366 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.447, allocations: 3.984 kB / 1.366 GB, free: 10.67 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.742e-05/0.4471, allocations: 16 kB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.4471, allocations: 3.938 kB / 1.366 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.4471, allocations: 0 / 1.366 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.4471, allocations: 3.984 kB / 1.366 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4471, allocations: 0 / 1.366 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.4473, allocations: 132.9 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.142e-05/0.4473, allocations: 7.938 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.4473, allocations: 3.984 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.427e-05/0.4473, allocations: 0 / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.4474, allocations: 11.98 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.4474, allocations: 8 kB / 1.367 GB, free: 10.47 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.373e-05/0.4474, allocations: 75.28 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4474, allocations: 0 / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001928/0.4476, allocations: 12 kB / 1.367 GB, free: 10.38 MB / 1.061 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.0005466/0.4481, allocations: 0.6747 MB / 1.367 GB, free: 9.68 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001394/0.4483, allocations: 59.95 kB / 1.367 GB, free: 9.621 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.4483, allocations: 0 / 1.367 GB, free: 9.621 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.526e-05/0.4483, allocations: 35.92 kB / 1.367 GB, free: 9.586 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.4485, allocations: 4 kB / 1.367 GB, free: 9.582 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003884/0.4488, allocations: 182.4 kB / 1.368 GB, free: 9.363 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.312e-05/0.4489, allocations: 67.28 kB / 1.368 GB, free: 9.277 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.131e-05/0.449, allocations: 43.88 kB / 1.368 GB, free: 9.234 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.449, allocations: 23.42 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.449, allocations: 0 / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03168/0.4807, allocations: 2.069 MB / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.77, allocations: 4.203 kB / 1.37 GB, free: 7.277 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --stepSize=0.00556 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.94010966317728]