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.00134/0.00134, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001538/0.001538, allocations: 191 kB / 17.29 MB, free: 5.516 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.286/1.286, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 299.1 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8932/0.8932, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 102.8 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1484, allocations: 86.96 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002345/0.1508, allocations: 1.507 MB / 0.6831 GB, free: 5.945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002919/0.1511, allocations: 124.5 kB / 0.6832 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.754e-05/0.1511, allocations: 0 / 0.6832 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.135e-05/0.1511, allocations: 0 / 0.6832 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.709e-05/0.1512, allocations: 7.938 kB / 0.6832 GB, free: 5.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.1514, allocations: 23.91 kB / 0.6832 GB, free: 5.789 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.826e-05/0.1515, allocations: 27.98 kB / 0.6832 GB, free: 5.762 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.296e-05/0.1516, allocations: 11.98 kB / 0.6832 GB, free: 5.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.367e-05/0.1516, allocations: 7.938 kB / 0.6833 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.511e-05/0.1517, allocations: 19.97 kB / 0.6833 GB, free: 5.723 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.1517, allocations: 3.938 kB / 0.6833 GB, free: 5.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.14e-05/0.1517, allocations: 15.98 kB / 0.6833 GB, free: 5.703 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.1517, allocations: 7.938 kB / 0.6833 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.513e-05/0.1518, allocations: 15.92 kB / 0.6833 GB, free: 5.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.654e-05/0.1519, allocations: 35.89 kB / 0.6833 GB, free: 5.645 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1519, allocations: 4 kB / 0.6834 GB, free: 5.641 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1519, allocations: 0 / 0.6834 GB, free: 5.641 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1519, allocations: 4 kB / 0.6834 GB, free: 5.637 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.0003773/0.1523, allocations: 339.5 kB / 0.6837 GB, free: 5.254 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.1523, allocations: 15.97 kB / 0.6837 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.1523, allocations: 4.844 kB / 0.6837 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.622e-05/0.1524, allocations: 164.4 kB / 0.6839 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.1525, allocations: 4.375 kB / 0.6839 GB, free: 5.031 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.1525, allocations: 384 / 0.6839 GB, free: 5.031 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.1526, allocations: 62.22 kB / 0.6839 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1527, allocations: 192 / 0.6839 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1527, allocations: 7.875 kB / 0.6839 GB, free: 4.957 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1527, allocations: 0 / 0.6839 GB, free: 4.957 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.1529, allocations: 43.95 kB / 0.684 GB, free: 4.914 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003076/0.1532, allocations: 257 kB / 0.6842 GB, free: 4.613 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.1535, allocations: 66.47 kB / 0.6843 GB, free: 4.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.63e-05/0.1536, allocations: 28.84 kB / 0.6843 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.1537, allocations: 85.09 kB / 0.6844 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.1537, allocations: 30.56 kB / 0.6844 GB, free: 4.367 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1537, allocations: 0 / 0.6844 GB, free: 4.367 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000334/0.154, allocations: 101.5 kB / 0.6845 GB, free: 4.262 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/0.1541, allocations: 51.41 kB / 0.6846 GB, free: 4.199 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.718e-05/0.1541, allocations: 101.9 kB / 0.6847 GB, free: 4.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.1542, allocations: 25.7 kB / 0.6847 GB, free: 4.059 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.1542, allocations: 92 kB / 0.6848 GB, free: 3.965 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.205e-05/0.1542, allocations: 3.906 kB / 0.6848 GB, free: 3.961 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.1543, allocations: 21.72 kB / 0.6848 GB, free: 3.934 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.703e-05/0.1544, allocations: 310.8 kB / 0.6851 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.448e-05/0.1544, allocations: 27.91 kB / 0.6851 GB, free: 3.594 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-05/0.1545, allocations: 19.98 kB / 0.6851 GB, free: 3.574 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.1547, allocations: 40.81 kB / 0.6852 GB, free: 3.531 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1547, allocations: 3.938 kB / 0.6852 GB, free: 3.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001844/0.1549, allocations: 77.66 kB / 0.6853 GB, free: 3.445 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1549, allocations: 5.719 kB / 0.6853 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.1549, allocations: 0 / 0.6853 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1549, allocations: 4 kB / 0.6853 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.311e-05/0.155, allocations: 7.984 kB / 0.6853 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.155, allocations: 8 kB / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.995e-05/0.1551, allocations: 7.922 kB / 0.6853 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.1551, allocations: 8 kB / 0.6853 GB, free: 3.406 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.056e-05/0.1552, allocations: 113.8 kB / 0.6854 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.1552, allocations: 7.906 kB / 0.6854 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002392/0.1554, allocations: 77.14 kB / 0.6855 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1554, allocations: 0 / 0.6855 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1554, allocations: 0 / 0.6855 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1555, allocations: 4.547 kB / 0.6855 GB, free: 3.188 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000144/0.1556, allocations: 173.5 kB / 0.6857 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1556, allocations: 0 / 0.6857 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.1557, allocations: 11.98 kB / 0.6857 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1557, allocations: 0 / 0.6857 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1557, allocations: 0 / 0.6857 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1557, allocations: 0 / 0.6857 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1557, allocations: 7.922 kB / 0.6857 GB, free: 2.949 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.156, allocations: 175.4 kB / 0.6858 GB, free: 2.762 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.156, allocations: 81.11 kB / 0.6859 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.156, allocations: 0 / 0.6859 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.1561, allocations: 11.98 kB / 0.6859 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.1561, allocations: 3.984 kB / 0.6859 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.1562, allocations: 7.938 kB / 0.6859 GB, free: 2.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.1562, allocations: 83.28 kB / 0.686 GB, free: 2.559 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1562, allocations: 0 / 0.686 GB, free: 2.559 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002122/0.1564, allocations: 4 kB / 0.686 GB, free: 2.555 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.0001118/0.1565, allocations: 111.2 kB / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.1567, allocations: 55.89 kB / 0.6862 GB, free: 2.379 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1568, allocations: 0 / 0.6862 GB, free: 2.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.175e-05/0.1569, allocations: 19.98 kB / 0.6862 GB, free: 2.359 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.1571, allocations: 11.88 kB / 0.6862 GB, free: 2.348 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.1573, allocations: 121.5 kB / 0.6863 GB, free: 2.203 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.1575, allocations: 0.6807 MB / 0.687 GB, free: 1.496 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.533e-05/0.1576, allocations: 3.984 kB / 0.687 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.1576, allocations: 15.44 kB / 0.687 GB, free: 1.477 MB / 494.1 MB Notification: Performance of SimCode: time 2e-07/0.1576, allocations: 0 / 0.687 GB, free: 1.477 MB / 494.1 MB Notification: Performance of Templates: time 0.002496/0.1601, allocations: 0.7041 MB / 0.6877 GB, free: 0.7773 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)