Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001485/0.001485, allocations: 192.2 kB / 16.13 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.648/1.648, allocations: 292.3 MB / 0.5484 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 69.05 kB / 0.6709 GB, free: 26.57 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.173, allocations: 114.6 MB / 0.7828 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002725/0.1758, allocations: 1.578 MB / 0.7843 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003512/0.1762, allocations: 129.5 kB / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.398e-05/0.1762, allocations: 0 / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.1763, allocations: 0 / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.351e-05/0.1763, allocations: 4 kB / 0.7845 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.1765, allocations: 15.92 kB / 0.7845 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.487e-05/0.1765, allocations: 31.92 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.052e-05/0.1766, allocations: 8 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.15e-05/0.1767, allocations: 15.97 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.062e-05/0.1767, allocations: 19.92 kB / 0.7845 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.1768, allocations: 4 kB / 0.7846 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.922e-05/0.1768, allocations: 7.938 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.242e-05/0.1768, allocations: 4 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.1769, allocations: 15.92 kB / 0.7846 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.853e-05/0.177, allocations: 27.89 kB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.177, allocations: 0 / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.01e-07/0.177, allocations: 0 / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.177, allocations: 0 / 0.7846 GB, free: 12.04 MB / 0.6075 GB 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.0003762/0.1774, allocations: 355.7 kB / 0.7849 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1774, allocations: 12.03 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.503e-05/0.1774, allocations: 30.75 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.013e-05/0.1774, allocations: 0.9375 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.683e-05/0.1775, allocations: 168.3 kB / 0.7851 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.1776, allocations: 384 / 0.7851 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1776, allocations: 4.375 kB / 0.7852 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.1777, allocations: 58.22 kB / 0.7852 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.1778, allocations: 3.938 kB / 0.7852 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.1778, allocations: 4 kB / 0.7852 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1778, allocations: 4 kB / 0.7852 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.1779, allocations: 47.83 kB / 0.7853 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000292/0.1782, allocations: 260.9 kB / 0.7855 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.1785, allocations: 62.53 kB / 0.7856 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.615e-05/0.1786, allocations: 28.89 kB / 0.7856 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.081e-05/0.1787, allocations: 85.05 kB / 0.7857 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/0.1787, allocations: 30.56 kB / 0.7857 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1787, allocations: 0 / 0.7857 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003203/0.1791, allocations: 93.62 kB / 0.7858 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.1791, allocations: 59.41 kB / 0.7859 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.096e-05/0.1792, allocations: 97.84 kB / 0.7859 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.1792, allocations: 29.64 kB / 0.786 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.254e-05/0.1792, allocations: 88.05 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.418e-05/0.1792, allocations: 11.84 kB / 0.7861 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.1793, allocations: 13.72 kB / 0.7861 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.709e-05/0.1794, allocations: 318.8 kB / 0.7864 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.157e-05/0.1794, allocations: 19.98 kB / 0.7864 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.313e-05/0.1795, allocations: 23.91 kB / 0.7864 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.1797, allocations: 48.77 kB / 0.7865 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1797, allocations: 0 / 0.7865 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001837/0.1799, allocations: 77.64 kB / 0.7866 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.1799, allocations: 4 kB / 0.7866 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.1799, allocations: 4 kB / 0.7866 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.115e-06/0.1799, allocations: 0 / 0.7866 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.116e-05/0.18, allocations: 11.98 kB / 0.7866 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.18, allocations: 0 / 0.7866 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.861e-05/0.1801, allocations: 4 kB / 0.7866 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.1801, allocations: 0 / 0.7866 GB, free: 9.77 MB / 0.6075 GB 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 5.999e-05/0.1801, allocations: 121.7 kB / 0.7867 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.1802, allocations: 8 kB / 0.7867 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.1804, allocations: 81.14 kB / 0.7868 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1804, allocations: 0 / 0.7868 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1804, allocations: 0 / 0.7868 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1804, allocations: 4.562 kB / 0.7868 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.1805, allocations: 169.6 kB / 0.7869 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1806, allocations: 3.938 kB / 0.7869 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.877e-05/0.1806, allocations: 11.98 kB / 0.787 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1806, allocations: 4 kB / 0.787 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/0.1807, allocations: 0 / 0.787 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1807, allocations: 4 kB / 0.787 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1807, allocations: 0 / 0.787 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/0.1809, allocations: 179.3 kB / 0.7871 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.633e-05/0.1809, allocations: 81.09 kB / 0.7872 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.1809, allocations: 4 kB / 0.7872 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.71e-05/0.181, allocations: 4 kB / 0.7872 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-05/0.1811, allocations: 11.98 kB / 0.7872 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1811, allocations: 0 / 0.7872 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.96e-05/0.1811, allocations: 83.27 kB / 0.7873 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.1811, allocations: 0 / 0.7873 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002022/0.1813, allocations: 8 kB / 0.7873 GB, free: 8.902 MB / 0.6075 GB 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.0004463/0.1818, allocations: 0.7124 MB / 0.788 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001812/0.182, allocations: 47.89 kB / 0.7881 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.182, allocations: 0 / 0.7881 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.51e-05/0.1821, allocations: 23.98 kB / 0.7881 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.1823, allocations: 7.984 kB / 0.7881 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.1827, allocations: 152.8 kB / 0.7882 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001729/0.1828, allocations: 0.677 MB / 0.7889 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.893e-05/0.1829, allocations: 8 kB / 0.7889 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.1829, allocations: 15.42 kB / 0.7889 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.1829, allocations: 0 / 0.7889 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.046/2.229, allocations: 1.352 MB / 0.7902 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005336/2.23, allocations: 190 kB / 0.7904 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/4.264, allocations: 4 kB / 0.7904 GB, free: 5.633 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)