Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 110.2 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 187 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.637/2.637, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.91 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8827/0.8842, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002945/0.8872, allocations: 1.54 MB / 1.21 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000387/0.8876, allocations: 139.6 kB / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/0.8877, allocations: 0 / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.872e-05/0.8877, allocations: 3.938 kB / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.514e-05/0.8878, allocations: 7.938 kB / 1.21 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.8881, allocations: 31.89 kB / 1.21 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.701e-05/0.8882, allocations: 27.92 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.8883, allocations: 15.98 kB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.714e-05/0.8883, allocations: 19.92 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.8884, allocations: 27.91 kB / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.8884, allocations: 0 / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.735e-05/0.8885, allocations: 23.98 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.8885, allocations: 4 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.8886, allocations: 15.88 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.8887, allocations: 47.86 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.8887, allocations: 0 / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8887, allocations: 0 / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.8887, allocations: 0 / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005024/0.8892, allocations: 353.3 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.8893, allocations: 12.02 kB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.8893, allocations: 4.938 kB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.8895, allocations: 172.2 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.8895, allocations: 4.375 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.8895, allocations: 4.375 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.8897, allocations: 66.22 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.8897, allocations: 192 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.8898, allocations: 7.938 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.8898, allocations: 0 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.89, allocations: 47.94 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.8904, allocations: 284.6 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/0.8907, allocations: 62.59 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.8909, allocations: 28.78 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/0.8912, allocations: 401.5 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.8912, allocations: 30.56 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.8912, allocations: 0 / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004042/0.8916, allocations: 101.6 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.8917, allocations: 55.39 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.357e-05/0.8917, allocations: 101.9 kB / 1.212 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.8918, allocations: 29.69 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.8918, allocations: 88.14 kB / 1.212 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.8918, allocations: 3.906 kB / 1.212 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.8919, allocations: 17.72 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.892, allocations: 318.8 kB / 1.212 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.632e-05/0.8921, allocations: 23.98 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.578e-05/0.8922, allocations: 23.97 kB / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.8924, allocations: 36.83 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.8924, allocations: 0 / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002391/0.8926, allocations: 85.48 kB / 1.213 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.8927, allocations: 8 kB / 1.213 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.8927, allocations: 4 kB / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.8927, allocations: 0 / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.622e-05/0.8928, allocations: 15.98 kB / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.8928, allocations: 0 / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.8929, allocations: 7.938 kB / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.8929, allocations: 0 / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.92e-05/0.893, allocations: 121.8 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.893, allocations: 4 kB / 1.213 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.8933, allocations: 89.8 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.8933, allocations: 0 / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8933, allocations: 0 / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.8933, allocations: 0 / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.8935, allocations: 165.6 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.8935, allocations: 0 / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.968e-05/0.8936, allocations: 15.92 kB / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.8936, allocations: 4 kB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.8936, allocations: 384 / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.8936, allocations: 0 / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8936, allocations: 0 / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.8939, allocations: 191.3 kB / 1.213 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.894, allocations: 77.11 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.894, allocations: 0 / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-05/0.8941, allocations: 11.98 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.8941, allocations: 8 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.8941, allocations: 3.938 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.654e-05/0.8942, allocations: 91.25 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8942, allocations: 0 / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002448/0.8944, allocations: 12 kB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001498/0.8946, allocations: 99.25 kB / 1.213 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002424/0.8949, allocations: 51.94 kB / 1.213 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.8949, allocations: 0 / 1.213 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.895, allocations: 27.92 kB / 1.213 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.8953, allocations: 5.656 kB / 1.213 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.8956, allocations: 159.1 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.8959, allocations: 0.6846 MB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.122e-05/0.8959, allocations: 7.438 kB / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of SimCode: time 4.81e-07/0.8959, allocations: 0 / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of Templates: time 0.00224/0.8981, allocations: 0.7999 MB / 1.215 GB, free: 6.449 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches