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.001884/0.001884, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001541/0.001541, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.445/1.445, allocations: 230.6 MB / 256 MB, free: 7.805 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.787/2.787, allocations: 476 MB / 0.7699 GB, free: 4.746 MB / 0.6231 GB " [Timeout remaining time 177] 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.002145/0.002145, allocations: 68.11 kB / 1.117 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3448, allocations: 170 MB / 1.283 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001863/0.3467, allocations: 0.5841 MB / 1.283 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003329/0.347, allocations: 55.8 kB / 1.283 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.096e-05/0.347, allocations: 3.938 kB / 1.283 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.382e-05/0.3471, allocations: 3.984 kB / 1.283 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.3471, allocations: 0 / 1.283 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.3474, allocations: 19.92 kB / 1.283 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.522e-05/0.3475, allocations: 27.98 kB / 1.283 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.806e-05/0.3475, allocations: 4 kB / 1.283 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.503e-05/0.3476, allocations: 11.97 kB / 1.283 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.232e-05/0.3476, allocations: 12 kB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.3476, allocations: 4 kB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3477, allocations: 27.95 kB / 1.283 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.3477, allocations: 4 kB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.3478, allocations: 11.94 kB / 1.283 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.3479, allocations: 39.39 kB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3479, allocations: 3.938 kB / 1.283 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3479, allocations: 0 / 1.283 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.3479, allocations: 0 / 1.283 GB, free: 11.68 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.0003586/0.3482, allocations: 264 kB / 1.284 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3483, allocations: 8.031 kB / 1.284 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.3483, allocations: 38.75 kB / 1.284 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.3483, allocations: 8.891 kB / 1.284 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.853e-05/0.3484, allocations: 114.5 kB / 1.284 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3485, allocations: 4.375 kB / 1.284 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.3485, allocations: 8.359 kB / 1.284 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.3486, allocations: 58.23 kB / 1.284 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3486, allocations: 7.938 kB / 1.284 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.3486, allocations: 0 / 1.284 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3486, allocations: 0 / 1.284 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.3488, allocations: 95.86 kB / 1.284 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001933/0.349, allocations: 140.7 kB / 1.284 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.3491, allocations: 74.58 kB / 1.284 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.786e-05/0.3492, allocations: 33.17 kB / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.3494, allocations: 19.92 kB / 1.284 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.3494, allocations: 42.55 kB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.3494, allocations: 0 / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0002709/0.3497, allocations: 117.5 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3497, allocations: 51.41 kB / 1.284 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.707e-05/0.3498, allocations: 97.86 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3498, allocations: 25.7 kB / 1.285 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.3498, allocations: 80.14 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.3498, allocations: 23.8 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.3499, allocations: 37.7 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.35, allocations: 318.8 kB / 1.285 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.3501, allocations: 19.98 kB / 1.285 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.3501, allocations: 19.98 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.3502, allocations: 61.44 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3502, allocations: 0 / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001478/0.3504, allocations: 101.5 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3504, allocations: 7.938 kB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3504, allocations: 4 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3504, allocations: 0 / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.815e-05/0.3505, allocations: 23.98 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3505, allocations: 0 / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.252e-05/0.3506, allocations: 11.88 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.3506, allocations: 4 kB / 1.285 GB, free: 9.605 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.000139/0.3507, allocations: 121.8 kB / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.3507, allocations: 7.891 kB / 1.285 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002184/0.3509, allocations: 121.5 kB / 1.285 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3509, allocations: 0 / 1.285 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3509, allocations: 0 / 1.285 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3509, allocations: 4 kB / 1.285 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.3511, allocations: 144.7 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3511, allocations: 7.938 kB / 1.286 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.471e-05/0.3512, allocations: 19.98 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3512, allocations: 3.938 kB / 1.286 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3512, allocations: 4 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3512, allocations: 0 / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3512, allocations: 3.938 kB / 1.286 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.3514, allocations: 121 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.126e-05/0.3514, allocations: 11.88 kB / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3514, allocations: 0 / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.625e-05/0.3514, allocations: 8 kB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.355e-05/0.3514, allocations: 7.984 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.3514, allocations: 7.984 kB / 1.286 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.574e-05/0.3515, allocations: 75.28 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3515, allocations: 0 / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001928/0.3517, allocations: 16 kB / 1.286 GB, free: 8.855 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.0005598/0.3522, allocations: 0.6669 MB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.3524, allocations: 60.33 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3524, allocations: 7.938 kB / 1.287 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.145e-05/0.3524, allocations: 32.2 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.3526, allocations: 4.219 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004157/0.353, allocations: 182.4 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.626e-05/0.353, allocations: 71.28 kB / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.628e-05/0.3531, allocations: 35.88 kB / 1.287 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.3532, allocations: 19.44 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3532, allocations: 4 kB / 1.287 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.3821, allocations: 2.06 MB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.72, allocations: 11.94 kB / 1.289 GB, free: 5.762 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.42208935925737]