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.0006851/0.0006851, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.004131/0.004131, allocations: 173 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.169/1.169, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.329/1.329, allocations: 252 MB / 0.5105 GB, free: 4.625 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.0004335/0.0004335, allocations: 16 kB / 0.6249 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3799, allocations: 106.3 MB / 0.7287 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007085/0.3806, allocations: 328.5 kB / 0.729 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002581/0.3809, allocations: 47.86 kB / 0.7291 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.796e-06/0.3809, allocations: 0 / 0.7291 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.381, allocations: 4 kB / 0.7291 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.388e-06/0.381, allocations: 0 / 0.7291 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.3811, allocations: 11.98 kB / 0.7291 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 3.223e-05/0.3812, allocations: 0 / 0.7291 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.3812, allocations: 7.938 kB / 0.7291 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.343e-05/0.3812, allocations: 3.984 kB / 0.7291 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.294e-05/0.3813, allocations: 4 kB / 0.7291 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.3813, allocations: 0 / 0.7291 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.556e-05/0.3813, allocations: 4 kB / 0.7291 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.786e-06/0.3814, allocations: 0 / 0.7291 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.818e-05/0.3814, allocations: 33.69 kB / 0.7292 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 6.944e-05/0.3815, allocations: 12 kB / 0.7292 GB, free: 10.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3815, allocations: 3.938 kB / 0.7292 GB, free: 10.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3815, allocations: 0 / 0.7292 GB, free: 10.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.3815, allocations: 0 / 0.7292 GB, free: 10.79 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.0002347/0.3817, allocations: 315.5 kB / 0.7295 GB, free: 10.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.3818, allocations: 12.03 kB / 0.7295 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.3818, allocations: 4.875 kB / 0.7295 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.189e-05/0.3819, allocations: 164.3 kB / 0.7296 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3819, allocations: 4.375 kB / 0.7296 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.3819, allocations: 4.375 kB / 0.7297 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.828e-05/0.382, allocations: 34.25 kB / 0.7297 GB, free: 10.17 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-06/0.382, allocations: 192 / 0.7297 GB, free: 10.17 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.382, allocations: 3.938 kB / 0.7297 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.382, allocations: 4 kB / 0.7297 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.871e-05/0.3821, allocations: 0 / 0.7297 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.3822, allocations: 157.7 kB / 0.7298 GB, free: 9.957 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.92e-05/0.3823, allocations: 25.41 kB / 0.7299 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.3823, allocations: 16.92 kB / 0.7299 GB, free: 9.906 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.3824, allocations: 77.11 kB / 0.73 GB, free: 9.812 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.3825, allocations: 38.55 kB / 0.73 GB, free: 9.766 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3825, allocations: 0 / 0.73 GB, free: 9.766 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0001244/0.3826, allocations: 41.64 kB / 0.73 GB, free: 9.719 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/0.3826, allocations: 55.34 kB / 0.7301 GB, free: 9.652 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.073e-05/0.3827, allocations: 89.86 kB / 0.7302 GB, free: 9.555 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.3827, allocations: 29.83 kB / 0.7302 GB, free: 9.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.401e-05/0.3827, allocations: 80.14 kB / 0.7303 GB, free: 9.438 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.3827, allocations: 4 kB / 0.7303 GB, free: 9.434 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.3828, allocations: 13.7 kB / 0.7303 GB, free: 9.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.3829, allocations: 310.8 kB / 0.7306 GB, free: 9.102 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.3829, allocations: 8 kB / 0.7306 GB, free: 9.094 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.261e-06/0.3829, allocations: 0 / 0.7306 GB, free: 9.094 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.621e-05/0.3829, allocations: 8.859 kB / 0.7306 GB, free: 9.082 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3829, allocations: 4.062 kB / 0.7306 GB, free: 9.078 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.612e-05/0.383, allocations: 41.69 kB / 0.7307 GB, free: 9.031 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.383, allocations: 9.719 kB / 0.7307 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.383, allocations: 3.938 kB / 0.7307 GB, free: 9.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.383, allocations: 7.875 kB / 0.7307 GB, free: 9.012 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.028e-05/0.3831, allocations: 4 kB / 0.7307 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3831, allocations: 0 / 0.7307 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.3831, allocations: 1.969 kB / 0.7307 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-06/0.3831, allocations: 0 / 0.7307 GB, free: 9.008 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 (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.236e-05/0.3832, allocations: 109.9 kB / 0.7308 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-06/0.3832, allocations: 7.906 kB / 0.7308 GB, free: 8.883 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.03e-05/0.3833, allocations: 48.75 kB / 0.7308 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3833, allocations: 0 / 0.7308 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3833, allocations: 0 / 0.7308 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3833, allocations: 0 / 0.7308 GB, free: 8.828 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.085e-05/0.3834, allocations: 149.7 kB / 0.731 GB, free: 8.633 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3834, allocations: 3.938 kB / 0.731 GB, free: 8.629 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-05/0.3834, allocations: 7.938 kB / 0.731 GB, free: 8.621 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3834, allocations: 4.031 kB / 0.731 GB, free: 8.617 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.3835, allocations: 7.938 kB / 0.731 GB, free: 8.609 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3835, allocations: 4 kB / 0.731 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3835, allocations: 0 / 0.731 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.42e-05/0.3835, allocations: 61.12 kB / 0.7311 GB, free: 8.527 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.3836, allocations: 77.11 kB / 0.7311 GB, free: 8.434 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.3836, allocations: 3.938 kB / 0.7311 GB, free: 8.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.3836, allocations: 3.984 kB / 0.7311 GB, free: 8.426 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.3836, allocations: 8.031 kB / 0.7312 GB, free: 8.418 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-06/0.3837, allocations: 3.984 kB / 0.7312 GB, free: 8.414 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.151e-05/0.3837, allocations: 75.28 kB / 0.7312 GB, free: 8.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3837, allocations: 0 / 0.7312 GB, free: 8.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001681/0.3839, allocations: 4 kB / 0.7312 GB, free: 8.336 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 (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.0001352/0.384, allocations: 103.2 kB / 0.7313 GB, free: 8.223 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 5.679e-05/0.3841, allocations: 15.92 kB / 0.7313 GB, free: 8.207 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3841, allocations: 4.062 kB / 0.7313 GB, free: 8.203 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.253e-05/0.3841, allocations: 4 kB / 0.7314 GB, free: 8.199 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.3842, allocations: 7.234 kB / 0.7314 GB, free: 8.195 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000151/0.3844, allocations: 82.7 kB / 0.7314 GB, free: 8.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.3846, allocations: 0.677 MB / 0.7321 GB, free: 7.387 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.117e-05/0.3846, allocations: 0 / 0.7321 GB, free: 7.387 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.364e-05/0.3846, allocations: 11.44 kB / 0.7321 GB, free: 7.375 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.3846, allocations: 0 / 0.7321 GB, free: 7.375 MB / 0.545 GB Notification: Performance of Templates: time 0.001897/0.3865, allocations: 312.6 kB / 0.7324 GB, free: 7.07 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: