Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7203/0.7203, allocations: 128.7 MB / 144.5 MB, free: 1.398 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 182.8 kB / 174.2 MB, free: 5.953 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205 MB / 408.9 MB, free: 9.703 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 101 kB / 485.1 MB, free: 13.59 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 60.48 kB / 0.558 GB, free: 97.56 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1685, allocations: 75.47 MB / 0.6317 GB, free: 33.06 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002736/0.1713, allocations: 1.567 MB / 0.6332 GB, free: 31.47 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004009/0.1717, allocations: 119.7 kB / 0.6333 GB, free: 31.36 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.064e-05/0.1718, allocations: 0 / 0.6333 GB, free: 31.36 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.1718, allocations: 0 / 0.6333 GB, free: 31.36 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 4.662e-05/0.1719, allocations: 7.938 kB / 0.6333 GB, free: 31.35 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.1721, allocations: 23.97 kB / 0.6334 GB, free: 31.32 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.1723, allocations: 31.86 kB / 0.6334 GB, free: 31.29 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1724, allocations: 12 kB / 0.6334 GB, free: 31.28 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.564e-05/0.1725, allocations: 15.92 kB / 0.6334 GB, free: 31.27 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.308e-05/0.1725, allocations: 11.92 kB / 0.6334 GB, free: 31.25 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1726, allocations: 7.984 kB / 0.6334 GB, free: 31.25 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.117e-05/0.1726, allocations: 8 kB / 0.6334 GB, free: 31.24 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.1727, allocations: 7.984 kB / 0.6334 GB, free: 31.23 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.1727, allocations: 7.938 kB / 0.6335 GB, free: 31.22 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1728, allocations: 31.89 kB / 0.6335 GB, free: 31.19 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1728, allocations: 0 / 0.6335 GB, free: 31.19 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1728, allocations: 4 kB / 0.6335 GB, free: 31.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1728, allocations: 0 / 0.6335 GB, free: 31.19 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004775/0.1733, allocations: 335.9 kB / 0.6338 GB, free: 30.81 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1734, allocations: 12.03 kB / 0.6338 GB, free: 30.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.1734, allocations: 4.844 kB / 0.6338 GB, free: 30.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1735, allocations: 176.3 kB / 0.634 GB, free: 30.58 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1735, allocations: 4.375 kB / 0.634 GB, free: 30.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.1736, allocations: 384 / 0.634 GB, free: 30.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.1738, allocations: 66.16 kB / 0.6341 GB, free: 30.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1738, allocations: 192 / 0.6341 GB, free: 30.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.1738, allocations: 7.938 kB / 0.6341 GB, free: 30.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-06/0.1738, allocations: 0 / 0.6341 GB, free: 30.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.174, allocations: 43.95 kB / 0.6341 GB, free: 30.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003398/0.1743, allocations: 260.9 kB / 0.6344 GB, free: 30.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.1746, allocations: 66.42 kB / 0.6344 GB, free: 30.08 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.98e-05/0.1747, allocations: 28.89 kB / 0.6344 GB, free: 30.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.1749, allocations: 81.11 kB / 0.6345 GB, free: 29.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.1749, allocations: 30.56 kB / 0.6346 GB, free: 29.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.1749, allocations: 0 / 0.6346 GB, free: 29.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003559/0.1753, allocations: 97.62 kB / 0.6346 GB, free: 29.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1753, allocations: 55.34 kB / 0.6347 GB, free: 29.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.51e-05/0.1754, allocations: 105.8 kB / 0.6348 GB, free: 29.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.1754, allocations: 25.7 kB / 0.6348 GB, free: 29.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.485e-05/0.1754, allocations: 84.08 kB / 0.6349 GB, free: 29.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.1754, allocations: 7.906 kB / 0.6349 GB, free: 29.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.1755, allocations: 17.72 kB / 0.6349 GB, free: 29.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.468e-05/0.1755, allocations: 318.8 kB / 0.6352 GB, free: 29.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.378e-05/0.1756, allocations: 15.98 kB / 0.6353 GB, free: 29.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.395e-05/0.1757, allocations: 23.97 kB / 0.6353 GB, free: 29.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.1759, allocations: 40.83 kB / 0.6353 GB, free: 29.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1759, allocations: 3.938 kB / 0.6353 GB, free: 29.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001854/0.1761, allocations: 78.16 kB / 0.6354 GB, free: 28.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1761, allocations: 11.88 kB / 0.6354 GB, free: 28.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1761, allocations: 0 / 0.6354 GB, free: 28.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1761, allocations: 0 / 0.6354 GB, free: 28.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1763, allocations: 11.98 kB / 0.6354 GB, free: 28.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1763, allocations: 0 / 0.6354 GB, free: 28.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.515e-05/0.1763, allocations: 8 kB / 0.6354 GB, free: 28.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.1763, allocations: 4 kB / 0.6354 GB, free: 28.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.505e-05/0.1764, allocations: 117.8 kB / 0.6355 GB, free: 28.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.1764, allocations: 11.89 kB / 0.6355 GB, free: 28.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002329/0.1767, allocations: 81.14 kB / 0.6356 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1767, allocations: 0 / 0.6356 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1767, allocations: 0 / 0.6356 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.1767, allocations: 0 / 0.6356 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.1768, allocations: 169.5 kB / 0.6358 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1768, allocations: 7.938 kB / 0.6358 GB, free: 28.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.564e-05/0.1769, allocations: 11.98 kB / 0.6358 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1769, allocations: 0 / 0.6358 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1769, allocations: 0 / 0.6358 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1769, allocations: 0 / 0.6358 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1769, allocations: 0 / 0.6358 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004232/0.1774, allocations: 0.7396 MB / 0.6365 GB, free: 27.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.968e-05/0.1774, allocations: 85.02 kB / 0.6366 GB, free: 27.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.1774, allocations: 0 / 0.6366 GB, free: 27.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.575e-05/0.1775, allocations: 4 kB / 0.6366 GB, free: 27.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.1776, allocations: 11.92 kB / 0.6366 GB, free: 27.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.1776, allocations: 4 kB / 0.6366 GB, free: 27.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.489e-05/0.1776, allocations: 91.2 kB / 0.6367 GB, free: 27.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1776, allocations: 4 kB / 0.6367 GB, free: 27.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003049/0.1779, allocations: 4 kB / 0.6367 GB, free: 27.48 MB / 442.7 MB 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001523/0.1781, allocations: 99.25 kB / 0.6368 GB, free: 27.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00022/0.1783, allocations: 51.89 kB / 0.6369 GB, free: 27.33 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1783, allocations: 0 / 0.6369 GB, free: 27.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 8.986e-05/0.1784, allocations: 27.97 kB / 0.6369 GB, free: 27.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.1787, allocations: 8.312 kB / 0.6369 GB, free: 27.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003621/0.1791, allocations: 214.3 kB / 0.6371 GB, free: 27.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.1793, allocations: 0.6809 MB / 0.6378 GB, free: 26.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 2.982e-05/0.1793, allocations: 4 kB / 0.6378 GB, free: 26.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/0.1793, allocations: 11.44 kB / 0.6378 GB, free: 26.32 MB / 442.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1793, allocations: 0 / 0.6378 GB, free: 26.32 MB / 442.7 MB Notification: Performance of Templates: time 0.002839/0.1822, allocations: 0.6458 MB / 0.6384 GB, free: 25.68 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)