Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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.001291/0.001291, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001371/0.001371, allocations: 159.5 kB / 23.01 MB, free: 4.602 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.421/1.421, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.918/2.918, allocations: 394.2 MB / 0.6386 GB, free: 11.96 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [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.002247/0.002247, allocations: 71.88 kB / 1.009 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7848/0.7871, allocations: 181.8 MB / 1.187 GB, free: 16.23 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001734/0.7888, allocations: 0.6024 MB / 1.187 GB, free: 15.87 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002453/0.789, allocations: 41.16 kB / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.878e-05/0.7891, allocations: 0 / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.121e-05/0.7891, allocations: 1.5 kB / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.7891, allocations: 0 / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.7893, allocations: 18.12 kB / 1.187 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 3.511e-05/0.7893, allocations: 3.25 kB / 1.187 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.7894, allocations: 1.938 kB / 1.187 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.214e-05/0.7894, allocations: 5.359 kB / 1.187 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 1.806e-05/0.7894, allocations: 4.688 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 8.877e-06/0.7894, allocations: 5.312 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.786e-05/0.7895, allocations: 14.8 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.356e-06/0.7895, allocations: 0 / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.7895, allocations: 2.25 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 7.828e-05/0.7896, allocations: 16.77 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7896, allocations: 1.625 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7896, allocations: 0 / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.7896, allocations: 0 / 1.187 GB, free: 15.8 MB / 1.076 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.0002008/0.7898, allocations: 234.5 kB / 1.188 GB, free: 15.55 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.7898, allocations: 9.188 kB / 1.188 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.7898, allocations: 2.75 kB / 1.188 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.404e-05/0.7899, allocations: 115.8 kB / 1.188 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.7899, allocations: 1.5 kB / 1.188 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-06/0.7899, allocations: 1.219 kB / 1.188 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.777e-05/0.79, allocations: 32.3 kB / 1.188 GB, free: 15.38 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.79, allocations: 192 / 1.188 GB, free: 15.38 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.79, allocations: 12.58 kB / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.79, allocations: 1.75 kB / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.67e-05/0.79, allocations: 3.266 kB / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.129e-05/0.7901, allocations: 100.1 kB / 1.188 GB, free: 15.25 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.467e-05/0.7901, allocations: 25.05 kB / 1.188 GB, free: 15.22 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.475e-05/0.7902, allocations: 14.8 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.7903, allocations: 6.203 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.664e-05/0.7903, allocations: 32.41 kB / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.7903, allocations: 3.984 kB / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0001163/0.7904, allocations: 44.19 kB / 1.188 GB, free: 15.12 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.274e-05/0.7904, allocations: 53.69 kB / 1.188 GB, free: 15.06 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.677e-05/0.7904, allocations: 90.42 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.691e-06/0.7905, allocations: 25.7 kB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.097e-06/0.7905, allocations: 81.8 kB / 1.188 GB, free: 14.85 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.7905, allocations: 0.8281 kB / 1.188 GB, free: 14.85 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.7905, allocations: 24.73 kB / 1.188 GB, free: 14.82 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.408e-05/0.7905, allocations: 316.5 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.058e-05/0.7905, allocations: 2.828 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.775e-06/0.7906, allocations: 2.094 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.697e-05/0.7906, allocations: 15.45 kB / 1.189 GB, free: 14.49 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.7906, allocations: 0 / 1.189 GB, free: 14.49 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.998e-05/0.7906, allocations: 40.77 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.7906, allocations: 7.391 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.7906, allocations: 0 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.7907, allocations: 5.625 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.823e-05/0.7907, allocations: 8.344 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.7907, allocations: 7.875 kB / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.267e-05/0.7907, allocations: 0 / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-06/0.7907, allocations: 1.406 kB / 1.189 GB, free: 14.44 MB / 1.076 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 3.566e-05/0.7908, allocations: 115.9 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-06/0.7908, allocations: 1.312 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.897e-05/0.7908, allocations: 43.27 kB / 1.189 GB, free: 14.28 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.7908, allocations: 5.641 kB / 1.189 GB, free: 14.28 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.7908, allocations: 4.031 kB / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.7908, allocations: 0 / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.543e-05/0.7909, allocations: 97.64 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.7909, allocations: 3.938 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-05/0.7909, allocations: 4.156 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.7909, allocations: 1.094 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.408e-06/0.7909, allocations: 0 / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.7909, allocations: 2.172 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7909, allocations: 7.875 kB / 1.189 GB, free: 14.14 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.343e-05/0.791, allocations: 62.39 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-06/0.791, allocations: 0.7031 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.808e-06/0.791, allocations: 10.59 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.791, allocations: 0 / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.791, allocations: 6.953 kB / 1.189 GB, free: 14.06 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-06/0.791, allocations: 0 / 1.189 GB, free: 14.06 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.179e-05/0.791, allocations: 81.16 kB / 1.189 GB, free: 13.98 MB / 1.076 GB Notification: Performance of sort global known variables: time 6.1e-08/0.791, allocations: 0 / 1.189 GB, free: 13.98 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0001967/0.7912, allocations: 3.969 kB / 1.189 GB, free: 13.98 MB / 1.076 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 9.817e-05/0.7913, allocations: 97.56 kB / 1.189 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 7.076e-05/0.7914, allocations: 16.36 kB / 1.189 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.7914, allocations: 0 / 1.189 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.416e-05/0.7914, allocations: 4.422 kB / 1.189 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.7915, allocations: 6.344 kB / 1.189 GB, free: 13.88 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001452/0.7917, allocations: 86.17 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.664e-05/0.7917, allocations: 57.39 kB / 1.189 GB, free: 13.71 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.106e-05/0.7917, allocations: 2.234 kB / 1.189 GB, free: 13.71 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.277e-05/0.7917, allocations: 9.875 kB / 1.189 GB, free: 13.7 MB / 1.076 GB Notification: Performance of SimCode: time 2.91e-07/0.7917, allocations: 0 / 1.189 GB, free: 13.7 MB / 1.076 GB Notification: Performance of Templates: time 0.002386/0.7941, allocations: 332.1 kB / 1.19 GB, free: 13.62 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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: 8.42610059096478]