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.004765/0.004765, allocations: 103.7 kB / 15.73 MB, free: 6.039 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.001056/0.001056, allocations: 194 kB / 16.67 MB, free: 5.969 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.19/1.19, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.404/1.404, allocations: 251.7 MB / 0.5094 GB, free: 3.047 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.001309/0.001309, allocations: 70.09 kB / 0.7258 GB, free: 8.992 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1731, allocations: 104.7 MB / 0.8281 GB, free: 184 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001574/0.1747, allocations: 0.5826 MB / 0.8287 GB, free: 15.6 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000238/0.175, allocations: 55.78 kB / 0.8287 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.415e-05/0.175, allocations: 0 / 0.8287 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.175, allocations: 0 / 0.8287 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.175, allocations: 0 / 0.8287 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.1752, allocations: 8 kB / 0.8287 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 4.433e-05/0.1753, allocations: 11.92 kB / 0.8287 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.1753, allocations: 7.938 kB / 0.8287 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.325e-05/0.1754, allocations: 4 kB / 0.8287 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 1.757e-05/0.1754, allocations: 0 / 0.8287 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.1754, allocations: 0 / 0.8287 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.49e-05/0.1755, allocations: 8 kB / 0.8287 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.167e-05/0.1755, allocations: 7.969 kB / 0.8287 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.1755, allocations: 4 kB / 0.8288 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 7.148e-05/0.1756, allocations: 7.938 kB / 0.8288 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1756, allocations: 4 kB / 0.8288 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1756, allocations: 0 / 0.8288 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.1756, allocations: 0 / 0.8288 GB, free: 15.48 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.0002614/0.1759, allocations: 323.6 kB / 0.8291 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1759, allocations: 8.031 kB / 0.8291 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.176, allocations: 4.844 kB / 0.8291 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.726e-05/0.176, allocations: 160.4 kB / 0.8292 GB, free: 14.91 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.1761, allocations: 4.375 kB / 0.8292 GB, free: 14.91 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.1761, allocations: 384 / 0.8292 GB, free: 14.91 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.297e-05/0.1762, allocations: 34.25 kB / 0.8293 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1762, allocations: 192 / 0.8293 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1762, allocations: 7.938 kB / 0.8293 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1762, allocations: 0 / 0.8293 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.182e-05/0.1762, allocations: 7.938 kB / 0.8293 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.1763, allocations: 153.6 kB / 0.8294 GB, free: 14.65 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.532e-05/0.1764, allocations: 22.61 kB / 0.8295 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.1764, allocations: 9.266 kB / 0.8295 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.1766, allocations: 85.09 kB / 0.8295 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.1766, allocations: 34.56 kB / 0.8296 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1766, allocations: 0 / 0.8296 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.0001263/0.1767, allocations: 45.58 kB / 0.8296 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.1768, allocations: 51.41 kB / 0.8297 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.32e-05/0.1768, allocations: 93.86 kB / 0.8298 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.1768, allocations: 29.69 kB / 0.8298 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.914e-05/0.1769, allocations: 80.14 kB / 0.8299 GB, free: 14.13 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.1769, allocations: 3.938 kB / 0.8299 GB, free: 14.13 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.1769, allocations: 21.84 kB / 0.8299 GB, free: 14.1 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.335e-05/0.177, allocations: 310.8 kB / 0.8302 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.177, allocations: 0 / 0.8302 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.315e-06/0.177, allocations: 4 kB / 0.8302 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.319e-05/0.1771, allocations: 20.84 kB / 0.8302 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1771, allocations: 3.938 kB / 0.8302 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.435e-05/0.1771, allocations: 37.64 kB / 0.8303 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.1772, allocations: 4.094 kB / 0.8303 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1772, allocations: 8 kB / 0.8303 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1772, allocations: 3.938 kB / 0.8303 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.734e-05/0.1772, allocations: 0 / 0.8303 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.1772, allocations: 4 kB / 0.8303 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.373e-05/0.1773, allocations: 3.984 kB / 0.8303 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.1773, allocations: 0 / 0.8303 GB, free: 13.69 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.698e-05/0.1773, allocations: 109.8 kB / 0.8304 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-06/0.1773, allocations: 3.906 kB / 0.8304 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.1774, allocations: 60.67 kB / 0.8304 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1774, allocations: 0 / 0.8304 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.1775, allocations: 4 kB / 0.8304 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1775, allocations: 4 kB / 0.8305 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.578e-05/0.1775, allocations: 141.7 kB / 0.8306 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1775, allocations: 0 / 0.8306 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.285e-05/0.1776, allocations: 7.984 kB / 0.8306 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1776, allocations: 0 / 0.8306 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.1776, allocations: 3.938 kB / 0.8306 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1776, allocations: 0 / 0.8306 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1776, allocations: 4.031 kB / 0.8306 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.314e-05/0.1777, allocations: 65.12 kB / 0.8307 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.812e-05/0.1777, allocations: 77.11 kB / 0.8307 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1777, allocations: 3.938 kB / 0.8307 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.1777, allocations: 7.938 kB / 0.8307 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/0.1778, allocations: 4 kB / 0.8308 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.1778, allocations: 0 / 0.8308 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.226e-05/0.1778, allocations: 79.31 kB / 0.8308 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1778, allocations: 0 / 0.8308 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001775/0.178, allocations: 4 kB / 0.8308 GB, free: 13.02 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.0001246/0.1781, allocations: 107.2 kB / 0.8309 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 6.903e-05/0.1782, allocations: 8 kB / 0.8309 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1782, allocations: 3.938 kB / 0.8309 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.913e-05/0.1782, allocations: 8 kB / 0.831 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1783, allocations: 4.062 kB / 0.831 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001695/0.1785, allocations: 93 kB / 0.831 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.1787, allocations: 0.6766 MB / 0.8317 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 1.068e-05/0.1787, allocations: 0 / 0.8317 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.317e-05/0.1787, allocations: 11.44 kB / 0.8317 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of SimCode: time 1.8e-07/0.1788, allocations: 0 / 0.8317 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of Templates: time 0.001927/0.1807, allocations: 323.6 kB / 0.832 GB, free: 11.73 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)