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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00676/0.00676, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001576/0.001577, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.464/2.464, allocations: 437 MB / 0.7105 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 72.11 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9049/0.9062, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001823/0.9081, allocations: 0.5844 MB / 1.167 GB, free: 3.277 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003031/0.9084, allocations: 45.77 kB / 1.167 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.06e-05/0.9084, allocations: 0 / 1.167 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.74e-05/0.9085, allocations: 0 / 1.167 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-06/0.9085, allocations: 3.938 kB / 1.167 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.9087, allocations: 19.98 kB / 1.167 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.192e-05/0.9088, allocations: 7.938 kB / 1.167 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.331e-05/0.9088, allocations: 0 / 1.167 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.827e-05/0.9089, allocations: 4 kB / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 1.995e-05/0.9089, allocations: 3.984 kB / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.407e-06/0.9089, allocations: 0 / 1.167 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.749e-05/0.909, allocations: 11.98 kB / 1.167 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.909, allocations: 0 / 1.167 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.909, allocations: 4 kB / 1.167 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.371e-05/0.9091, allocations: 11.94 kB / 1.167 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.9091, allocations: 3.984 kB / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9091, allocations: 0 / 1.167 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.9092, allocations: 4 kB / 1.167 GB, free: 3.16 MB / 0.8887 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.0003353/0.9095, allocations: 307.6 kB / 1.168 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.9095, allocations: 8.922 kB / 1.168 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.9096, allocations: 8.891 kB / 1.168 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.9097, allocations: 172.3 kB / 1.168 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.9097, allocations: 384 / 1.168 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.9097, allocations: 384 / 1.168 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.9098, allocations: 30.27 kB / 1.168 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.9099, allocations: 4.188 kB / 1.168 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.9099, allocations: 3.938 kB / 1.168 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.9099, allocations: 0 / 1.168 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.473e-05/0.9099, allocations: 7.984 kB / 1.168 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.9101, allocations: 150.7 kB / 1.168 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.671e-05/0.9101, allocations: 26.55 kB / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.9102, allocations: 8.859 kB / 1.168 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.9103, allocations: 85.16 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.9104, allocations: 34.56 kB / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 2.705e-06/0.9104, allocations: 7.922 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001494/0.9105, allocations: 45.62 kB / 1.168 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.931e-05/0.9106, allocations: 55.41 kB / 1.168 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.334e-05/0.9107, allocations: 89.86 kB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.9107, allocations: 29.64 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.853e-05/0.9107, allocations: 80.14 kB / 1.168 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.9108, allocations: 4.125 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.9108, allocations: 17.72 kB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.9109, allocations: 310.8 kB / 1.169 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.125e-05/0.9109, allocations: 0 / 1.169 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.151e-05/0.911, allocations: 7.984 kB / 1.169 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.991e-05/0.911, allocations: 12.86 kB / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.911, allocations: 0 / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.565e-05/0.9111, allocations: 45.7 kB / 1.169 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.9111, allocations: 8 kB / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.9111, allocations: 0 / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.9111, allocations: 3.938 kB / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.045e-05/0.9112, allocations: 11.92 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.9112, allocations: 3.984 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.9112, allocations: 0 / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-06/0.9112, allocations: 0 / 1.169 GB, free: 1.367 MB / 0.8887 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 7.064e-05/0.9113, allocations: 113.4 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.9113, allocations: 11.98 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.481e-05/0.9114, allocations: 44.75 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.9114, allocations: 4 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9114, allocations: 0 / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.9114, allocations: 0 / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.077e-05/0.9115, allocations: 145.7 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.9115, allocations: 0 / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.096e-05/0.9115, allocations: 4 kB / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.9116, allocations: 0 / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.9116, allocations: 7.875 kB / 1.169 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.9116, allocations: 8.031 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.9116, allocations: 0 / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.931e-05/0.9116, allocations: 61.12 kB / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.9117, allocations: 77.11 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.9117, allocations: 3.938 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.9117, allocations: 0 / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.9118, allocations: 8 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-06/0.9118, allocations: 0 / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.392e-05/0.9118, allocations: 81.78 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1e-07/0.9118, allocations: 0 / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002219/0.912, allocations: 11.92 kB / 1.169 GB, free: 0.6953 MB / 0.8887 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.0001541/0.9122, allocations: 103.2 kB / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 7.409e-05/0.9123, allocations: 7.938 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.9123, allocations: 0 / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.9123, allocations: 15.92 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.9124, allocations: 10.36 kB / 1.17 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001793/0.9126, allocations: 76.94 kB / 1.17 GB, free: 460 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.9129, allocations: 0.669 MB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.427e-05/0.9129, allocations: 7.984 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.692e-05/0.913, allocations: 11.44 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of SimCode: time 3.51e-07/0.913, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of Templates: time 0.002964/0.9159, allocations: 324.6 kB / 1.171 GB, free: 15.42 MB / 0.9044 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 -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/jenkins/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