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.001148/0.001148, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002219/0.002219, allocations: 286.8 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9827/0.9827, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 100.5 kB / 0.5952 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1479, allocations: 86.99 MB / 0.6802 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00248/0.1505, allocations: 1.512 MB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003008/0.1508, allocations: 112.5 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.96e-05/0.1508, allocations: 0 / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.375e-05/0.1509, allocations: 3.938 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.927e-05/0.1509, allocations: 7.922 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1511, allocations: 23.97 kB / 0.6818 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.043e-05/0.1512, allocations: 31.92 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.543e-05/0.1513, allocations: 8 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.076e-05/0.1513, allocations: 19.91 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.998e-05/0.1514, allocations: 8 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1514, allocations: 4 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.039e-05/0.1514, allocations: 11.98 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.1515, allocations: 11.94 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.475e-05/0.1515, allocations: 11.92 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.719e-05/0.1516, allocations: 36.17 kB / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1516, allocations: 0 / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1516, allocations: 0 / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1516, allocations: 0 / 0.6819 GB, free: 14.88 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.000392/0.152, allocations: 347.5 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1521, allocations: 8.031 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.1521, allocations: 8.844 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.1522, allocations: 164.3 kB / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.1522, allocations: 384 / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.1522, allocations: 8.375 kB / 0.6824 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.1524, allocations: 54.22 kB / 0.6825 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.1524, allocations: 4.188 kB / 0.6825 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.1525, allocations: 7.938 kB / 0.6825 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1525, allocations: 4 kB / 0.6825 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.1526, allocations: 39.95 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003124/0.153, allocations: 264.8 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.1533, allocations: 70.52 kB / 0.6829 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.794e-05/0.1534, allocations: 20.84 kB / 0.6829 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.1535, allocations: 85.09 kB / 0.683 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.1535, allocations: 30.56 kB / 0.683 GB, free: 13.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1535, allocations: 0 / 0.683 GB, free: 13.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003606/0.1539, allocations: 101.6 kB / 0.6831 GB, free: 13.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.1539, allocations: 55.41 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.773e-05/0.154, allocations: 93.86 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.154, allocations: 29.7 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.154, allocations: 88.02 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1541, allocations: 11.89 kB / 0.6834 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.1541, allocations: 17.72 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.004e-05/0.1542, allocations: 314.8 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.868e-05/0.1543, allocations: 23.91 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.249e-05/0.1544, allocations: 19.98 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.1545, allocations: 44.81 kB / 0.6838 GB, free: 12.76 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1546, allocations: 3.938 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002023/0.1548, allocations: 77.59 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.1548, allocations: 8 kB / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.1548, allocations: 0 / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.1548, allocations: 0 / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.1549, allocations: 11.98 kB / 0.6839 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.1549, allocations: 0 / 0.6839 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.472e-05/0.155, allocations: 7.984 kB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.155, allocations: 0 / 0.6839 GB, free: 12.64 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.552e-05/0.155, allocations: 123.1 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.1551, allocations: 3.906 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.1553, allocations: 85.06 kB / 0.6841 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1553, allocations: 4 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1553, allocations: 0 / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1553, allocations: 0 / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.1555, allocations: 170.1 kB / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1555, allocations: 0 / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.1556, allocations: 15.98 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1556, allocations: 0 / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.1556, allocations: 4 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1556, allocations: 0 / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1556, allocations: 0 / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.1559, allocations: 175.4 kB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.72e-05/0.1559, allocations: 85.05 kB / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1559, allocations: 0 / 0.6845 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.271e-05/0.156, allocations: 11.98 kB / 0.6845 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.1561, allocations: 11.98 kB / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1561, allocations: 0 / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.029e-05/0.1561, allocations: 79.28 kB / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1561, allocations: 0 / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.1563, allocations: 15.91 kB / 0.6846 GB, free: 11.77 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.0001297/0.1565, allocations: 111.2 kB / 0.6847 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002227/0.1567, allocations: 47.94 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.1567, allocations: 0 / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.328e-05/0.1568, allocations: 23.92 kB / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.1571, allocations: 13.75 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.1574, allocations: 117.6 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.1576, allocations: 0.6729 MB / 0.6856 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.023e-05/0.1576, allocations: 7.984 kB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.328e-05/0.1576, allocations: 11.44 kB / 0.6856 GB, free: 10.71 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1576, allocations: 0 / 0.6856 GB, free: 10.71 MB / 494.1 MB Notification: Performance of Templates: time 0.002519/0.1602, allocations: 0.7081 MB / 0.6863 GB, free: 10.01 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)