Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.791/1.791, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.669/1.669, allocations: 251.9 MB / 0.51 GB, free: 4.828 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005715/0.0005717, allocations: 19.59 kB / 0.6241 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5956/0.5962, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007859/0.597, allocations: 317.3 kB / 0.7283 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002197/0.5973, allocations: 46.47 kB / 0.7283 GB, free: 11.1 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.421e-05/0.5973, allocations: 4 kB / 0.7283 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.151e-05/0.5973, allocations: 3.938 kB / 0.7283 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.5973, allocations: 0 / 0.7283 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.5975, allocations: 11.98 kB / 0.7283 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 3.914e-05/0.5976, allocations: 3.938 kB / 0.7283 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 5.021e-05/0.5976, allocations: 0 / 0.7283 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.5976, allocations: 0 / 0.7283 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.5977, allocations: 4 kB / 0.7283 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.909e-06/0.5977, allocations: 0 / 0.7283 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.807e-05/0.5978, allocations: 15.92 kB / 0.7284 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.384e-06/0.5978, allocations: 3.984 kB / 0.7284 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.5978, allocations: 29.7 kB / 0.7284 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 6.09e-05/0.5979, allocations: 4 kB / 0.7284 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.5979, allocations: 0 / 0.7284 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.5979, allocations: 0 / 0.7284 GB, free: 11.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.5979, allocations: 0 / 0.7284 GB, free: 11.01 MB / 0.545 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.000324/0.5982, allocations: 323.3 kB / 0.7287 GB, free: 10.65 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.5983, allocations: 8.031 kB / 0.7287 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.5983, allocations: 0 / 0.7287 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.797e-05/0.5984, allocations: 163 kB / 0.7289 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.5984, allocations: 7.938 kB / 0.7289 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.5985, allocations: 4 kB / 0.7289 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.751e-05/0.5986, allocations: 33.62 kB / 0.7289 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.5986, allocations: 0 / 0.7289 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.5986, allocations: 7.984 kB / 0.7289 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.5986, allocations: 0 / 0.7289 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.051e-05/0.5986, allocations: 0 / 0.7289 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.5988, allocations: 157.6 kB / 0.7291 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.591e-05/0.5988, allocations: 26.61 kB / 0.7291 GB, free: 10.14 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001576/0.599, allocations: 81.17 kB / 0.7292 GB, free: 10.05 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.5991, allocations: 38.5 kB / 0.7292 GB, free: 10 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.5991, allocations: 0 / 0.7292 GB, free: 10 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0001416/0.5992, allocations: 41.69 kB / 0.7293 GB, free: 9.953 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.5993, allocations: 55.41 kB / 0.7293 GB, free: 9.887 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.055e-05/0.5993, allocations: 89.86 kB / 0.7294 GB, free: 9.789 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.5993, allocations: 25.83 kB / 0.7294 GB, free: 9.758 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.686e-05/0.5994, allocations: 84.14 kB / 0.7295 GB, free: 9.672 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.5994, allocations: 0 / 0.7295 GB, free: 9.672 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.5994, allocations: 0 / 0.7295 GB, free: 9.672 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.5995, allocations: 314.8 kB / 0.7298 GB, free: 9.355 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.5995, allocations: 4 kB / 0.7298 GB, free: 9.352 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.746e-06/0.5995, allocations: 4 kB / 0.7298 GB, free: 9.348 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.877e-05/0.5996, allocations: 7.938 kB / 0.7298 GB, free: 9.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5996, allocations: 0 / 0.7298 GB, free: 9.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.704e-05/0.5997, allocations: 41.72 kB / 0.7299 GB, free: 9.293 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.5997, allocations: 4 kB / 0.7299 GB, free: 9.289 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.5997, allocations: 3.984 kB / 0.7299 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.5997, allocations: 0 / 0.7299 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.919e-05/0.5998, allocations: 4 kB / 0.7299 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.5998, allocations: 0 / 0.7299 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.5998, allocations: 1.969 kB / 0.7299 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.5998, allocations: 11.94 kB / 0.7299 GB, free: 9.27 MB / 0.545 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.752e-05/0.5999, allocations: 109.9 kB / 0.73 GB, free: 9.152 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-06/0.5999, allocations: 7.859 kB / 0.73 GB, free: 9.145 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.207e-05/0.6, allocations: 48.75 kB / 0.73 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.6, allocations: 0 / 0.73 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.6, allocations: 3.938 kB / 0.73 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.6, allocations: 0 / 0.73 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.362e-05/0.6001, allocations: 149.7 kB / 0.7302 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.6001, allocations: 0 / 0.7302 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.142e-05/0.6002, allocations: 4 kB / 0.7302 GB, free: 8.887 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.6002, allocations: 3.953 kB / 0.7302 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.6002, allocations: 4.031 kB / 0.7302 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.6002, allocations: 0 / 0.7302 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.6002, allocations: 0 / 0.7302 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.943e-05/0.6003, allocations: 67.92 kB / 0.7303 GB, free: 8.797 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.6003, allocations: 81.11 kB / 0.7303 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.6003, allocations: 3.953 kB / 0.7303 GB, free: 8.695 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.6003, allocations: 4 kB / 0.7303 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.778e-05/0.6004, allocations: 3.984 kB / 0.7303 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.6004, allocations: 4.031 kB / 0.7303 GB, free: 8.684 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.528e-05/0.6004, allocations: 79.28 kB / 0.7304 GB, free: 8.605 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6004, allocations: 0 / 0.7304 GB, free: 8.605 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002078/0.6006, allocations: 4 kB / 0.7304 GB, free: 8.602 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001474/0.6008, allocations: 99.25 kB / 0.7305 GB, free: 8.492 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.672e-05/0.6009, allocations: 8 kB / 0.7305 GB, free: 8.484 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6009, allocations: 0 / 0.7305 GB, free: 8.484 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.877e-05/0.6009, allocations: 19.98 kB / 0.7306 GB, free: 8.465 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.634e-05/0.601, allocations: 3.094 kB / 0.7306 GB, free: 8.465 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001789/0.6012, allocations: 86.64 kB / 0.7306 GB, free: 8.355 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.6014, allocations: 0.6731 MB / 0.7313 GB, free: 7.656 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.401e-05/0.6014, allocations: 8 kB / 0.7313 GB, free: 7.648 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.149e-05/0.6015, allocations: 7.438 kB / 0.7313 GB, free: 7.641 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.6015, allocations: 0 / 0.7313 GB, free: 7.641 MB / 0.545 GB Notification: Performance of Templates: time 0.002259/0.6038, allocations: 316 kB / 0.7316 GB, free: 7.332 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: