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.001029/0.001029, allocations: 113.7 kB / 16.37 MB, free: 6.012 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.001192/0.001191, allocations: 188.9 kB / 17.3 MB, free: 5.613 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.247/1.247, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 291.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8928/0.8928, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 102.9 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1543, allocations: 86.98 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002444/0.1568, allocations: 1.507 MB / 0.6831 GB, free: 5.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002982/0.1571, allocations: 120.5 kB / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.041e-05/0.1571, allocations: 0 / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.398e-05/0.1572, allocations: 7.938 kB / 0.6832 GB, free: 5.801 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.941e-05/0.1572, allocations: 3.938 kB / 0.6832 GB, free: 5.797 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.1574, allocations: 11.98 kB / 0.6832 GB, free: 5.785 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.066e-05/0.1575, allocations: 31.92 kB / 0.6832 GB, free: 5.754 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1576, allocations: 15.97 kB / 0.6833 GB, free: 5.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.254e-05/0.1577, allocations: 15.94 kB / 0.6833 GB, free: 5.723 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.697e-05/0.1577, allocations: 15.92 kB / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.1577, allocations: 0 / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.1578, allocations: 15.98 kB / 0.6833 GB, free: 5.691 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.1578, allocations: 4 kB / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.1579, allocations: 19.91 kB / 0.6833 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.158, allocations: 31.91 kB / 0.6834 GB, free: 5.637 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.158, allocations: 0 / 0.6834 GB, free: 5.637 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.158, allocations: 4 kB / 0.6834 GB, free: 5.633 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.158, allocations: 0 / 0.6834 GB, free: 5.633 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.0004286/0.1584, allocations: 347.5 kB / 0.6837 GB, free: 5.242 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.1585, allocations: 8.031 kB / 0.6837 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.1585, allocations: 4.844 kB / 0.6837 GB, free: 5.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.1586, allocations: 168.3 kB / 0.6839 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.1587, allocations: 384 / 0.6839 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.1587, allocations: 4.375 kB / 0.6839 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.1589, allocations: 62.22 kB / 0.6839 GB, free: 4.957 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1589, allocations: 4.188 kB / 0.6839 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.1589, allocations: 3.938 kB / 0.6839 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1589, allocations: 0 / 0.6839 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.1591, allocations: 43.95 kB / 0.684 GB, free: 4.906 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003255/0.1594, allocations: 260.9 kB / 0.6842 GB, free: 4.602 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.1598, allocations: 70.41 kB / 0.6843 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.738e-05/0.1598, allocations: 24.91 kB / 0.6843 GB, free: 4.496 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.16, allocations: 89.08 kB / 0.6844 GB, free: 4.391 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.16, allocations: 30.56 kB / 0.6844 GB, free: 4.352 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.16, allocations: 0 / 0.6844 GB, free: 4.352 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003693/0.1604, allocations: 101.5 kB / 0.6845 GB, free: 4.246 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.1604, allocations: 55.39 kB / 0.6846 GB, free: 4.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.262e-05/0.1605, allocations: 102 kB / 0.6847 GB, free: 4.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.1605, allocations: 29.7 kB / 0.6847 GB, free: 4.035 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.841e-05/0.1606, allocations: 84.08 kB / 0.6848 GB, free: 3.949 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.1606, allocations: 7.891 kB / 0.6848 GB, free: 3.941 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.1606, allocations: 17.72 kB / 0.6848 GB, free: 3.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/0.1607, allocations: 318.8 kB / 0.6851 GB, free: 3.598 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.094e-05/0.1608, allocations: 19.97 kB / 0.6851 GB, free: 3.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.446e-05/0.1609, allocations: 19.98 kB / 0.6852 GB, free: 3.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.1611, allocations: 40.81 kB / 0.6852 GB, free: 3.516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1611, allocations: 3.938 kB / 0.6852 GB, free: 3.512 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001891/0.1613, allocations: 81.59 kB / 0.6853 GB, free: 3.426 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.1613, allocations: 4 kB / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1613, allocations: 0 / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1613, allocations: 4 kB / 0.6853 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.39e-05/0.1614, allocations: 7.984 kB / 0.6853 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.1614, allocations: 4 kB / 0.6853 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.433e-05/0.1614, allocations: 7.984 kB / 0.6853 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.1615, allocations: 0 / 0.6853 GB, free: 3.398 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.16e-05/0.1615, allocations: 117.8 kB / 0.6854 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1616, allocations: 7.906 kB / 0.6854 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002274/0.1618, allocations: 81.08 kB / 0.6855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1618, allocations: 0 / 0.6855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1618, allocations: 0 / 0.6855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1618, allocations: 0 / 0.6855 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.162, allocations: 169.6 kB / 0.6857 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.162, allocations: 0 / 0.6857 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/0.1621, allocations: 19.92 kB / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1621, allocations: 0 / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1621, allocations: 0 / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1621, allocations: 0 / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1621, allocations: 8 kB / 0.6857 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.1623, allocations: 171.4 kB / 0.6859 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.1624, allocations: 81.11 kB / 0.6859 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.1624, allocations: 4 kB / 0.6859 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.1625, allocations: 7.984 kB / 0.6859 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.1625, allocations: 11.92 kB / 0.686 GB, free: 2.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.1625, allocations: 4 kB / 0.686 GB, free: 2.625 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.161e-05/0.1626, allocations: 79.7 kB / 0.686 GB, free: 2.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1626, allocations: 0 / 0.686 GB, free: 2.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002133/0.1628, allocations: 8 kB / 0.686 GB, free: 2.539 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.0001166/0.1629, allocations: 99.25 kB / 0.6861 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002192/0.1631, allocations: 56.06 kB / 0.6862 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1632, allocations: 4 kB / 0.6862 GB, free: 2.371 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.969e-05/0.1633, allocations: 23.92 kB / 0.6862 GB, free: 2.348 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.1635, allocations: 11.94 kB / 0.6862 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002565/0.1638, allocations: 117.5 kB / 0.6863 GB, free: 2.195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.164, allocations: 0.6807 MB / 0.687 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.875e-05/0.164, allocations: 7.969 kB / 0.687 GB, free: 1.48 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.677e-05/0.1641, allocations: 15.44 kB / 0.687 GB, free: 1.465 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1641, allocations: 0 / 0.687 GB, free: 1.465 MB / 494.1 MB Notification: Performance of Templates: time 0.002561/0.1666, allocations: 0.7095 MB / 0.6877 GB, free: 0.7617 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)