Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008256/0.0008256, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0013/0.002126, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007236/0.0007236, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009896/0.001713, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.049/1.049, allocations: 177.1 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1012/1.15, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.477/2.477, allocations: 446.7 MB / 0.6745 GB, free: 6.176 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2479/2.725, allocations: 145.9 MB / 0.817 GB, free: 4.18 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 4 kB / 0.8183 GB, free: 2.855 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.846e-05/2.094e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.852 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001933/0.001954, allocations: 1.631 MB / 0.8199 GB, free: 1.207 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.000188/0.002142, allocations: 123.6 kB / 0.82 GB, free: 1.086 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.484e-05/0.002167, allocations: 0 / 0.82 GB, free: 1.086 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.002189, allocations: 3.938 kB / 0.82 GB, free: 1.082 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 1.983e-05/0.002208, allocations: 0 / 0.82 GB, free: 1.082 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.000126/0.002334, allocations: 35.83 kB / 0.8201 GB, free: 1.047 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 6.524e-05/0.0024, allocations: 27.92 kB / 0.8201 GB, free: 1.02 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.598e-05/0.002476, allocations: 4 kB / 0.8201 GB, free: 1.016 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 6.121e-05/0.002537, allocations: 31.91 kB / 0.8201 GB, free: 0.9844 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 4.173e-05/0.002579, allocations: 11.98 kB / 0.8201 GB, free: 0.9727 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.002591, allocations: 0 / 0.8201 GB, free: 0.9727 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.002663, allocations: 11.98 kB / 0.8201 GB, free: 0.9609 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.052e-05/0.002673, allocations: 4 kB / 0.8201 GB, free: 0.957 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.002687, allocations: 11.94 kB / 0.8202 GB, free: 0.9453 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 9.653e-05/0.002784, allocations: 23.92 kB / 0.8202 GB, free: 0.9219 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.191e-05/0.002796, allocations: 0 / 0.8202 GB, free: 0.9219 MB / 0.7917 GB Notification: Performance of FrontEnd: time 6.91e-07/0.002797, allocations: 0 / 0.8202 GB, free: 0.9219 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.213e-05/0.002809, allocations: 0 / 0.8202 GB, free: 0.9219 MB / 0.7917 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.0003262/0.003135, allocations: 248.6 kB / 0.8204 GB, free: 0.6523 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.003166, allocations: 12.62 kB / 0.8204 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.00319, allocations: 4.938 kB / 0.8204 GB, free: 0.6367 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.991e-05/0.00326, allocations: 117.6 kB / 0.8205 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.003277, allocations: 384 / 0.8205 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-06/0.003285, allocations: 4.375 kB / 0.8205 GB, free: 0.4922 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.003399, allocations: 58.94 kB / 0.8206 GB, free: 436 kB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-06/0.003404, allocations: 192 / 0.8206 GB, free: 436 kB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.00341, allocations: 384 / 0.8206 GB, free: 436 kB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.003414, allocations: 384 / 0.8206 GB, free: 436 kB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.72e-05/0.003441, allocations: 19.92 kB / 0.8206 GB, free: 416 kB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002005/0.003642, allocations: 160.2 kB / 0.8208 GB, free: 240 kB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.003775, allocations: 30.56 kB / 0.8208 GB, free: 200 kB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.926e-05/0.003794, allocations: 16.91 kB / 0.8208 GB, free: 180 kB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 6.19e-05/0.003856, allocations: 4 kB / 0.8208 GB, free: 176 kB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.003875, allocations: 34.56 kB / 0.8209 GB, free: 132 kB / 0.7917 GB Notification: Performance of pre-optimization done (n=3): time 1.472e-06/0.003877, allocations: 0 / 0.8209 GB, free: 132 kB / 0.7917 GB Notification: Performance of matching and sorting (n=3): time 0.0001036/0.00398, allocations: 49.56 kB / 0.8209 GB, free: 76 kB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.00401, allocations: 55.41 kB / 0.821 GB, free: 8 kB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.079e-05/0.004071, allocations: 106.7 kB / 0.8211 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.236e-06/0.004079, allocations: 29.7 kB / 0.8211 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.021e-05/0.004109, allocations: 88.09 kB / 0.8212 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.004124, allocations: 7.953 kB / 0.8212 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.00415, allocations: 21.69 kB / 0.8212 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.928e-05/0.00422, allocations: 310.8 kB / 0.8215 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.004232, allocations: 4 kB / 0.8215 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.135e-06/0.00424, allocations: 0 / 0.8215 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.004267, allocations: 17.31 kB / 0.8215 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.004268, allocations: 0 / 0.8215 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.568e-05/0.004324, allocations: 49.61 kB / 0.8216 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.004335, allocations: 8 kB / 0.8216 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.004339, allocations: 0 / 0.8216 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/0.004347, allocations: 7.875 kB / 0.8216 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.706e-05/0.004405, allocations: 11.98 kB / 0.8216 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-06/0.004407, allocations: 0 / 0.8216 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.004424, allocations: 4 kB / 0.8216 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-06/0.004428, allocations: 0 / 0.8216 GB, free: 15.31 MB / 0.8073 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.0003187/0.004746, allocations: 113.8 kB / 0.8217 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.00476, allocations: 3.984 kB / 0.8217 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.659e-05/0.004837, allocations: 45.38 kB / 0.8218 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.004839, allocations: 11.88 kB / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.004841, allocations: 0 / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.004843, allocations: 0 / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.569e-05/0.004929, allocations: 77.81 kB / 0.8218 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.00493, allocations: 0 / 0.8218 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.004966, allocations: 11.98 kB / 0.8218 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-06/0.00497, allocations: 0 / 0.8218 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.004973, allocations: 0 / 0.8218 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.004978, allocations: 4 kB / 0.8219 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.004978, allocations: 0 / 0.8219 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.004983, allocations: 3.938 kB / 0.8219 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.14e-05/0.005054, allocations: 139.5 kB / 0.822 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-06/0.005063, allocations: 3.984 kB / 0.822 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.192e-05/0.005095, allocations: 4 kB / 0.822 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.005132, allocations: 7.984 kB / 0.822 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.005135, allocations: 3.938 kB / 0.822 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.738e-06/0.005145, allocations: 12.8 kB / 0.822 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9.1e-08/0.005145, allocations: 0 / 0.822 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001303/0.005275, allocations: 8 kB / 0.822 GB, free: 14.82 MB / 0.8073 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.0001153/0.00539, allocations: 88.41 kB / 0.8221 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.817e-05/0.005449, allocations: 16.86 kB / 0.8221 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.005454, allocations: 3.984 kB / 0.8221 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.041e-05/0.005474, allocations: 17.22 kB / 0.8221 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.005605, allocations: 4 kB / 0.8222 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003545/0.00596, allocations: 124.5 kB / 0.8223 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.27e-05/0.005992, allocations: 59.2 kB / 0.8223 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.338e-05/0.006016, allocations: 8 kB / 0.8223 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/0.006061, allocations: 55.38 kB / 0.8224 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of SimCode: time 7.12e-07/0.006061, allocations: 0 / 0.8224 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of Templates: time 0.002364/0.008426, allocations: 0.7784 MB / 0.8231 GB, free: 13.61 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.255051836371422]