Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001274/0.001274, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.289/1.289, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002094, allocations: 292.1 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9193/0.9193, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 96.14 kB / 0.5945 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1543, allocations: 86.99 MB / 0.6794 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002408/0.1568, allocations: 1.567 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000334/0.1571, allocations: 122.5 kB / 0.6811 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.1572, allocations: 4 kB / 0.6811 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/0.1572, allocations: 0 / 0.6811 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.652e-05/0.1573, allocations: 0 / 0.6811 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.1574, allocations: 24.55 kB / 0.6811 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.236e-05/0.1575, allocations: 23.98 kB / 0.6811 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.423e-05/0.1576, allocations: 9.719 kB / 0.6811 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.75e-05/0.1576, allocations: 15.91 kB / 0.6812 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.993e-05/0.1577, allocations: 15.92 kB / 0.6812 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.1577, allocations: 4.875 kB / 0.6812 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.575e-05/0.1577, allocations: 8 kB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.1578, allocations: 12.64 kB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.1578, allocations: 7.938 kB / 0.6812 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.951e-05/0.1579, allocations: 33.48 kB / 0.6812 GB, free: 15.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1579, allocations: 4 kB / 0.6812 GB, free: 15.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1579, allocations: 3.984 kB / 0.6812 GB, free: 15.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.1579, allocations: 0 / 0.6812 GB, free: 15.33 MB / 494.1 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.0004157/0.1583, allocations: 340.9 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.1584, allocations: 12.03 kB / 0.6816 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.1584, allocations: 4.844 kB / 0.6816 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1585, allocations: 164.4 kB / 0.6817 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1585, allocations: 384 / 0.6817 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.1585, allocations: 4.375 kB / 0.6817 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.1587, allocations: 62.16 kB / 0.6818 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1587, allocations: 192 / 0.6818 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1588, allocations: 3.938 kB / 0.6818 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1588, allocations: 7.984 kB / 0.6818 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.159, allocations: 47.89 kB / 0.6819 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000336/0.1593, allocations: 256.9 kB / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1596, allocations: 62.47 kB / 0.6822 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.875e-05/0.1598, allocations: 32.89 kB / 0.6822 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.1599, allocations: 85.05 kB / 0.6823 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.1599, allocations: 34.5 kB / 0.6823 GB, free: 14.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1599, allocations: 0 / 0.6823 GB, free: 14.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003608/0.1603, allocations: 93.62 kB / 0.6824 GB, free: 13.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.1603, allocations: 51.41 kB / 0.6825 GB, free: 13.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.1604, allocations: 105.9 kB / 0.6826 GB, free: 13.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.1604, allocations: 29.69 kB / 0.6826 GB, free: 13.75 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.696e-05/0.1604, allocations: 84.08 kB / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.1605, allocations: 11.89 kB / 0.6827 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.1605, allocations: 13.72 kB / 0.6827 GB, free: 13.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.818e-05/0.1606, allocations: 318.8 kB / 0.683 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-05/0.1607, allocations: 15.98 kB / 0.683 GB, free: 13.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.92e-05/0.1608, allocations: 23.98 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.1609, allocations: 44.75 kB / 0.6831 GB, free: 13.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.161, allocations: 7.938 kB / 0.6831 GB, free: 13.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002062/0.1612, allocations: 69.66 kB / 0.6831 GB, free: 13.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.1612, allocations: 4 kB / 0.6831 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1612, allocations: 7.984 kB / 0.6832 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.1612, allocations: 4 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.667e-05/0.1613, allocations: 8 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1613, allocations: 3.984 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.51e-05/0.1614, allocations: 4 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.1614, allocations: 0 / 0.6832 GB, free: 13.11 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 (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.755e-05/0.1614, allocations: 115.1 kB / 0.6833 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/0.1615, allocations: 15.83 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002495/0.1617, allocations: 85.64 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1617, allocations: 0 / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1618, allocations: 0 / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1618, allocations: 4 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1619, allocations: 165.6 kB / 0.6835 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1619, allocations: 0 / 0.6835 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-05/0.162, allocations: 12.05 kB / 0.6836 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.162, allocations: 7.969 kB / 0.6836 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.162, allocations: 0 / 0.6836 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.162, allocations: 15.88 kB / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.162, allocations: 0 / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.1623, allocations: 167.4 kB / 0.6837 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.744e-05/0.1623, allocations: 81.11 kB / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.1623, allocations: 3.984 kB / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.1624, allocations: 4 kB / 0.6838 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.1625, allocations: 15.98 kB / 0.6838 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1625, allocations: 0 / 0.6838 GB, free: 12.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.1625, allocations: 79.28 kB / 0.6839 GB, free: 12.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1625, allocations: 0 / 0.6839 GB, free: 12.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.1628, allocations: 15.91 kB / 0.6839 GB, free: 12.23 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.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.0001387/0.1629, allocations: 99.23 kB / 0.684 GB, free: 12.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.1631, allocations: 51.89 kB / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1631, allocations: 0 / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.751e-05/0.1633, allocations: 27.97 kB / 0.6841 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1635, allocations: 9.828 kB / 0.6841 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002677/0.1638, allocations: 115.8 kB / 0.6842 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.164, allocations: 0.6809 MB / 0.6849 GB, free: 11.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.133e-05/0.164, allocations: 7.938 kB / 0.6849 GB, free: 11.19 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.452e-05/0.1641, allocations: 7.438 kB / 0.6849 GB, free: 11.18 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1641, allocations: 0 / 0.6849 GB, free: 11.18 MB / 494.1 MB Notification: Performance of Templates: time 0.002389/0.1665, allocations: 0.6172 MB / 0.6855 GB, free: 10.56 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)