Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_10_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.0009085/0.0009085, allocations: 92.08 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 180.6 kB / 16.92 MB, free: 6.652 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.418/1.418, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.541/2.541, allocations: 437.8 MB / 0.7128 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003931, allocations: 8 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6828/0.6832, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001673/0.6849, allocations: 1.256 MB / 1.025 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003601/0.6853, allocations: 128.5 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.411e-05/0.6854, allocations: 0 / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.603e-05/0.6854, allocations: 3.938 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.6854, allocations: 3.984 kB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.6857, allocations: 27.97 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.206e-05/0.6857, allocations: 35.92 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.273e-05/0.6858, allocations: 12 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.6859, allocations: 15.91 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.091e-05/0.6859, allocations: 15.92 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.6859, allocations: 4 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.323e-05/0.686, allocations: 12 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.686, allocations: 3.984 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.6861, allocations: 41.58 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.923e-05/0.6862, allocations: 31.94 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.6862, allocations: 3.984 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6862, allocations: 4 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.6862, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 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.0004693/0.6867, allocations: 345.5 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.6867, allocations: 11.97 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.137e-05/0.6867, allocations: 8.844 kB / 1.026 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.6869, allocations: 168.3 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.6869, allocations: 4.375 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.6869, allocations: 8.375 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.6871, allocations: 66.22 kB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.6871, allocations: 192 / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.6871, allocations: 7.938 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.6871, allocations: 0 / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.6874, allocations: 55.95 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.6877, allocations: 288.7 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.6881, allocations: 66.61 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.6882, allocations: 36.81 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002706/0.6885, allocations: 401.5 kB / 1.027 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.6885, allocations: 34.5 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.6885, allocations: 3.938 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003839/0.6889, allocations: 109.6 kB / 1.027 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.689, allocations: 51.41 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.689, allocations: 113.8 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.6891, allocations: 25.7 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.6891, allocations: 92.05 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.6891, allocations: 3.906 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.6892, allocations: 13.72 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.6893, allocations: 322.8 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.6894, allocations: 23.98 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-05/0.6895, allocations: 27.97 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.6897, allocations: 56.77 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.6897, allocations: 4 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002417/0.6899, allocations: 85.64 kB / 1.028 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.69, allocations: 6.188 kB / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.69, allocations: 0 / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.69, allocations: 4 kB / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.388e-05/0.6901, allocations: 15.98 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.6901, allocations: 0 / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.361e-05/0.6902, allocations: 11.94 kB / 1.028 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.6902, allocations: 3.984 kB / 1.028 GB, free: 11.47 MB / 0.7794 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 8.365e-05/0.6903, allocations: 119.8 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.6903, allocations: 3.906 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002758/0.6906, allocations: 97.48 kB / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.6906, allocations: 0 / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6906, allocations: 0 / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.6906, allocations: 4 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.6908, allocations: 165.6 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.6908, allocations: 4 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.718e-05/0.6909, allocations: 19.92 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.6909, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.6909, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.6909, allocations: 4 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6909, allocations: 4 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.6912, allocations: 191.7 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.6913, allocations: 77.11 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.6913, allocations: 8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.6914, allocations: 7.984 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.6914, allocations: 12.02 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.6914, allocations: 0 / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.555e-05/0.6915, allocations: 91.28 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6915, allocations: 0 / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002412/0.6917, allocations: 11.91 kB / 1.028 GB, free: 10.57 MB / 0.7794 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.0001412/0.6919, allocations: 103.2 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.6921, allocations: 59.95 kB / 1.029 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.6921, allocations: 3.938 kB / 1.029 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.6923, allocations: 27.98 kB / 1.029 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.6925, allocations: 3.938 kB / 1.029 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.6928, allocations: 162.4 kB / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.6931, allocations: 0.677 MB / 1.029 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.6931, allocations: 11.44 kB / 1.029 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6931, allocations: 0 / 1.029 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of Templates: time 0.002149/0.6953, allocations: 0.7894 MB / 1.03 GB, free: 8.668 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches