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.001032/0.001032, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009578/0.000958, allocations: 192.1 kB / 16.13 MB, free: 6.652 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.208/1.208, allocations: 205.1 MB / 222 MB, free: 4.754 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.349/1.349, allocations: 251.6 MB / 0.5088 GB, free: 3.359 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.00117/0.00117, allocations: 72.22 kB / 0.6216 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3811, allocations: 104.7 MB / 0.7238 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001603/0.3827, allocations: 0.652 MB / 0.7244 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001736/0.3829, allocations: 51.8 kB / 0.7245 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.879e-06/0.3829, allocations: 0 / 0.7245 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.895e-06/0.3829, allocations: 0 / 0.7245 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.434e-06/0.383, allocations: 0 / 0.7245 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 9.757e-05/0.3831, allocations: 11.97 kB / 0.7245 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 1.877e-05/0.3831, allocations: 11.94 kB / 0.7245 GB, free: 12.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 2.065e-05/0.3831, allocations: 4 kB / 0.7245 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 5.51e-06/0.3831, allocations: 0 / 0.7245 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.227e-06/0.3831, allocations: 0 / 0.7245 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.879e-06/0.3831, allocations: 0 / 0.7245 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 3.785e-05/0.3832, allocations: 11.98 kB / 0.7245 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.681e-06/0.3832, allocations: 4 kB / 0.7245 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.147e-06/0.3832, allocations: 3.984 kB / 0.7245 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 4.84e-05/0.3833, allocations: 7.938 kB / 0.7245 GB, free: 12.53 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3833, allocations: 3.984 kB / 0.7246 GB, free: 12.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 5.61e-07/0.3833, allocations: 4 kB / 0.7246 GB, free: 12.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.653e-06/0.3833, allocations: 0 / 0.7246 GB, free: 12.52 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.0001834/0.3835, allocations: 319.5 kB / 0.7249 GB, free: 12.16 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.473e-05/0.3835, allocations: 8.031 kB / 0.7249 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.915e-05/0.3835, allocations: 4.938 kB / 0.7249 GB, free: 12.14 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.589e-05/0.3836, allocations: 164.4 kB / 0.725 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.3836, allocations: 4.312 kB / 0.725 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-06/0.3836, allocations: 384 / 0.725 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.594e-05/0.3837, allocations: 30.27 kB / 0.7251 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-06/0.3837, allocations: 8.188 kB / 0.7251 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.3837, allocations: 7.938 kB / 0.7251 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.3838, allocations: 0 / 0.7251 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.86e-05/0.3838, allocations: 4 kB / 0.7251 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.3839, allocations: 148.6 kB / 0.7252 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.038e-05/0.384, allocations: 30.52 kB / 0.7253 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.384, allocations: 4.859 kB / 0.7253 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.3841, allocations: 89.16 kB / 0.7253 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.3841, allocations: 30.56 kB / 0.7254 GB, free: 11.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3841, allocations: 0 / 0.7254 GB, free: 11.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.000113/0.3843, allocations: 53.56 kB / 0.7254 GB, free: 11.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/0.3843, allocations: 51.41 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.334e-05/0.3843, allocations: 89.86 kB / 0.7256 GB, free: 11.29 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.618e-06/0.3843, allocations: 25.7 kB / 0.7256 GB, free: 11.25 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.097e-05/0.3844, allocations: 80.14 kB / 0.7257 GB, free: 11.17 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.3844, allocations: 8.125 kB / 0.7257 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.3844, allocations: 13.72 kB / 0.7257 GB, free: 11.14 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.935e-05/0.3845, allocations: 310.8 kB / 0.726 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.3845, allocations: 7.938 kB / 0.726 GB, free: 10.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.3846, allocations: 7.984 kB / 0.726 GB, free: 10.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.635e-05/0.3846, allocations: 8.859 kB / 0.726 GB, free: 10.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3846, allocations: 0 / 0.726 GB, free: 10.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.659e-05/0.3847, allocations: 41.77 kB / 0.726 GB, free: 10.76 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.3847, allocations: 11.94 kB / 0.7261 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.3847, allocations: 0 / 0.7261 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.3847, allocations: 3.938 kB / 0.7261 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.661e-05/0.3847, allocations: 7.984 kB / 0.7261 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3848, allocations: 0 / 0.7261 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.29e-05/0.3848, allocations: 9.891 kB / 0.7261 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-06/0.3848, allocations: 0 / 0.7261 GB, free: 10.73 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 5.69e-05/0.3848, allocations: 109.8 kB / 0.7262 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-06/0.3849, allocations: 7.938 kB / 0.7262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.619e-05/0.3849, allocations: 48.75 kB / 0.7262 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3849, allocations: 0 / 0.7262 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.385, allocations: 0 / 0.7262 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.385, allocations: 0 / 0.7262 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.715e-05/0.385, allocations: 145.7 kB / 0.7264 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.385, allocations: 4 kB / 0.7264 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.031e-05/0.3851, allocations: 4 kB / 0.7264 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.3851, allocations: 0 / 0.7264 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.3851, allocations: 7.938 kB / 0.7264 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3851, allocations: 4.031 kB / 0.7264 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3851, allocations: 0 / 0.7264 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.024e-05/0.3852, allocations: 65.06 kB / 0.7265 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.418e-05/0.3852, allocations: 81.11 kB / 0.7265 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.3852, allocations: 3.938 kB / 0.7265 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.3852, allocations: 4 kB / 0.7265 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.893e-05/0.3853, allocations: 0 / 0.7265 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.3853, allocations: 4.031 kB / 0.7265 GB, free: 10.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 1.959e-05/0.3853, allocations: 75.28 kB / 0.7266 GB, free: 10.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3853, allocations: 0 / 0.7266 GB, free: 10.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001732/0.3855, allocations: 7.984 kB / 0.7266 GB, free: 10.06 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.000118/0.3856, allocations: 107.2 kB / 0.7267 GB, free: 9.945 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 5.619e-05/0.3857, allocations: 11.94 kB / 0.7267 GB, free: 9.934 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.3857, allocations: 0 / 0.7267 GB, free: 9.934 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.32e-05/0.3857, allocations: 12.05 kB / 0.7267 GB, free: 9.922 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.3858, allocations: 7.938 kB / 0.7268 GB, free: 9.914 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001369/0.386, allocations: 82.77 kB / 0.7268 GB, free: 9.809 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.3862, allocations: 0.6692 MB / 0.7275 GB, free: 9.113 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.56e-05/0.3862, allocations: 7.984 kB / 0.7275 GB, free: 9.105 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.3862, allocations: 7.438 kB / 0.7275 GB, free: 9.098 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.3862, allocations: 0 / 0.7275 GB, free: 9.098 MB / 0.545 GB Notification: Performance of Templates: time 0.001665/0.3879, allocations: 316.7 kB / 0.7278 GB, free: 8.789 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (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)