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.001455/0.001455, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.001574/0.001574, allocations: 174.2 kB / 22.46 MB, free: 5.355 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.454/1.454, allocations: 177.1 MB / 202.8 MB, free: 9.18 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.899/2.899, allocations: 389 MB / 0.633 GB, free: 1.023 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.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.893e-06/1.893e-06, allocations: 3.938 kB / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.948e-05, allocations: 2.281 kB / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002616/0.002645, allocations: 1.54 MB / 1.002 GB, free: 5.746 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003722/0.003017, allocations: 139.4 kB / 1.002 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.003054, allocations: 0 / 1.002 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.003081, allocations: 0 / 1.002 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.77e-05/0.003119, allocations: 3.938 kB / 1.002 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.00335, allocations: 19.92 kB / 1.002 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.774e-05/0.003427, allocations: 31.92 kB / 1.002 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.353e-05/0.003521, allocations: 11.97 kB / 1.002 GB, free: 5.543 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.092e-05/0.003572, allocations: 16 kB / 1.002 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.501e-05/0.003617, allocations: 11.92 kB / 1.002 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.003634, allocations: 4 kB / 1.002 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/0.003705, allocations: 15.98 kB / 1.002 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.522e-05/0.00372, allocations: 4 kB / 1.002 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.441e-05/0.003745, allocations: 11.97 kB / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.003875, allocations: 39.83 kB / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.003878, allocations: 0 / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.91e-07/0.003879, allocations: 0 / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.003883, allocations: 0 / 1.002 GB, free: 5.441 MB / 0.9512 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.0004984/0.004382, allocations: 270.3 kB / 1.002 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.004418, allocations: 12.03 kB / 1.002 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.991e-05/0.004448, allocations: 0.9375 kB / 1.002 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.004554, allocations: 109.8 kB / 1.002 GB, free: 5 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.004574, allocations: 384 / 1.002 GB, free: 5 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.004591, allocations: 4.375 kB / 1.002 GB, free: 4.996 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.00479, allocations: 58.22 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.004799, allocations: 192 / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.00481, allocations: 4.375 kB / 1.002 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.004815, allocations: 4.312 kB / 1.002 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.005013, allocations: 47.83 kB / 1.002 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003429/0.005356, allocations: 212.5 kB / 1.003 GB, free: 4.641 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.005732, allocations: 58.53 kB / 1.003 GB, free: 4.574 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.005845, allocations: 24.91 kB / 1.003 GB, free: 4.547 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.005949, allocations: 7.984 kB / 1.003 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.005986, allocations: 34.5 kB / 1.003 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.005988, allocations: 4 kB / 1.003 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004421/0.00643, allocations: 89.58 kB / 1.003 GB, free: 4.398 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.006484, allocations: 63.34 kB / 1.003 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.36e-05/0.006577, allocations: 98.03 kB / 1.003 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.006601, allocations: 25.7 kB / 1.003 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.006674, allocations: 88.09 kB / 1.003 GB, free: 4.098 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.006698, allocations: 7.953 kB / 1.003 GB, free: 4.09 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.006752, allocations: 21.7 kB / 1.003 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.006894, allocations: 314.8 kB / 1.003 GB, free: 3.746 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.006997, allocations: 19.98 kB / 1.003 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.802e-05/0.007085, allocations: 16.16 kB / 1.003 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.007275, allocations: 56.83 kB / 1.004 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.00728, allocations: 4 kB / 1.004 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002315/0.007511, allocations: 73.66 kB / 1.004 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.007531, allocations: 11.94 kB / 1.004 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.007538, allocations: 0 / 1.004 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.007553, allocations: 0 / 1.004 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.611e-05/0.007649, allocations: 11.98 kB / 1.004 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.007654, allocations: 0 / 1.004 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.007715, allocations: 7.984 kB / 1.004 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.00772, allocations: 0 / 1.004 GB, free: 3.539 MB / 0.9512 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 8.807e-05/0.007809, allocations: 118.3 kB / 1.004 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.007833, allocations: 0 / 1.004 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.00811, allocations: 89.27 kB / 1.004 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.008112, allocations: 0 / 1.004 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.008115, allocations: 0 / 1.004 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.008118, allocations: 0 / 1.004 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.008257, allocations: 109.3 kB / 1.004 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.008258, allocations: 0 / 1.004 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.872e-05/0.008337, allocations: 11.98 kB / 1.004 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.008338, allocations: 0 / 1.004 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.008346, allocations: 0 / 1.004 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.008349, allocations: 7.938 kB / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.00835, allocations: 0 / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.008633, allocations: 175.4 kB / 1.004 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.735e-06/0.00864, allocations: 7.938 kB / 1.004 GB, free: 2.961 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.008655, allocations: 7.938 kB / 1.004 GB, free: 2.953 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.008745, allocations: 11.92 kB / 1.004 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.008801, allocations: 3.984 kB / 1.004 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.008808, allocations: 4 kB / 1.004 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.872e-05/0.008857, allocations: 79.28 kB / 1.004 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.008857, allocations: 8 kB / 1.004 GB, free: 2.848 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002433/0.0091, allocations: 4 kB / 1.004 GB, free: 2.844 MB / 0.9512 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.0001546/0.009255, allocations: 103.2 kB / 1.004 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002488/0.009504, allocations: 52.22 kB / 1.004 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.009505, allocations: 3.938 kB / 1.004 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.009607, allocations: 20.08 kB / 1.004 GB, free: 2.66 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.009867, allocations: 14.44 kB / 1.004 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.01016, allocations: 117 kB / 1.005 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.467e-05/0.01022, allocations: 55.36 kB / 1.005 GB, free: 2.434 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.084e-05/0.01025, allocations: 11.98 kB / 1.005 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.01028, allocations: 16.5 kB / 1.005 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of SimCode: time 4.61e-07/0.01029, allocations: 0 / 1.005 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of Templates: time 0.003505/0.01379, allocations: 0.7316 MB / 1.005 GB, free: 1.68 MB / 0.9512 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.978764422237873]