Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002129/0.002129, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002514/0.002514, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.544/1.544, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.906/2.906, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.7864 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.738e-05, allocations: 3.25 kB / 0.7864 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001678/0.001706, allocations: 0.5976 MB / 0.787 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002537/0.001959, allocations: 47.75 kB / 0.7871 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.688e-05/0.001976, allocations: 1.125 kB / 0.7871 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 1.132e-05/0.001988, allocations: 0 / 0.7871 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.909e-06/0.001992, allocations: 4 kB / 0.7871 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.002212, allocations: 12.89 kB / 0.7871 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 3.233e-05/0.002244, allocations: 0 / 0.7871 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.00228, allocations: 5.344 kB / 0.7871 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 2.851e-05/0.002308, allocations: 4 kB / 0.7871 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 1.921e-05/0.002328, allocations: 3.984 kB / 0.7871 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.002338, allocations: 0 / 0.7871 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.989e-05/0.002408, allocations: 16.98 kB / 0.7871 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.336e-06/0.002416, allocations: 0 / 0.7871 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.438e-05/0.002431, allocations: 4 kB / 0.7871 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 7.981e-05/0.002511, allocations: 13.48 kB / 0.7871 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.002515, allocations: 4 kB / 0.7871 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.21e-07/0.002515, allocations: 0 / 0.7871 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.002519, allocations: 0 / 0.7871 GB, free: 12.05 MB / 0.7448 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.0003679/0.002887, allocations: 338 kB / 0.7875 GB, free: 11.69 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.002923, allocations: 12.03 kB / 0.7875 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.002957, allocations: 0.9375 kB / 0.7875 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.558e-05/0.003053, allocations: 108.6 kB / 0.7876 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.003064, allocations: 1.312 kB / 0.7876 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-06/0.00307, allocations: 4.375 kB / 0.7876 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.306e-05/0.003164, allocations: 34.86 kB / 0.7876 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.003172, allocations: 192 / 0.7876 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-06/0.003178, allocations: 1.656 kB / 0.7876 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.003184, allocations: 8.297 kB / 0.7876 GB, free: 11.49 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.904e-05/0.003224, allocations: 7.938 kB / 0.7876 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.003374, allocations: 110.7 kB / 0.7877 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.805e-05/0.003442, allocations: 31.09 kB / 0.7878 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.069e-05/0.003462, allocations: 7.688 kB / 0.7878 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.003583, allocations: 8.047 kB / 0.7878 GB, free: 11.28 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/0.003699, allocations: 37.39 kB / 0.7878 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.0037, allocations: 6.156 kB / 0.7878 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001542/0.003854, allocations: 45.62 kB / 0.7879 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.003896, allocations: 51.41 kB / 0.7879 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.774e-05/0.003983, allocations: 146.2 kB / 0.788 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.004003, allocations: 29.7 kB / 0.7881 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.004074, allocations: 131.6 kB / 0.7882 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.004098, allocations: 3.953 kB / 0.7882 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.004136, allocations: 19.91 kB / 0.7882 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002475/0.004384, allocations: 497.7 kB / 0.7887 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/0.004398, allocations: 4 kB / 0.7887 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.19e-05/0.00441, allocations: 7.984 kB / 0.7887 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.03e-05/0.004451, allocations: 16.28 kB / 0.7887 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.004452, allocations: 0 / 0.7887 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.599e-05/0.004518, allocations: 38.86 kB / 0.7888 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.00454, allocations: 8 kB / 0.7888 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.004544, allocations: 0 / 0.7888 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.004556, allocations: 1.156 kB / 0.7888 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.825e-05/0.004614, allocations: 7.984 kB / 0.7888 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.004618, allocations: 0 / 0.7888 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.004632, allocations: 5.312 kB / 0.7888 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.004636, allocations: 0 / 0.7888 GB, free: 10.17 MB / 0.7448 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 0.0001078/0.004744, allocations: 156.6 kB / 0.7889 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-06/0.004751, allocations: 1.75 kB / 0.7889 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.6e-05/0.004847, allocations: 48.78 kB / 0.789 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.004849, allocations: 0 / 0.789 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.004851, allocations: 0 / 0.789 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.004853, allocations: 0.875 kB / 0.789 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.004958, allocations: 120.5 kB / 0.7891 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.004959, allocations: 1.562 kB / 0.7891 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.377e-05/0.004983, allocations: 3.984 kB / 0.7891 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.004985, allocations: 4 kB / 0.7891 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.00499, allocations: 0 / 0.7891 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.004991, allocations: 1.188 kB / 0.7891 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.004991, allocations: 0 / 0.7891 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.005105, allocations: 84.31 kB / 0.7892 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-06/0.005109, allocations: 3.156 kB / 0.7892 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-06/0.005117, allocations: 0 / 0.7892 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.023e-05/0.005127, allocations: 0 / 0.7892 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.00516, allocations: 7.984 kB / 0.7892 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.005165, allocations: 7.938 kB / 0.7892 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.808e-05/0.005223, allocations: 119.2 kB / 0.7893 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.1e-08/0.005223, allocations: 0 / 0.7893 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001797/0.005402, allocations: 4 kB / 0.7893 GB, free: 9.551 MB / 0.7448 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.0001763/0.005579, allocations: 109.6 kB / 0.7894 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.01e-05/0.005669, allocations: 15.69 kB / 0.7894 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.005673, allocations: 4 kB / 0.7894 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.519e-05/0.005698, allocations: 15.62 kB / 0.7895 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.005824, allocations: 6.453 kB / 0.7895 GB, free: 9.391 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002181/0.006042, allocations: 92.92 kB / 0.7896 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.451e-05/0.006097, allocations: 55.36 kB / 0.7896 GB, free: 9.199 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.323e-05/0.00611, allocations: 3.984 kB / 0.7896 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/0.006131, allocations: 12.5 kB / 0.7896 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of SimCode: time 4.21e-07/0.006132, allocations: 0 / 0.7896 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of Templates: time 0.002923/0.009055, allocations: 343.6 kB / 0.79 GB, free: 8.859 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.7267847140319645]