Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001202/0.001202, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 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.00133/0.00133, allocations: 181 kB / 24.09 MB, free: 420 kB / 18.57 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.9552/0.9552, allocations: 177.1 MB / 204.5 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.855/1.855, allocations: 377.9 MB / 0.624 GB, free: 8.375 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 0.812 GB, free: 240 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.025e-05/2.154e-05, allocations: 2.312 kB / 0.8121 GB, free: 236 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001225/0.001247, allocations: 0.6079 MB / 0.8126 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0002059/0.001453, allocations: 45.77 kB / 0.8127 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.665e-05/0.001469, allocations: 0 / 0.8127 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 1.426e-05/0.001484, allocations: 0 / 0.8127 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 6.311e-06/0.00149, allocations: 1.656 kB / 0.8127 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.001694, allocations: 15.92 kB / 0.8127 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 4.177e-05/0.001736, allocations: 15.92 kB / 0.8127 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.302e-05/0.001769, allocations: 0 / 0.8127 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 2.83e-05/0.001797, allocations: 5.562 kB / 0.8127 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 1.703e-05/0.001814, allocations: 0 / 0.8127 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.001825, allocations: 0 / 0.8127 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 7.846e-05/0.001903, allocations: 15.92 kB / 0.8127 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.001914, allocations: 5.203 kB / 0.8127 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 9.638e-06/0.001923, allocations: 4 kB / 0.8127 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 6.956e-05/0.001993, allocations: 4 kB / 0.8128 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.001996, allocations: 4 kB / 0.8128 GB, free: 15.53 MB / 0.7292 GB Notification: Performance of FrontEnd: time 9.01e-07/0.001997, allocations: 1.594 kB / 0.8128 GB, free: 15.53 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.896e-06/0.002, allocations: 0 / 0.8128 GB, free: 15.53 MB / 0.7292 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.0002084/0.002208, allocations: 336.4 kB / 0.8131 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.002241, allocations: 12.03 kB / 0.8131 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.999e-05/0.002261, allocations: 1.656 kB / 0.8131 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.562e-05/0.002307, allocations: 104.6 kB / 0.8132 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.016e-06/0.002315, allocations: 0.9062 kB / 0.8132 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-06/0.002321, allocations: 6.031 kB / 0.8132 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.957e-05/0.002381, allocations: 34.19 kB / 0.8132 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-06/0.002385, allocations: 192 / 0.8132 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.002391, allocations: 8.375 kB / 0.8132 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.002395, allocations: 4.969 kB / 0.8132 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.669e-05/0.002412, allocations: 3.938 kB / 0.8132 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.53e-05/0.002497, allocations: 102.3 kB / 0.8133 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 3.514e-05/0.002532, allocations: 27.09 kB / 0.8134 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.187e-05/0.002544, allocations: 8.844 kB / 0.8134 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.002654, allocations: 12 kB / 0.8134 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.002674, allocations: 37.39 kB / 0.8134 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.002675, allocations: 1.375 kB / 0.8134 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2): time 9.17e-05/0.002767, allocations: 37.69 kB / 0.8135 GB, free: 14.69 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.002791, allocations: 53.16 kB / 0.8135 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.863e-05/0.002829, allocations: 142.2 kB / 0.8136 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.446e-06/0.002838, allocations: 25.7 kB / 0.8137 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.002869, allocations: 130.9 kB / 0.8138 GB, free: 14.31 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.002884, allocations: 8.234 kB / 0.8138 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.002909, allocations: 25.27 kB / 0.8138 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.003016, allocations: 0.4922 MB / 0.8143 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.035e-06/0.003024, allocations: 0 / 0.8143 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.394e-06/0.003032, allocations: 7.938 kB / 0.8143 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.525e-05/0.003057, allocations: 12.41 kB / 0.8143 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.003059, allocations: 0 / 0.8143 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.065e-05/0.003099, allocations: 40.06 kB / 0.8144 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.00311, allocations: 5.562 kB / 0.8144 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.003114, allocations: 0 / 0.8144 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.003123, allocations: 0 / 0.8144 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.602e-05/0.003159, allocations: 4 kB / 0.8144 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.003162, allocations: 0 / 0.8144 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.255e-06/0.00317, allocations: 1.906 kB / 0.8144 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-06/0.003172, allocations: 0 / 0.8144 GB, free: 13.69 MB / 0.7292 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 6.095e-05/0.003233, allocations: 168.5 kB / 0.8145 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-06/0.003237, allocations: 0 / 0.8145 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.003296, allocations: 41.34 kB / 0.8146 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.003298, allocations: 0.5 kB / 0.8146 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.003299, allocations: 1.875 kB / 0.8146 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.003302, allocations: 0 / 0.8146 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.86e-05/0.003361, allocations: 109.2 kB / 0.8147 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.003362, allocations: 0 / 0.8147 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.18e-05/0.003374, allocations: 7.938 kB / 0.8147 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.003375, allocations: 0 / 0.8147 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-06/0.003378, allocations: 2.5 kB / 0.8147 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.4e-07/0.003378, allocations: 0 / 0.8147 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.003379, allocations: 0 / 0.8147 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.418e-05/0.003433, allocations: 76.31 kB / 0.8148 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-06/0.003437, allocations: 4 kB / 0.8148 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-06/0.003444, allocations: 0 / 0.8148 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.258e-06/0.003448, allocations: 1.156 kB / 0.8148 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.003472, allocations: 3.984 kB / 0.8148 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.003476, allocations: 11.98 kB / 0.8148 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.023e-05/0.003506, allocations: 119.9 kB / 0.8149 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.003506, allocations: 0 / 0.8149 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001149/0.003621, allocations: 4.656 kB / 0.8149 GB, free: 13.09 MB / 0.7292 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.0001013/0.003722, allocations: 100.1 kB / 0.815 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 4.836e-05/0.003771, allocations: 19.31 kB / 0.815 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 8.52e-07/0.003772, allocations: 0 / 0.815 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.284e-05/0.003784, allocations: 15.67 kB / 0.815 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.738e-05/0.003872, allocations: 6.172 kB / 0.815 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001509/0.004023, allocations: 99.16 kB / 0.8151 GB, free: 12.81 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.553e-05/0.004048, allocations: 55.34 kB / 0.8152 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 1.02e-05/0.004058, allocations: 3.906 kB / 0.8152 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.00409, allocations: 70.2 kB / 0.8153 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of SimCode: time 4.91e-07/0.00409, allocations: 2 kB / 0.8153 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of Templates: time 0.001719/0.00581, allocations: 381.2 kB / 0.8156 GB, free: 12.3 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.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: 4.832466016989201]