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.001012/0.001012, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001078/0.001078, allocations: 172.7 kB / 15.95 MB, free: 208 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.812/1.812, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.599/1.599, allocations: 252 MB / 0.5102 GB, free: 4.832 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.0005623/0.0005624, allocations: 12 kB / 0.6243 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5466/0.5472, allocations: 106.4 MB / 0.7281 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000887/0.5481, allocations: 316.6 kB / 0.7284 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002782/0.5484, allocations: 51.83 kB / 0.7285 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.553e-05/0.5485, allocations: 0 / 0.7285 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.5485, allocations: 0 / 0.7285 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.334e-06/0.5485, allocations: 4 kB / 0.7285 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.5487, allocations: 11.94 kB / 0.7285 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.834e-05/0.5488, allocations: 7.984 kB / 0.7285 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.682e-05/0.5488, allocations: 0 / 0.7285 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.495e-05/0.5489, allocations: 4 kB / 0.7285 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.73e-05/0.5489, allocations: 3.984 kB / 0.7285 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.5489, allocations: 0 / 0.7285 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.414e-05/0.549, allocations: 4 kB / 0.7285 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.212e-06/0.549, allocations: 4 kB / 0.7285 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.549, allocations: 25.7 kB / 0.7286 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 6.062e-05/0.5491, allocations: 7.984 kB / 0.7286 GB, free: 11.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.5491, allocations: 4 kB / 0.7286 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5491, allocations: 4 kB / 0.7286 GB, free: 11.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.5491, allocations: 0 / 0.7286 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.0003134/0.5495, allocations: 307.3 kB / 0.7289 GB, free: 10.66 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5495, allocations: 16.08 kB / 0.7289 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.5495, allocations: 0 / 0.7289 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.5497, allocations: 167 kB / 0.729 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.5497, allocations: 0 / 0.729 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.5497, allocations: 0 / 0.729 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.5498, allocations: 37.7 kB / 0.7291 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.5498, allocations: 0 / 0.7291 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.5498, allocations: 0 / 0.7291 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.5498, allocations: 0 / 0.7291 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.46e-05/0.5499, allocations: 7.984 kB / 0.7291 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.5501, allocations: 149.6 kB / 0.7292 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.588e-05/0.5501, allocations: 30.53 kB / 0.7293 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.937e-05/0.5501, allocations: 4.859 kB / 0.7293 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001802/0.5503, allocations: 89.11 kB / 0.7293 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.5504, allocations: 30.56 kB / 0.7294 GB, free: 10 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.5504, allocations: 4 kB / 0.7294 GB, free: 10 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.00014/0.5505, allocations: 41.69 kB / 0.7294 GB, free: 9.953 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.5506, allocations: 51.41 kB / 0.7295 GB, free: 9.891 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.769e-05/0.5506, allocations: 89.86 kB / 0.7296 GB, free: 9.793 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.5507, allocations: 29.64 kB / 0.7296 GB, free: 9.758 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.5507, allocations: 87.12 kB / 0.7297 GB, free: 9.672 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.5507, allocations: 4 kB / 0.7297 GB, free: 9.668 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.5507, allocations: 3.938 kB / 0.7297 GB, free: 9.664 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5509, allocations: 314.8 kB / 0.73 GB, free: 9.348 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.5509, allocations: 0 / 0.73 GB, free: 9.348 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.031e-05/0.5509, allocations: 7.984 kB / 0.73 GB, free: 9.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.003e-05/0.5509, allocations: 0 / 0.73 GB, free: 9.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5509, allocations: 3.953 kB / 0.73 GB, free: 9.336 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.025e-05/0.551, allocations: 41.77 kB / 0.73 GB, free: 9.289 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.551, allocations: 4 kB / 0.73 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.551, allocations: 4 kB / 0.73 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.5511, allocations: 0 / 0.73 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.107e-05/0.5511, allocations: 3.984 kB / 0.73 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.5511, allocations: 4 kB / 0.73 GB, free: 9.273 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.5511, allocations: 1.969 kB / 0.73 GB, free: 9.273 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-06/0.5512, allocations: 0 / 0.73 GB, free: 9.273 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.514e-05/0.5512, allocations: 109.8 kB / 0.7301 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-06/0.5512, allocations: 15.89 kB / 0.7302 GB, free: 9.141 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.468e-05/0.5513, allocations: 40.81 kB / 0.7302 GB, free: 9.094 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.5513, allocations: 3.984 kB / 0.7302 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.5513, allocations: 4 kB / 0.7302 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.5513, allocations: 0 / 0.7302 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.264e-05/0.5514, allocations: 145.7 kB / 0.7303 GB, free: 8.895 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.5515, allocations: 3.984 kB / 0.7303 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.193e-05/0.5515, allocations: 7.953 kB / 0.7304 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.5515, allocations: 0 / 0.7304 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-06/0.5515, allocations: 0 / 0.7304 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5515, allocations: 4.031 kB / 0.7304 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.5515, allocations: 0 / 0.7304 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.974e-05/0.5516, allocations: 73 kB / 0.7304 GB, free: 8.789 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.5516, allocations: 81.11 kB / 0.7305 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.5516, allocations: 3.953 kB / 0.7305 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.023e-05/0.5517, allocations: 0 / 0.7305 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.5517, allocations: 4 kB / 0.7305 GB, free: 8.684 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.5517, allocations: 4.031 kB / 0.7305 GB, free: 8.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.587e-05/0.5517, allocations: 75.28 kB / 0.7306 GB, free: 8.605 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5517, allocations: 0 / 0.7306 GB, free: 8.605 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002056/0.5519, allocations: 8 kB / 0.7306 GB, free: 8.598 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.0001365/0.5521, allocations: 111.2 kB / 0.7307 GB, free: 8.477 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.262e-05/0.5522, allocations: 8 kB / 0.7307 GB, free: 8.469 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5522, allocations: 0 / 0.7307 GB, free: 8.469 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.5522, allocations: 15.94 kB / 0.7307 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.5523, allocations: 0 / 0.7307 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001651/0.5525, allocations: 86.75 kB / 0.7308 GB, free: 8.344 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.5527, allocations: 0.6731 MB / 0.7315 GB, free: 7.645 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.313e-05/0.5528, allocations: 3.984 kB / 0.7315 GB, free: 7.641 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.268e-05/0.5528, allocations: 7.438 kB / 0.7315 GB, free: 7.633 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.5528, allocations: 0 / 0.7315 GB, free: 7.633 MB / 0.545 GB Notification: Performance of Templates: time 0.002026/0.5548, allocations: 300.1 kB / 0.7318 GB, free: 7.34 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: