Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7317/0.7317, allocations: 128.7 MB / 144.5 MB, free: 1.375 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.001071/0.001071, allocations: 178.9 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.52/1.52, allocations: 205 MB / 408.9 MB, free: 9.738 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.001038/0.001038, allocations: 98.23 kB / 485.1 MB, free: 13.6 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 56.83 kB / 0.558 GB, free: 97.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1591, allocations: 75.47 MB / 0.6317 GB, free: 33.08 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001803/0.1609, allocations: 0.6371 MB / 0.6323 GB, free: 32.44 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003139/0.1613, allocations: 53.11 kB / 0.6324 GB, free: 32.39 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.244e-05/0.1613, allocations: 4 kB / 0.6324 GB, free: 32.38 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 2.057e-05/0.1613, allocations: 7.938 kB / 0.6324 GB, free: 32.38 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.1613, allocations: 0 / 0.6324 GB, free: 32.38 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002181/0.1616, allocations: 7.984 kB / 0.6324 GB, free: 32.37 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 5.229e-05/0.1616, allocations: 7.984 kB / 0.6324 GB, free: 32.36 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.1617, allocations: 0 / 0.6324 GB, free: 32.36 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.1617, allocations: 4 kB / 0.6324 GB, free: 32.36 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.051e-05/0.1617, allocations: 4 kB / 0.6324 GB, free: 32.35 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.1618, allocations: 0 / 0.6324 GB, free: 32.35 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.408e-05/0.1618, allocations: 8 kB / 0.6324 GB, free: 32.34 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.1619, allocations: 3.984 kB / 0.6324 GB, free: 32.34 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.1619, allocations: 4 kB / 0.6324 GB, free: 32.34 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 9.318e-05/0.162, allocations: 15.92 kB / 0.6324 GB, free: 32.32 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.162, allocations: 0 / 0.6324 GB, free: 32.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.162, allocations: 0 / 0.6324 GB, free: 32.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.162, allocations: 4 kB / 0.6324 GB, free: 32.32 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002838/0.1623, allocations: 311.6 kB / 0.6327 GB, free: 31.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1624, allocations: 8.031 kB / 0.6327 GB, free: 31.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.1624, allocations: 0.9375 kB / 0.6327 GB, free: 31.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.399e-05/0.1625, allocations: 164.4 kB / 0.6329 GB, free: 31.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1625, allocations: 8.312 kB / 0.6329 GB, free: 31.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.1625, allocations: 4.375 kB / 0.6329 GB, free: 31.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.229e-05/0.1626, allocations: 30.25 kB / 0.6329 GB, free: 31.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1626, allocations: 4.188 kB / 0.6329 GB, free: 31.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.1626, allocations: 3.938 kB / 0.6329 GB, free: 31.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1627, allocations: 3.984 kB / 0.6329 GB, free: 31.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.1627, allocations: 4 kB / 0.6329 GB, free: 31.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000122/0.1628, allocations: 149.7 kB / 0.6331 GB, free: 31.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.328e-05/0.1629, allocations: 26.55 kB / 0.6331 GB, free: 31.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.728e-05/0.1629, allocations: 12.92 kB / 0.6331 GB, free: 31.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001517/0.1631, allocations: 85.09 kB / 0.6332 GB, free: 31.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.1631, allocations: 30.56 kB / 0.6332 GB, free: 31.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1631, allocations: 0 / 0.6332 GB, free: 31.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001294/0.1632, allocations: 41.64 kB / 0.6333 GB, free: 31.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.1632, allocations: 51.41 kB / 0.6333 GB, free: 31.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.13e-05/0.1633, allocations: 93.98 kB / 0.6334 GB, free: 31.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.344e-06/0.1633, allocations: 29.69 kB / 0.6334 GB, free: 31.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.218e-05/0.1633, allocations: 84.14 kB / 0.6335 GB, free: 30.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.1633, allocations: 3.906 kB / 0.6335 GB, free: 30.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.1634, allocations: 21.66 kB / 0.6335 GB, free: 30.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.5e-05/0.1634, allocations: 310.8 kB / 0.6338 GB, free: 30.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1634, allocations: 3.938 kB / 0.6338 GB, free: 30.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.1634, allocations: 4 kB / 0.6339 GB, free: 30.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.548e-05/0.1635, allocations: 20.86 kB / 0.6339 GB, free: 30.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1635, allocations: 3.984 kB / 0.6339 GB, free: 30.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.583e-05/0.1635, allocations: 33.7 kB / 0.6339 GB, free: 30.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.1635, allocations: 6.188 kB / 0.6339 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.1636, allocations: 0 / 0.6339 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1636, allocations: 7.938 kB / 0.6339 GB, free: 30.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.014e-05/0.1636, allocations: 4 kB / 0.6339 GB, free: 30.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1636, allocations: 0 / 0.6339 GB, free: 30.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.1637, allocations: 11.94 kB / 0.6339 GB, free: 30.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-06/0.1637, allocations: 8.016 kB / 0.6339 GB, free: 30.52 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 (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 4.972e-05/0.1637, allocations: 109.8 kB / 0.634 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-06/0.1637, allocations: 0 / 0.634 GB, free: 30.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.546e-05/0.1638, allocations: 48.75 kB / 0.6341 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1638, allocations: 0 / 0.6341 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1638, allocations: 0 / 0.6341 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1638, allocations: 0 / 0.6341 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.028e-05/0.1639, allocations: 145.7 kB / 0.6342 GB, free: 30.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1639, allocations: 4.031 kB / 0.6342 GB, free: 30.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.992e-05/0.1639, allocations: 7.984 kB / 0.6342 GB, free: 30.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1639, allocations: 0 / 0.6342 GB, free: 30.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.1639, allocations: 3.938 kB / 0.6342 GB, free: 30.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.164, allocations: 0 / 0.6342 GB, free: 30.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.164, allocations: 0 / 0.6342 GB, free: 30.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.1641, allocations: 0.6161 MB / 0.6349 GB, free: 29.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.601e-05/0.1642, allocations: 77.11 kB / 0.6349 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.1642, allocations: 3.984 kB / 0.6349 GB, free: 29.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.1642, allocations: 0 / 0.6349 GB, free: 29.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.474e-05/0.1642, allocations: 4 kB / 0.6349 GB, free: 29.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.1642, allocations: 0 / 0.6349 GB, free: 29.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 1.485e-05/0.1643, allocations: 75.28 kB / 0.635 GB, free: 29.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1643, allocations: 0 / 0.635 GB, free: 29.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002644/0.1645, allocations: 7.938 kB / 0.635 GB, free: 29.29 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,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.0001324/0.1647, allocations: 107.2 kB / 0.6351 GB, free: 29.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 6.218e-05/0.1647, allocations: 11.98 kB / 0.6351 GB, free: 29.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.1647, allocations: 0 / 0.6351 GB, free: 29.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.947e-05/0.1648, allocations: 4 kB / 0.6351 GB, free: 29.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1649, allocations: 3.938 kB / 0.6351 GB, free: 29.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001755/0.1651, allocations: 190.9 kB / 0.6353 GB, free: 28.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.603e-05/0.1652, allocations: 0.6733 MB / 0.636 GB, free: 28.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.401e-05/0.1652, allocations: 7.984 kB / 0.636 GB, free: 28.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.138e-05/0.1652, allocations: 15.42 kB / 0.636 GB, free: 28.2 MB / 442.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1652, allocations: 3.938 kB / 0.636 GB, free: 28.2 MB / 442.7 MB Notification: Performance of Templates: time 0.001851/0.1671, allocations: 321.2 kB / 0.6363 GB, free: 27.89 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)