Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 200.7 kB / 22.17 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 225.6 MB / 250.9 MB, free: 13.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.837/2.837, allocations: 476.7 MB / 0.7645 GB, free: 10.12 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 75.89 kB / 1.109 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9066/0.9087, allocations: 168.7 MB / 1.274 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001806/0.9105, allocations: 0.586 MB / 1.275 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002674/0.9108, allocations: 51.8 kB / 1.275 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.522e-05/0.9108, allocations: 0 / 1.275 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.439e-05/0.9108, allocations: 0 / 1.275 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.66e-06/0.9108, allocations: 4 kB / 1.275 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.911, allocations: 15.92 kB / 1.275 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.492e-05/0.9111, allocations: 7.984 kB / 1.275 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.699e-05/0.9111, allocations: 0 / 1.275 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.258e-05/0.9111, allocations: 0 / 1.275 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.608e-05/0.9112, allocations: 4 kB / 1.275 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.9112, allocations: 4 kB / 1.275 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.207e-05/0.9113, allocations: 7.984 kB / 1.275 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.9113, allocations: 4 kB / 1.275 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.825e-05/0.9113, allocations: 0 / 1.275 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.9114, allocations: 19.91 kB / 1.275 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.9114, allocations: 0 / 1.275 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.444e-06/0.9114, allocations: 0 / 1.275 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.9114, allocations: 3.938 kB / 1.275 GB, free: 3.844 MB / 0.9669 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.0003982/0.9118, allocations: 318.2 kB / 1.275 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001018/0.9119, allocations: 12.03 kB / 1.275 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.12e-05/0.912, allocations: 0.9375 kB / 1.275 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.9121, allocations: 164.4 kB / 1.275 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.9121, allocations: 384 / 1.275 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-06/0.9121, allocations: 384 / 1.275 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.9122, allocations: 38.2 kB / 1.275 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.9122, allocations: 192 / 1.275 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.9122, allocations: 3.938 kB / 1.275 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.9122, allocations: 4 kB / 1.275 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.475e-05/0.9123, allocations: 7.984 kB / 1.275 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.9124, allocations: 145.7 kB / 1.275 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.9126, allocations: 26.55 kB / 1.275 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.031e-05/0.9126, allocations: 12.84 kB / 1.275 GB, free: 2.973 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/0.9127, allocations: 81.17 kB / 1.276 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.9128, allocations: 30.56 kB / 1.276 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.9128, allocations: 4 kB / 1.276 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001477/0.9129, allocations: 49.56 kB / 1.276 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001727/0.9131, allocations: 51.41 kB / 1.276 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.846e-05/0.9131, allocations: 89.86 kB / 1.276 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.9132, allocations: 25.83 kB / 1.276 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.9132, allocations: 84.14 kB / 1.276 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.9132, allocations: 0 / 1.276 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.9132, allocations: 17.72 kB / 1.276 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.9134, allocations: 310.8 kB / 1.276 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.446e-05/0.9134, allocations: 7.984 kB / 1.276 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.9134, allocations: 0 / 1.276 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.464e-05/0.9134, allocations: 20.8 kB / 1.276 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.9134, allocations: 4.062 kB / 1.276 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.026e-05/0.9135, allocations: 41.59 kB / 1.276 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.9135, allocations: 4 kB / 1.276 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.9135, allocations: 3.984 kB / 1.276 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.9136, allocations: 7.938 kB / 1.276 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.719e-05/0.9136, allocations: 7.984 kB / 1.276 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.9136, allocations: 0 / 1.276 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.602e-05/0.9136, allocations: 4 kB / 1.276 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.9136, allocations: 0 / 1.276 GB, free: 2.055 MB / 0.9669 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 8.258e-05/0.9137, allocations: 117.8 kB / 1.276 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-06/0.9137, allocations: 0 / 1.276 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.394e-05/0.9138, allocations: 48.75 kB / 1.276 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.9138, allocations: 0 / 1.276 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.9138, allocations: 0 / 1.276 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.9138, allocations: 0 / 1.276 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001205/0.9139, allocations: 153.6 kB / 1.277 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9139, allocations: 0 / 1.277 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.033e-05/0.914, allocations: 0 / 1.277 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.914, allocations: 8.031 kB / 1.277 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.914, allocations: 3.938 kB / 1.277 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.914, allocations: 3.938 kB / 1.277 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.914, allocations: 0 / 1.277 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.182e-05/0.9141, allocations: 61.12 kB / 1.277 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.9141, allocations: 77.11 kB / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.9142, allocations: 11.94 kB / 1.277 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.095e-05/0.9142, allocations: 0 / 1.277 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.9142, allocations: 4.031 kB / 1.277 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.9142, allocations: 3.984 kB / 1.277 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.328e-05/0.9142, allocations: 75.28 kB / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.9142, allocations: 0 / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002116/0.9144, allocations: 4 kB / 1.277 GB, free: 1.395 MB / 0.9669 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.0001585/0.9146, allocations: 111.7 kB / 1.277 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 6.804e-05/0.9147, allocations: 7.938 kB / 1.277 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.9147, allocations: 8.062 kB / 1.277 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.576e-05/0.9147, allocations: 7.984 kB / 1.277 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.9148, allocations: 4 kB / 1.277 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002024/0.915, allocations: 104.9 kB / 1.277 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.9153, allocations: 0.6729 MB / 1.278 GB, free: 432 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.309e-05/0.9153, allocations: 4 kB / 1.278 GB, free: 428 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.9153, allocations: 7.438 kB / 1.278 GB, free: 420 kB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.9153, allocations: 0 / 1.278 GB, free: 420 kB / 0.9669 GB Notification: Performance of Templates: time 0.002488/0.9178, allocations: 334.1 kB / 1.278 GB, free: 88 kB / 0.9669 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.836589127313346]