Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.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.001955/0.001955, allocations: 88.39 kB / 20.23 MB, free: 4.176 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.002195/0.002195, allocations: 161.3 kB / 23.54 MB, free: 0.8672 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.469/1.469, allocations: 177.2 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.735/2.735, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 177] 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.7864 GB, free: 11.7 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.568e-05, allocations: 3.844 kB / 0.7864 GB, free: 11.7 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003193/0.003219, allocations: 1.546 MB / 0.7879 GB, free: 10.16 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0004357/0.003655, allocations: 124.2 kB / 0.788 GB, free: 10.04 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.75e-05/0.003702, allocations: 0.7812 kB / 0.788 GB, free: 10.04 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 3.399e-05/0.003736, allocations: 3.938 kB / 0.788 GB, free: 10.04 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-05/0.003799, allocations: 1.156 kB / 0.788 GB, free: 10.04 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.004079, allocations: 31.89 kB / 0.788 GB, free: 10.01 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.17e-05/0.004171, allocations: 27.92 kB / 0.7881 GB, free: 9.98 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.004275, allocations: 13.62 kB / 0.7881 GB, free: 9.969 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.047e-05/0.004346, allocations: 11.98 kB / 0.7881 GB, free: 9.957 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.004403, allocations: 15.97 kB / 0.7881 GB, free: 9.941 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.004421, allocations: 4 kB / 0.7881 GB, free: 9.938 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.15e-05/0.004492, allocations: 19.92 kB / 0.7881 GB, free: 9.918 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.004504, allocations: 0.7812 kB / 0.7881 GB, free: 9.918 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.141e-05/0.004536, allocations: 11.94 kB / 0.7881 GB, free: 9.906 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.004676, allocations: 36.91 kB / 0.7882 GB, free: 9.871 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.004679, allocations: 0 / 0.7882 GB, free: 9.871 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.492e-06/0.00468, allocations: 0.5625 kB / 0.7882 GB, free: 9.871 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.004684, allocations: 0 / 0.7882 GB, free: 9.871 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005426/0.005227, allocations: 275.1 kB / 0.7884 GB, free: 9.57 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.005264, allocations: 8.938 kB / 0.7884 GB, free: 9.562 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.005318, allocations: 8.891 kB / 0.7885 GB, free: 9.555 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.005448, allocations: 105.7 kB / 0.7886 GB, free: 9.426 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.005475, allocations: 9.031 kB / 0.7886 GB, free: 9.418 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.005485, allocations: 1.031 kB / 0.7886 GB, free: 9.418 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.005708, allocations: 59.06 kB / 0.7886 GB, free: 9.355 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.005717, allocations: 4.125 kB / 0.7886 GB, free: 9.352 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.005726, allocations: 1.375 kB / 0.7886 GB, free: 9.352 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.00573, allocations: 384 / 0.7886 GB, free: 9.352 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.005948, allocations: 50.77 kB / 0.7887 GB, free: 9.305 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.006348, allocations: 204.6 kB / 0.7889 GB, free: 9.074 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.006709, allocations: 54.53 kB / 0.7889 GB, free: 9.012 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.006816, allocations: 20.91 kB / 0.7889 GB, free: 8.988 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.96e-05/0.006906, allocations: 8 kB / 0.7889 GB, free: 8.98 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.006941, allocations: 39.89 kB / 0.789 GB, free: 8.934 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.006942, allocations: 0 / 0.789 GB, free: 8.934 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0004325/0.007374, allocations: 99.03 kB / 0.7891 GB, free: 8.832 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.00742, allocations: 51.41 kB / 0.7891 GB, free: 8.77 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.007521, allocations: 105.8 kB / 0.7892 GB, free: 8.656 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.007542, allocations: 26.39 kB / 0.7893 GB, free: 8.625 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/0.007828, allocations: 84.14 kB / 0.7893 GB, free: 8.539 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.007851, allocations: 13.41 kB / 0.7893 GB, free: 8.527 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.007894, allocations: 17.7 kB / 0.7894 GB, free: 8.504 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.008066, allocations: 318.8 kB / 0.7897 GB, free: 8.184 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.972e-05/0.008166, allocations: 17.23 kB / 0.7897 GB, free: 8.168 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.101e-05/0.008257, allocations: 23.97 kB / 0.7897 GB, free: 8.145 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.008448, allocations: 51.72 kB / 0.7898 GB, free: 8.094 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.008451, allocations: 0 / 0.7898 GB, free: 8.094 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002618/0.008713, allocations: 77.58 kB / 0.7898 GB, free: 8.012 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.008733, allocations: 12.47 kB / 0.7898 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.008738, allocations: 0 / 0.7898 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.008757, allocations: 0.7188 kB / 0.7898 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.055e-05/0.008847, allocations: 12.52 kB / 0.7899 GB, free: 7.988 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.008853, allocations: 0 / 0.7899 GB, free: 7.988 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.809e-05/0.008921, allocations: 13.56 kB / 0.7899 GB, free: 7.977 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.008927, allocations: 0 / 0.7899 GB, free: 7.977 MB / 0.698 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 (rea2Int.y,fac.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 0.0001154/0.009042, allocations: 113.8 kB / 0.79 GB, free: 7.855 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.009069, allocations: 0.625 kB / 0.79 GB, free: 7.855 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.009375, allocations: 89.89 kB / 0.7901 GB, free: 7.758 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.009378, allocations: 0.6875 kB / 0.7901 GB, free: 7.758 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.009382, allocations: 4.812 kB / 0.7901 GB, free: 7.754 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.009384, allocations: 0 / 0.7901 GB, free: 7.754 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.009559, allocations: 109.3 kB / 0.7902 GB, free: 7.617 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.00956, allocations: 1.375 kB / 0.7902 GB, free: 7.617 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.309e-05/0.009643, allocations: 11.98 kB / 0.7902 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.009646, allocations: 0 / 0.7902 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.009653, allocations: 1.812 kB / 0.7902 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.009659, allocations: 3.938 kB / 0.7902 GB, free: 7.602 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.00966, allocations: 0 / 0.7902 GB, free: 7.602 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.009975, allocations: 172.9 kB / 0.7904 GB, free: 7.418 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.432e-05/0.009989, allocations: 11.95 kB / 0.7904 GB, free: 7.406 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.01, allocations: 0 / 0.7904 GB, free: 7.406 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.872e-05/0.0101, allocations: 13.67 kB / 0.7904 GB, free: 7.395 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.01016, allocations: 0 / 0.7904 GB, free: 7.395 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.01017, allocations: 4 kB / 0.7904 GB, free: 7.391 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.193e-05/0.01023, allocations: 87.27 kB / 0.7905 GB, free: 7.305 MB / 0.698 GB Notification: Performance of sort global known variables: time 6e-08/0.01023, allocations: 0.8125 kB / 0.7905 GB, free: 7.305 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002455/0.01047, allocations: 4 kB / 0.7905 GB, free: 7.301 MB / 0.698 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.y,rea2Int.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.0001798/0.01065, allocations: 101.5 kB / 0.7906 GB, free: 7.195 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002558/0.01091, allocations: 43.95 kB / 0.7906 GB, free: 7.152 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01091, allocations: 0 / 0.7906 GB, free: 7.152 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.01103, allocations: 33.97 kB / 0.7906 GB, free: 7.121 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.01133, allocations: 7.984 kB / 0.7907 GB, free: 7.113 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.0117, allocations: 119.8 kB / 0.7908 GB, free: 6.973 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.347e-05/0.01178, allocations: 63.72 kB / 0.7908 GB, free: 6.891 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.829e-05/0.01181, allocations: 14.42 kB / 0.7908 GB, free: 6.879 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.508e-05/0.01185, allocations: 8.5 kB / 0.7908 GB, free: 6.871 MB / 0.698 GB Notification: Performance of SimCode: time 5.3e-07/0.01185, allocations: 4 kB / 0.7909 GB, free: 6.867 MB / 0.698 GB Notification: Performance of Templates: time 0.00356/0.01541, allocations: 0.7543 MB / 0.7916 GB, free: 6.141 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.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.457651411998086]