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.004741/0.004742, allocations: 106.8 kB / 15.74 MB, free: 6.051 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.001138/0.001138, allocations: 197 kB / 16.68 MB, free: 5.98 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.23/1.23, allocations: 205.1 MB / 222.6 MB, free: 4.391 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.7 MB / 0.5094 GB, free: 2.953 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.001364/0.001364, allocations: 69.92 kB / 0.7258 GB, free: 8.953 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1814, allocations: 104.7 MB / 0.8281 GB, free: 144 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001375/0.1828, allocations: 0.578 MB / 0.8286 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002209/0.183, allocations: 59.78 kB / 0.8287 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.337e-05/0.183, allocations: 0 / 0.8287 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.092e-05/0.183, allocations: 0 / 0.8287 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.1831, allocations: 0 / 0.8287 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.1832, allocations: 7.984 kB / 0.8287 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 4.317e-05/0.1833, allocations: 7.938 kB / 0.8287 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.602e-05/0.1834, allocations: 7.938 kB / 0.8287 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.092e-05/0.1834, allocations: 0 / 0.8287 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 1.989e-05/0.1834, allocations: 8 kB / 0.8287 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.444e-06/0.1834, allocations: 3.938 kB / 0.8287 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.1835, allocations: 7.984 kB / 0.8287 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.1835, allocations: 7.984 kB / 0.8287 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 1.42e-05/0.1835, allocations: 0 / 0.8287 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 7.042e-05/0.1836, allocations: 11.92 kB / 0.8288 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1836, allocations: 0 / 0.8288 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1836, allocations: 0 / 0.8288 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.1836, allocations: 0 / 0.8288 GB, free: 15.45 MB / 0.6544 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.0002577/0.1839, allocations: 323.6 kB / 0.8291 GB, free: 15.08 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.1839, allocations: 8.031 kB / 0.8291 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.1839, allocations: 8.828 kB / 0.8291 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.945e-05/0.184, allocations: 160.4 kB / 0.8292 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-06/0.184, allocations: 4.359 kB / 0.8292 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.184, allocations: 4.375 kB / 0.8292 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.993e-05/0.1841, allocations: 26.27 kB / 0.8293 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.1841, allocations: 192 / 0.8293 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1842, allocations: 7.938 kB / 0.8293 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.1842, allocations: 4 kB / 0.8293 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.869e-05/0.1842, allocations: 11.92 kB / 0.8293 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.1843, allocations: 149.6 kB / 0.8294 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.356e-05/0.1844, allocations: 22.61 kB / 0.8295 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.739e-05/0.1844, allocations: 13.25 kB / 0.8295 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.1845, allocations: 81.11 kB / 0.8295 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.1846, allocations: 34.56 kB / 0.8296 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1846, allocations: 0 / 0.8296 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.0001182/0.1847, allocations: 49.56 kB / 0.8296 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.1847, allocations: 51.41 kB / 0.8297 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.476e-05/0.1848, allocations: 89.86 kB / 0.8298 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.1848, allocations: 25.7 kB / 0.8298 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.05e-05/0.1848, allocations: 84.14 kB / 0.8299 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.1848, allocations: 0 / 0.8299 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.1848, allocations: 17.84 kB / 0.8299 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.358e-05/0.1849, allocations: 318.8 kB / 0.8302 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-06/0.1849, allocations: 0 / 0.8302 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-06/0.185, allocations: 4 kB / 0.8302 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.794e-05/0.185, allocations: 16.86 kB / 0.8302 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.185, allocations: 0 / 0.8302 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.178e-05/0.1851, allocations: 37.64 kB / 0.8302 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.1851, allocations: 11.92 kB / 0.8303 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.1851, allocations: 4.094 kB / 0.8303 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1851, allocations: 3.938 kB / 0.8303 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.43e-05/0.1852, allocations: 4 kB / 0.8303 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.1852, allocations: 3.938 kB / 0.8303 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.1852, allocations: 8 kB / 0.8303 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-06/0.1852, allocations: 0 / 0.8303 GB, free: 13.65 MB / 0.6544 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.62e-05/0.1853, allocations: 105.8 kB / 0.8304 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.617e-06/0.1853, allocations: 3.906 kB / 0.8304 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.53e-05/0.1853, allocations: 56.69 kB / 0.8304 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1854, allocations: 0 / 0.8304 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.1854, allocations: 0 / 0.8304 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.1854, allocations: 0 / 0.8304 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.729e-05/0.1854, allocations: 153.7 kB / 0.8306 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1855, allocations: 0 / 0.8306 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.082e-05/0.1855, allocations: 4 kB / 0.8306 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1855, allocations: 0 / 0.8306 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.1855, allocations: 7.938 kB / 0.8306 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1855, allocations: 0 / 0.8306 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1855, allocations: 0 / 0.8306 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.223e-05/0.1856, allocations: 69.16 kB / 0.8307 GB, free: 13.17 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.596e-05/0.1856, allocations: 77.11 kB / 0.8307 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1856, allocations: 7.938 kB / 0.8307 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-06/0.1856, allocations: 3.938 kB / 0.8307 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.1857, allocations: 3.984 kB / 0.8308 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1857, allocations: 4 kB / 0.8308 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.039e-05/0.1857, allocations: 75.28 kB / 0.8308 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1857, allocations: 4.031 kB / 0.8308 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001795/0.1859, allocations: 4 kB / 0.8308 GB, free: 12.97 MB / 0.6544 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.0001166/0.186, allocations: 99.25 kB / 0.8309 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 7.158e-05/0.1861, allocations: 12 kB / 0.8309 GB, free: 12.85 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1861, allocations: 0 / 0.8309 GB, free: 12.85 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.564e-05/0.1861, allocations: 7.984 kB / 0.8309 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.1862, allocations: 3.938 kB / 0.831 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001587/0.1864, allocations: 89.14 kB / 0.831 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.1866, allocations: 0.6805 MB / 0.8317 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 1.19e-05/0.1866, allocations: 0 / 0.8317 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.257e-05/0.1866, allocations: 7.438 kB / 0.8317 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.1866, allocations: 0 / 0.8317 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of Templates: time 0.001819/0.1885, allocations: 324.5 kB / 0.832 GB, free: 11.7 MB / 0.6544 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)