Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001347/0.001347, allocations: 100.8 kB / 19.74 MB, free: 2.066 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.001569/0.001569, allocations: 217.4 kB / 23.04 MB, free: 4.844 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.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.263/3.263, allocations: 0.49 GB / 0.7959 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") [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.00205/0.00205, allocations: 67.94 kB / 1.155 GB, free: 25.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3339, allocations: 176.1 MB / 1.327 GB, free: 0.918 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001747/0.3357, allocations: 0.5945 MB / 1.328 GB, free: 336 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002617/0.3359, allocations: 60.19 kB / 1.328 GB, free: 276 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.955e-05/0.3359, allocations: 4 kB / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.336, allocations: 0 / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.239e-06/0.336, allocations: 0 / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.3362, allocations: 19.92 kB / 1.328 GB, free: 252 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.415e-05/0.3363, allocations: 27.97 kB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.787e-05/0.3364, allocations: 4 kB / 1.328 GB, free: 220 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.158e-05/0.3364, allocations: 11.98 kB / 1.328 GB, free: 208 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.713e-05/0.3364, allocations: 11.98 kB / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.3364, allocations: 0 / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.489e-05/0.3365, allocations: 23.97 kB / 1.328 GB, free: 172 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.3365, allocations: 19.94 kB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.3366, allocations: 11.92 kB / 1.328 GB, free: 140 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.3367, allocations: 35.83 kB / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3367, allocations: 0 / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3367, allocations: 0 / 1.328 GB, free: 104 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.3367, allocations: 0 / 1.328 GB, free: 104 kB / 1.014 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.0003624/0.337, allocations: 262.3 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.3371, allocations: 8.031 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.3371, allocations: 4.891 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.847e-05/0.3372, allocations: 110.5 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3372, allocations: 4.375 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.3372, allocations: 8.375 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.3374, allocations: 66.17 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3374, allocations: 4.125 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.3374, allocations: 3.938 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3374, allocations: 0 / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.3375, allocations: 95.86 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.3377, allocations: 129.2 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.3378, allocations: 66.48 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.751e-05/0.3379, allocations: 28.84 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.338, allocations: 23.92 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3381, allocations: 38.56 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.3381, allocations: 0 / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0002578/0.3383, allocations: 113.9 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.3384, allocations: 55.34 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.021e-05/0.3384, allocations: 97.84 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3384, allocations: 25.7 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.3385, allocations: 88.14 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3385, allocations: 15.86 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.3385, allocations: 29.7 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3387, allocations: 318.8 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.112e-05/0.3387, allocations: 19.98 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.829e-05/0.3388, allocations: 27.92 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.535e-05/0.3389, allocations: 56.83 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3389, allocations: 0 / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001436/0.339, allocations: 97.56 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.339, allocations: 4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.339, allocations: 3.984 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.3391, allocations: 3.938 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.788e-05/0.3392, allocations: 19.94 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3392, allocations: 0 / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.168e-05/0.3392, allocations: 7.938 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.3392, allocations: 7.984 kB / 1.33 GB, free: 14.12 MB / 1.029 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.0001296/0.3393, allocations: 127.9 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.3393, allocations: 7.953 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000236/0.3396, allocations: 126.2 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3396, allocations: 4 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3396, allocations: 3.938 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3396, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.3397, allocations: 125.2 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3397, allocations: 0 / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/0.3398, allocations: 20 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3398, allocations: 3.938 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.3398, allocations: 7.984 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.718e-06/0.3398, allocations: 3.938 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3398, allocations: 4 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001623/0.34, allocations: 117.1 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.34, allocations: 11.94 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.34, allocations: 7.875 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.812e-05/0.34, allocations: 4 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.34, allocations: 11.92 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.34, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4e-05/0.3401, allocations: 79.28 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3401, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002/0.3403, allocations: 16 kB / 1.33 GB, free: 13.37 MB / 1.029 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.0001553/0.3404, allocations: 107.2 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.3406, allocations: 59.91 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3406, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.91e-05/0.3406, allocations: 27.98 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.3408, allocations: 5.562 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/0.3411, allocations: 182.5 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.362e-05/0.3411, allocations: 75.22 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/0.3412, allocations: 23.42 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3412, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of Templates: time 0.002507/0.3437, allocations: 0.9525 MB / 1.332 GB, free: 11.89 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.487703090999275]