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.001044/0.001044, 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.001159/0.001158, allocations: 191.2 kB / 16.25 MB, free: 6.641 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 275 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9697/0.9697, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 97.05 kB / 0.5947 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1515, allocations: 86.98 MB / 0.6796 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002676/0.1542, allocations: 1.561 MB / 0.6812 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.1546, allocations: 116.5 kB / 0.6813 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.1546, allocations: 7.938 kB / 0.6813 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.37e-05/0.1547, allocations: 3.938 kB / 0.6813 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.875e-05/0.1547, allocations: 0.7812 kB / 0.6813 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.1549, allocations: 25.69 kB / 0.6813 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.023e-05/0.155, allocations: 27.92 kB / 0.6813 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.503e-05/0.1551, allocations: 8 kB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.655e-05/0.1551, allocations: 20.8 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.1552, allocations: 15.97 kB / 0.6814 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.1552, allocations: 3.938 kB / 0.6814 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.987e-05/0.1553, allocations: 8.5 kB / 0.6814 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.1553, allocations: 9.141 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.1553, allocations: 11.94 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.209e-05/0.1554, allocations: 36.16 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1554, allocations: 0.9062 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1554, allocations: 0 / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.1554, allocations: 4.531 kB / 0.6814 GB, free: 15.19 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.0004382/0.1559, allocations: 343.5 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1559, allocations: 8.031 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.156, allocations: 4.844 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.1561, allocations: 176.3 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1561, allocations: 384 / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1561, allocations: 384 / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.1563, allocations: 54.23 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1563, allocations: 192 / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1563, allocations: 11.94 kB / 0.682 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1563, allocations: 0 / 0.682 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.1565, allocations: 39.95 kB / 0.6821 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003538/0.1569, allocations: 268.8 kB / 0.6823 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.1572, allocations: 62.47 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.141e-05/0.1573, allocations: 28.89 kB / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.1574, allocations: 81.11 kB / 0.6825 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.1574, allocations: 34.56 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1575, allocations: 0 / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003538/0.1578, allocations: 97.56 kB / 0.6826 GB, free: 13.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.1579, allocations: 51.41 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.395e-05/0.1579, allocations: 105.8 kB / 0.6828 GB, free: 13.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.158, allocations: 25.7 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.158, allocations: 84.08 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.158, allocations: 11.84 kB / 0.6829 GB, free: 13.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.1581, allocations: 13.72 kB / 0.6829 GB, free: 13.49 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1582, allocations: 322.8 kB / 0.6832 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.515e-05/0.1583, allocations: 15.98 kB / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.696e-05/0.1584, allocations: 27.91 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.1585, allocations: 40.83 kB / 0.6833 GB, free: 13.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1585, allocations: 3.938 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002114/0.1587, allocations: 81.58 kB / 0.6834 GB, free: 12.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1588, allocations: 6.344 kB / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1588, allocations: 0 / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1588, allocations: 4 kB / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.644e-05/0.1589, allocations: 7.984 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1589, allocations: 4 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.611e-05/0.1589, allocations: 8 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.159, allocations: 3.984 kB / 0.6834 GB, free: 12.96 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 7.117e-05/0.159, allocations: 111.1 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.1591, allocations: 11.91 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002486/0.1593, allocations: 89.06 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1593, allocations: 0 / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1593, allocations: 0 / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1593, allocations: 0.5625 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.1595, allocations: 165.6 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1595, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.267e-05/0.1596, allocations: 11.98 kB / 0.6838 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1596, allocations: 8 kB / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.1596, allocations: 0 / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1596, allocations: 0 / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1596, allocations: 4 kB / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.1599, allocations: 175.4 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.1599, allocations: 85.11 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1599, allocations: 4 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.16, allocations: 4 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.1601, allocations: 7.984 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.1601, allocations: 0 / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.495e-05/0.1601, allocations: 87.27 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.975e-06/0.1602, allocations: 0 / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.1604, allocations: 11.84 kB / 0.6841 GB, free: 12.09 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.0001313/0.1605, allocations: 99.25 kB / 0.6842 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.1608, allocations: 51.95 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1608, allocations: 0 / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.632e-05/0.1609, allocations: 31.91 kB / 0.6843 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.1611, allocations: 3.938 kB / 0.6843 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002929/0.1614, allocations: 126.1 kB / 0.6844 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1617, allocations: 0.6768 MB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.206e-05/0.1617, allocations: 7.938 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.1618, allocations: 11.44 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1618, allocations: 0 / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of Templates: time 0.002735/0.1645, allocations: 0.6427 MB / 0.6857 GB, free: 10.39 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)