Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001976/0.001976, allocations: 84.05 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.002392/0.002392, allocations: 165.5 kB / 22.46 MB, free: 5.359 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.453/1.453, allocations: 177.1 MB / 202.8 MB, free: 9.184 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.885/2.885, allocations: 389 MB / 0.633 GB, free: 1.004 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 1 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.528e-05/2.66e-05, allocations: 2.281 kB / 1 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001719/0.001746, allocations: 0.6013 MB / 1.001 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0002547/0.002, allocations: 51.78 kB / 1.001 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.664e-05/0.002017, allocations: 0 / 1.001 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.002034, allocations: 0 / 1.001 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.332e-06/0.00204, allocations: 4 kB / 1.001 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002274/0.002267, allocations: 7.938 kB / 1.001 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 4.024e-05/0.002308, allocations: 8 kB / 1.001 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.954e-05/0.002357, allocations: 3.984 kB / 1.001 GB, free: 6.566 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.618e-05/0.002383, allocations: 4 kB / 1.001 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 1.93e-05/0.002403, allocations: 0 / 1.001 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.002415, allocations: 0 / 1.001 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.674e-05/0.002492, allocations: 11.98 kB / 1.001 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.002509, allocations: 11.92 kB / 1.001 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 1.336e-05/0.002522, allocations: 0 / 1.001 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 8.685e-05/0.002609, allocations: 11.94 kB / 1.001 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.002611, allocations: 0 / 1.001 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5e-07/0.002612, allocations: 0 / 1.001 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.00262, allocations: 4 kB / 1.001 GB, free: 6.523 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003004/0.002921, allocations: 234.5 kB / 1.001 GB, free: 6.262 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.002957, allocations: 12.03 kB / 1.001 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.002991, allocations: 0.9375 kB / 1.001 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.17e-05/0.003083, allocations: 101.8 kB / 1.001 GB, free: 6.125 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.003091, allocations: 384 / 1.001 GB, free: 6.125 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.003103, allocations: 4.375 kB / 1.001 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.003215, allocations: 42.19 kB / 1.001 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.003224, allocations: 4.125 kB / 1.001 GB, free: 6.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.003232, allocations: 384 / 1.001 GB, free: 6.07 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.003236, allocations: 4.375 kB / 1.001 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.484e-05/0.00327, allocations: 7.938 kB / 1.001 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.003402, allocations: 101.3 kB / 1.001 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.711e-05/0.003459, allocations: 18.61 kB / 1.001 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.967e-05/0.003479, allocations: 8.922 kB / 1.001 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.003599, allocations: 4 kB / 1.001 GB, free: 5.887 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.003634, allocations: 38.5 kB / 1.001 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.003635, allocations: 0 / 1.001 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001438/0.003779, allocations: 37.69 kB / 1.001 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.003815, allocations: 59.53 kB / 1.002 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.351e-05/0.003869, allocations: 89.86 kB / 1.002 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.003885, allocations: 29.7 kB / 1.002 GB, free: 5.594 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.523e-05/0.00392, allocations: 80.14 kB / 1.002 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.003945, allocations: 7.891 kB / 1.002 GB, free: 5.504 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.003977, allocations: 17.7 kB / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.004122, allocations: 314.8 kB / 1.002 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.489e-05/0.004137, allocations: 8 kB / 1.002 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.083e-06/0.004144, allocations: 0 / 1.002 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.696e-05/0.004181, allocations: 16.8 kB / 1.002 GB, free: 5.137 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.004183, allocations: 4.062 kB / 1.002 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.9e-05/0.004252, allocations: 41.69 kB / 1.002 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.004266, allocations: 4 kB / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.00427, allocations: 0 / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.004286, allocations: 4 kB / 1.002 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.746e-05/0.004344, allocations: 4 kB / 1.002 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.004349, allocations: 0 / 1.002 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.746e-05/0.004366, allocations: 3.938 kB / 1.002 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-06/0.00437, allocations: 0 / 1.002 GB, free: 5.07 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 (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 7.767e-05/0.004448, allocations: 109.9 kB / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-06/0.004457, allocations: 7.984 kB / 1.002 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.24e-05/0.00455, allocations: 44.8 kB / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.004552, allocations: 0 / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.004555, allocations: 0 / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.004557, allocations: 0 / 1.002 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.467e-05/0.004652, allocations: 113.2 kB / 1.002 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.004653, allocations: 0 / 1.002 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.14e-05/0.004684, allocations: 4 kB / 1.002 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.004686, allocations: 0 / 1.002 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.004692, allocations: 0 / 1.002 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.004693, allocations: 4.031 kB / 1.002 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.004694, allocations: 3.938 kB / 1.002 GB, free: 4.738 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.988e-05/0.004784, allocations: 69 kB / 1.002 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-06/0.004791, allocations: 4 kB / 1.002 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-06/0.0048, allocations: 0 / 1.002 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.004812, allocations: 0 / 1.002 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.004841, allocations: 7.984 kB / 1.002 GB, free: 4.641 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.004844, allocations: 0 / 1.002 GB, free: 4.641 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.349e-05/0.004877, allocations: 75.28 kB / 1.003 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6.1e-08/0.004877, allocations: 0 / 1.003 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002048/0.005082, allocations: 7.938 kB / 1.003 GB, free: 4.559 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,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.0001614/0.005244, allocations: 115.2 kB / 1.003 GB, free: 4.438 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.878e-05/0.005322, allocations: 11.98 kB / 1.003 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.005324, allocations: 0 / 1.003 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/0.005343, allocations: 7.938 kB / 1.003 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.005475, allocations: 7.938 kB / 1.003 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000233/0.005708, allocations: 81 kB / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.448e-05/0.005763, allocations: 59.34 kB / 1.003 GB, free: 4.227 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.165e-05/0.005775, allocations: 4.125 kB / 1.003 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.17e-05/0.005796, allocations: 12.48 kB / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of SimCode: time 4.1e-07/0.005797, allocations: 0 / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of Templates: time 0.002678/0.008475, allocations: 332.6 kB / 1.003 GB, free: 3.887 MB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.889374908059835]