Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001392/0.001392, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001585/0.001585, allocations: 214.6 kB / 22.25 MB, free: 5.082 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.552/1.552, allocations: 230.6 MB / 256 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.901/2.901, allocations: 476.7 MB / 0.7707 GB, free: 4.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_11_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.002093/0.002093, allocations: 64.28 kB / 1.117 GB, free: 40.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.338, allocations: 170 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002108/0.3402, allocations: 0.6035 MB / 1.284 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003786/0.3405, allocations: 51.8 kB / 1.284 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.275e-05/0.3406, allocations: 0 / 1.284 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.3406, allocations: 0 / 1.284 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3406, allocations: 0 / 1.284 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.3409, allocations: 23.95 kB / 1.284 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.313e-05/0.341, allocations: 31.92 kB / 1.284 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.959e-05/0.3411, allocations: 7.938 kB / 1.284 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.845e-05/0.3411, allocations: 15.97 kB / 1.284 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.358e-05/0.3411, allocations: 8 kB / 1.284 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.3412, allocations: 0 / 1.284 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3413, allocations: 31.95 kB / 1.284 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.048e-05/0.3413, allocations: 11.94 kB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.3413, allocations: 11.94 kB / 1.284 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.3415, allocations: 35.41 kB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3415, allocations: 0 / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3415, allocations: 4 kB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.3415, allocations: 3.984 kB / 1.284 GB, free: 10.9 MB / 0.9825 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.0003643/0.3418, allocations: 258.3 kB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3419, allocations: 8.031 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.397e-05/0.3419, allocations: 34.75 kB / 1.285 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.3419, allocations: 8.891 kB / 1.285 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.943e-05/0.342, allocations: 106.5 kB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3421, allocations: 8.375 kB / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.3421, allocations: 4.375 kB / 1.285 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.3422, allocations: 70.11 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3422, allocations: 7.938 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.3422, allocations: 0 / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3423, allocations: 4 kB / 1.285 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.3424, allocations: 99.86 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.3426, allocations: 144.7 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.3427, allocations: 70.62 kB / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.18e-05/0.3428, allocations: 40.78 kB / 1.285 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001934/0.343, allocations: 15.98 kB / 1.285 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.343, allocations: 38.56 kB / 1.285 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 3.166e-06/0.343, allocations: 3.984 kB / 1.285 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0002647/0.3433, allocations: 117.8 kB / 1.285 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.3433, allocations: 51.41 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.023e-05/0.3434, allocations: 97.84 kB / 1.285 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3434, allocations: 29.7 kB / 1.285 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.033e-05/0.3435, allocations: 80.14 kB / 1.285 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.3435, allocations: 23.86 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.3436, allocations: 29.7 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3437, allocations: 314.8 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.889e-05/0.3438, allocations: 23.92 kB / 1.286 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.67e-05/0.3438, allocations: 19.98 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.3439, allocations: 68.7 kB / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3439, allocations: 0 / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001453/0.3441, allocations: 90.28 kB / 1.286 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3441, allocations: 7.938 kB / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3441, allocations: 4 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3441, allocations: 0 / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.3442, allocations: 27.92 kB / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.3442, allocations: 0 / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.369e-05/0.3442, allocations: 7.938 kB / 1.286 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.3443, allocations: 0 / 1.286 GB, free: 8.828 MB / 0.9825 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.0001917/0.3444, allocations: 121.8 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.3445, allocations: 15.83 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.3447, allocations: 129.5 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3447, allocations: 0 / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3447, allocations: 0 / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3447, allocations: 7.984 kB / 1.286 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3449, allocations: 140.7 kB / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3449, allocations: 0 / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.299e-05/0.3449, allocations: 19.98 kB / 1.286 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.3449, allocations: 3.938 kB / 1.286 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3449, allocations: 4 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3449, allocations: 4 kB / 1.286 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3449, allocations: 4 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.3451, allocations: 124.9 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.868e-06/0.3451, allocations: 7.938 kB / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.3451, allocations: 0 / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.908e-05/0.3452, allocations: 8 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.3452, allocations: 7.984 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.3452, allocations: 7.984 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.678e-05/0.3453, allocations: 79.28 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3453, allocations: 0 / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002282/0.3455, allocations: 16 kB / 1.287 GB, free: 8.062 MB / 0.9825 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.0005767/0.3461, allocations: 0.6669 MB / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.3462, allocations: 55.97 kB / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3462, allocations: 0 / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.234e-05/0.3463, allocations: 35.91 kB / 1.287 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.3464, allocations: 8 kB / 1.287 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004604/0.3469, allocations: 178.4 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.3472, allocations: 0.6923 MB / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.248e-05/0.3473, allocations: 43.92 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.3473, allocations: 19.44 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3473, allocations: 0 / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.3751, allocations: 1.703 MB / 1.29 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.49, allocations: 11.48 kB / 1.29 GB, free: 4.699 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --stepSize=0.00556 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.29435987607576]