Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.002042/0.002042, allocations: 195.6 kB / 17.31 MB, free: 5.613 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.404/2.404, allocations: 437.1 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 68.66 kB / 0.8707 GB, free: 1.461 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2854, allocations: 151.6 MB / 1.019 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001748/0.2872, allocations: 0.5883 MB / 1.019 GB, free: 9.281 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002421/0.2875, allocations: 51.86 kB / 1.019 GB, free: 9.23 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.294e-05/0.2875, allocations: 0 / 1.019 GB, free: 9.23 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.2875, allocations: 3.938 kB / 1.019 GB, free: 9.227 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.2875, allocations: 0 / 1.019 GB, free: 9.227 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.2877, allocations: 8 kB / 1.019 GB, free: 9.219 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 3.977e-05/0.2878, allocations: 3.984 kB / 1.019 GB, free: 9.215 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.2878, allocations: 4 kB / 1.019 GB, free: 9.211 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.843e-05/0.2878, allocations: 11.98 kB / 1.019 GB, free: 9.199 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 1.707e-05/0.2879, allocations: 0 / 1.019 GB, free: 9.199 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.236e-06/0.2879, allocations: 0 / 1.019 GB, free: 9.199 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.2879, allocations: 8 kB / 1.019 GB, free: 9.191 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.288, allocations: 3.938 kB / 1.019 GB, free: 9.188 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.288, allocations: 7.938 kB / 1.019 GB, free: 9.18 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.17e-05/0.2881, allocations: 15.97 kB / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2881, allocations: 0 / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2881, allocations: 0 / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.2881, allocations: 0 / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002625/0.2884, allocations: 323.5 kB / 1.02 GB, free: 8.797 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2884, allocations: 12.86 kB / 1.02 GB, free: 8.785 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.497e-05/0.2884, allocations: 0.9375 kB / 1.02 GB, free: 8.785 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.44e-05/0.2885, allocations: 164.4 kB / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.2885, allocations: 384 / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.2885, allocations: 384 / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.357e-05/0.2886, allocations: 34.25 kB / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-06/0.2886, allocations: 192 / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.2887, allocations: 3.938 kB / 1.02 GB, free: 8.543 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2887, allocations: 4 kB / 1.02 GB, free: 8.539 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.942e-05/0.2887, allocations: 8 kB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.2888, allocations: 145.7 kB / 1.02 GB, free: 8.34 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.84e-05/0.2889, allocations: 30.55 kB / 1.02 GB, free: 8.301 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.2889, allocations: 4.859 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.2891, allocations: 85.11 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2891, allocations: 38.55 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2891, allocations: 0 / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001238/0.2892, allocations: 45.62 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.2893, allocations: 59.34 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.262e-05/0.2893, allocations: 89.86 kB / 1.02 GB, free: 7.926 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.2893, allocations: 25.7 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.2893, allocations: 80.14 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.2894, allocations: 4 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.2894, allocations: 21.83 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2895, allocations: 310.8 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.037e-05/0.2895, allocations: 0 / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.996e-06/0.2895, allocations: 4 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.22e-05/0.2896, allocations: 12.86 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2896, allocations: 0 / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.095e-05/0.2896, allocations: 41.69 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2897, allocations: 14.59 kB / 1.021 GB, free: 7.391 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2897, allocations: 4.094 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.2897, allocations: 3.938 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.92e-05/0.2897, allocations: 4 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2898, allocations: 0 / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.2898, allocations: 3.906 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-06/0.2898, allocations: 3.938 kB / 1.021 GB, free: 7.371 MB / 0.795 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.475e-05/0.2899, allocations: 110.5 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-06/0.2899, allocations: 4 kB / 1.021 GB, free: 7.25 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.109e-05/0.29, allocations: 48.77 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.29, allocations: 7.984 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.29, allocations: 0 / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.29, allocations: 0 / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.126e-05/0.2901, allocations: 145.6 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2901, allocations: 0 / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-05/0.2901, allocations: 7.938 kB / 1.021 GB, free: 6.988 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2901, allocations: 0 / 1.021 GB, free: 6.988 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-06/0.2901, allocations: 7.922 kB / 1.021 GB, free: 6.98 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.2901, allocations: 4 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2901, allocations: 0 / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.795e-05/0.2902, allocations: 69.11 kB / 1.021 GB, free: 6.891 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 2.934e-05/0.2903, allocations: 81.09 kB / 1.021 GB, free: 6.793 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.2903, allocations: 3.938 kB / 1.021 GB, free: 6.789 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.2903, allocations: 0 / 1.021 GB, free: 6.789 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.2903, allocations: 4 kB / 1.021 GB, free: 6.785 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.2903, allocations: 0 / 1.021 GB, free: 6.785 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.283e-05/0.2904, allocations: 75.28 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2904, allocations: 4.031 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001819/0.2906, allocations: 4 kB / 1.022 GB, free: 6.703 MB / 0.795 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001335/0.2907, allocations: 107.2 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 6.441e-05/0.2908, allocations: 11.94 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2908, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.427e-05/0.2908, allocations: 4 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.2909, allocations: 4 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001665/0.2911, allocations: 89.19 kB / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.2913, allocations: 0.669 MB / 1.022 GB, free: 5.762 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 1.105e-05/0.2913, allocations: 0 / 1.022 GB, free: 5.762 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.352e-05/0.2914, allocations: 11.44 kB / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of SimCode: time 2.01e-07/0.2914, allocations: 0 / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of Templates: time 0.002074/0.2934, allocations: 326.6 kB / 1.023 GB, free: 5.434 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches