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.001077/0.001077, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001496/0.002572, allocations: 440 kB / 10.41 MB, free: 284 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.001007/0.001007, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001332/0.002339, allocations: 475.6 kB / 11.79 MB, free: 2.375 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 0.9856/0.9856, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09371/1.079, allocations: 53.68 MB / 243.4 MB, free: 15.5 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.475/2.475, allocations: 447.1 MB / 0.675 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2497/2.725, allocations: 146 MB / 0.8176 GB, free: 3.824 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 1.282e-06/1.282e-06, allocations: 0 / 0.8189 GB, free: 2.477 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.137e-06/1.042e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.473 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001696/0.001706, allocations: 1.629 MB / 0.8205 GB, free: 0.8281 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0001639/0.00187, allocations: 119.6 kB / 0.8206 GB, free: 0.7109 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.33e-05/0.001894, allocations: 0 / 0.8206 GB, free: 0.7109 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.001914, allocations: 7.938 kB / 0.8207 GB, free: 0.7031 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.57e-05/0.001939, allocations: 3.938 kB / 0.8207 GB, free: 0.6992 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001131/0.002053, allocations: 27.86 kB / 0.8207 GB, free: 0.6719 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 6.351e-05/0.002116, allocations: 31.91 kB / 0.8207 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.306e-05/0.002189, allocations: 11.98 kB / 0.8207 GB, free: 0.6289 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 6.13e-05/0.00225, allocations: 15.98 kB / 0.8207 GB, free: 0.6133 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 4.806e-05/0.002298, allocations: 15.92 kB / 0.8208 GB, free: 0.5977 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.002312, allocations: 4 kB / 0.8208 GB, free: 0.5938 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 6.819e-05/0.00238, allocations: 11.98 kB / 0.8208 GB, free: 0.582 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.421e-05/0.002394, allocations: 4 kB / 0.8208 GB, free: 0.5781 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.585e-05/0.00241, allocations: 4 kB / 0.8208 GB, free: 0.5742 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 9.411e-05/0.002504, allocations: 35.84 kB / 0.8208 GB, free: 0.5391 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.002515, allocations: 0 / 0.8208 GB, free: 0.5391 MB / 0.7917 GB Notification: Performance of FrontEnd: time 4.21e-07/0.002515, allocations: 0 / 0.8208 GB, free: 0.5391 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.002527, allocations: 3.938 kB / 0.8208 GB, free: 0.5352 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.0003261/0.002853, allocations: 240.6 kB / 0.821 GB, free: 280 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.002881, allocations: 12.03 kB / 0.8211 GB, free: 268 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.002907, allocations: 0.9375 kB / 0.8211 GB, free: 268 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.648e-05/0.002983, allocations: 117.7 kB / 0.8212 GB, free: 124 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.002999, allocations: 384 / 0.8212 GB, free: 124 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-06/0.003009, allocations: 4.375 kB / 0.8212 GB, free: 120 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.991e-05/0.003109, allocations: 62.94 kB / 0.8212 GB, free: 48 kB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.5e-06/0.003115, allocations: 192 / 0.8212 GB, free: 48 kB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-06/0.00312, allocations: 4.375 kB / 0.8212 GB, free: 44 kB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.003125, allocations: 384 / 0.8212 GB, free: 44 kB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.332e-05/0.003148, allocations: 15.86 kB / 0.8213 GB, free: 28 kB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001979/0.003346, allocations: 148.3 kB / 0.8214 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.003471, allocations: 42.48 kB / 0.8214 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.003486, allocations: 16.92 kB / 0.8215 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.146e-05/0.003538, allocations: 7.984 kB / 0.8215 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.003554, allocations: 34.56 kB / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.003555, allocations: 0 / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 9.463e-05/0.003649, allocations: 49.56 kB / 0.8215 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.003671, allocations: 51.41 kB / 0.8216 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.413e-05/0.003716, allocations: 102.7 kB / 0.8217 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.003726, allocations: 29.7 kB / 0.8217 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.797e-05/0.003754, allocations: 88.08 kB / 0.8218 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.003767, allocations: 7.953 kB / 0.8218 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/0.003789, allocations: 13.72 kB / 0.8218 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.003861, allocations: 318.8 kB / 0.8221 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-06/0.003869, allocations: 4 kB / 0.8221 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.235e-06/0.003878, allocations: 4 kB / 0.8221 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.738e-05/0.003905, allocations: 29.23 kB / 0.8222 GB, free: 15 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.003906, allocations: 0 / 0.8222 GB, free: 15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.307e-05/0.00395, allocations: 41.72 kB / 0.8222 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.00396, allocations: 4 kB / 0.8222 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.003963, allocations: 4 kB / 0.8222 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.003975, allocations: 3.938 kB / 0.8222 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.478e-05/0.004019, allocations: 7.984 kB / 0.8222 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.004024, allocations: 4 kB / 0.8222 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.00404, allocations: 4 kB / 0.8222 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-06/0.004045, allocations: 4 kB / 0.8222 GB, free: 14.93 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 4.276e-05/0.004088, allocations: 109.8 kB / 0.8223 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/0.004099, allocations: 0 / 0.8223 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.484e-05/0.004164, allocations: 53.3 kB / 0.8224 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.004166, allocations: 7.938 kB / 0.8224 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.004168, allocations: 0 / 0.8224 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.00417, allocations: 0 / 0.8224 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.392e-05/0.004244, allocations: 69.83 kB / 0.8225 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.004244, allocations: 0 / 0.8225 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.394e-05/0.004268, allocations: 12 kB / 0.8225 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-06/0.004275, allocations: 15.92 kB / 0.8225 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.004276, allocations: 0 / 0.8225 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-06/0.00428, allocations: 0 / 0.8225 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.00428, allocations: 0 / 0.8225 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.004281, allocations: 3.938 kB / 0.8225 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.33e-05/0.004345, allocations: 139.5 kB / 0.8226 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.195e-06/0.004353, allocations: 0 / 0.8226 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.036e-05/0.004383, allocations: 4 kB / 0.8226 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.004417, allocations: 7.984 kB / 0.8226 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.004421, allocations: 11.94 kB / 0.8226 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.568e-06/0.00443, allocations: 8.844 kB / 0.8227 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.00443, allocations: 0 / 0.8227 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001159/0.004546, allocations: 8 kB / 0.8227 GB, free: 14.43 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 9.073e-05/0.004637, allocations: 84.42 kB / 0.8227 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.462e-05/0.004692, allocations: 16.84 kB / 0.8228 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.004695, allocations: 0 / 0.8228 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.088e-05/0.004716, allocations: 16.84 kB / 0.8228 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.004852, allocations: 38.95 kB / 0.8228 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.005155, allocations: 125.1 kB / 0.8229 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.097e-05/0.005186, allocations: 59.2 kB / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.951e-05/0.005206, allocations: 11.94 kB / 0.823 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.005247, allocations: 55.38 kB / 0.8231 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of SimCode: time 5.81e-07/0.005248, allocations: 0 / 0.8231 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of Templates: time 0.002024/0.007272, allocations: 0.7865 MB / 0.8238 GB, free: 13.17 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.184674656949937]