Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001529/0.001529, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001717/0.001717, allocations: 192.3 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 286.9 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9645/0.9645, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 95.3 kB / 0.5947 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1714, allocations: 86.99 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001745/0.1731, allocations: 0.6389 MB / 0.6803 GB, free: 440 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002352/0.1734, allocations: 43.86 kB / 0.6803 GB, free: 396 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.07e-05/0.1734, allocations: 0 / 0.6803 GB, free: 396 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.1734, allocations: 0 / 0.6803 GB, free: 396 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.1734, allocations: 0 / 0.6803 GB, free: 396 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.1737, allocations: 11.92 kB / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 3.454e-05/0.1737, allocations: 8 kB / 0.6803 GB, free: 376 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.1738, allocations: 4 kB / 0.6803 GB, free: 372 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.1738, allocations: 0 / 0.6803 GB, free: 372 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.213e-05/0.1738, allocations: 3.984 kB / 0.6803 GB, free: 368 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.237e-06/0.1738, allocations: 0 / 0.6803 GB, free: 368 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.001e-05/0.1739, allocations: 8 kB / 0.6803 GB, free: 360 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.174, allocations: 7.984 kB / 0.6803 GB, free: 352 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.138e-05/0.174, allocations: 4 kB / 0.6804 GB, free: 348 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.158e-05/0.1741, allocations: 7.938 kB / 0.6804 GB, free: 340 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1741, allocations: 3.938 kB / 0.6804 GB, free: 336 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1741, allocations: 0 / 0.6804 GB, free: 336 kB / 478.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1741, allocations: 4 kB / 0.6804 GB, free: 332 kB / 478.1 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.0003097/0.1744, allocations: 315.6 kB / 0.6807 GB, free: 15.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1745, allocations: 12.03 kB / 0.6807 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.1745, allocations: 4.938 kB / 0.6807 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.1747, allocations: 168.4 kB / 0.6808 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.1747, allocations: 4.312 kB / 0.6808 GB, free: 15.74 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1747, allocations: 384 / 0.6808 GB, free: 15.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.65e-05/0.1748, allocations: 38.25 kB / 0.6809 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1748, allocations: 4.188 kB / 0.6809 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-06/0.1748, allocations: 3.938 kB / 0.6809 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1748, allocations: 0 / 0.6809 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.062e-05/0.1749, allocations: 4 kB / 0.6809 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.175, allocations: 157.6 kB / 0.681 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.525e-05/0.1751, allocations: 22.58 kB / 0.6811 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.568e-05/0.1751, allocations: 4.859 kB / 0.6811 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.1753, allocations: 85.16 kB / 0.6812 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.1753, allocations: 34.56 kB / 0.6812 GB, free: 15.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1753, allocations: 0 / 0.6812 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001305/0.1754, allocations: 49.58 kB / 0.6812 GB, free: 15.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.1755, allocations: 51.41 kB / 0.6813 GB, free: 15.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.343e-05/0.1755, allocations: 89.86 kB / 0.6814 GB, free: 15.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.1755, allocations: 25.7 kB / 0.6814 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.045e-05/0.1756, allocations: 88.12 kB / 0.6815 GB, free: 14.96 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.1756, allocations: 12.25 kB / 0.6815 GB, free: 14.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.1756, allocations: 13.72 kB / 0.6815 GB, free: 14.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1758, allocations: 310.8 kB / 0.6818 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.1758, allocations: 4 kB / 0.6818 GB, free: 14.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-06/0.1758, allocations: 4 kB / 0.6818 GB, free: 14.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.913e-05/0.1758, allocations: 12.8 kB / 0.6818 GB, free: 14.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1758, allocations: 4 kB / 0.6818 GB, free: 14.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.884e-05/0.1759, allocations: 49.69 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1759, allocations: 6.344 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1759, allocations: 0 / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1759, allocations: 3.938 kB / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.188e-05/0.176, allocations: 4 kB / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.176, allocations: 0 / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.206e-05/0.176, allocations: 0 / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.176, allocations: 3.984 kB / 0.6819 GB, free: 14.52 MB / 494.1 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 6.928e-05/0.1761, allocations: 111.2 kB / 0.682 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-06/0.1761, allocations: 4.031 kB / 0.682 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.33e-05/0.1762, allocations: 48.75 kB / 0.682 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1762, allocations: 0 / 0.682 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1762, allocations: 3.938 kB / 0.682 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1762, allocations: 0 / 0.682 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1764, allocations: 149.7 kB / 0.6822 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1764, allocations: 0 / 0.6822 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.157e-05/0.1764, allocations: 3.984 kB / 0.6822 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.1764, allocations: 3.938 kB / 0.6822 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1764, allocations: 7.938 kB / 0.6822 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1764, allocations: 4.031 kB / 0.6822 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1764, allocations: 4 kB / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.003e-05/0.1765, allocations: 61.12 kB / 0.6823 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.1766, allocations: 77.11 kB / 0.6823 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.1766, allocations: 3.938 kB / 0.6823 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.1766, allocations: 4 kB / 0.6824 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.1766, allocations: 0 / 0.6824 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1766, allocations: 4.031 kB / 0.6824 GB, free: 13.94 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.367e-05/0.1767, allocations: 75.28 kB / 0.6824 GB, free: 13.87 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.1767, allocations: 0 / 0.6824 GB, free: 13.87 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001763/0.1768, allocations: 7.938 kB / 0.6824 GB, free: 13.86 MB / 494.1 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.0001438/0.177, allocations: 107.2 kB / 0.6825 GB, free: 13.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.1772, allocations: 11.94 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1772, allocations: 0 / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.315e-05/0.1772, allocations: 4.062 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1773, allocations: 8.062 kB / 0.6826 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000161/0.1775, allocations: 85.06 kB / 0.6826 GB, free: 13.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.1778, allocations: 0.669 MB / 0.6833 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.442e-05/0.1778, allocations: 7.938 kB / 0.6833 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.1778, allocations: 7.438 kB / 0.6833 GB, free: 12.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1778, allocations: 0 / 0.6833 GB, free: 12.9 MB / 494.1 MB Notification: Performance of Templates: time 0.002192/0.18, allocations: 330.6 kB / 0.6836 GB, free: 12.58 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)