Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_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.0009254/0.0009254, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004389/0.004389, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.507/1.507, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.7/1.7, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004945/0.0004946, allocations: 14.72 kB / 0.6744 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1981, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006764/0.1988, allocations: 323.6 kB / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002686/0.1991, allocations: 51.8 kB / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.538e-06/0.1991, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.1991, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1991, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1993, allocations: 11.97 kB / 0.7884 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.535e-05/0.1994, allocations: 4 kB / 0.7884 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.059e-05/0.1994, allocations: 8 kB / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.305e-05/0.1994, allocations: 0 / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.011e-05/0.1995, allocations: 0 / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.1995, allocations: 0 / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.1995, allocations: 8 kB / 0.7884 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.948e-06/0.1995, allocations: 0 / 0.7884 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.899e-05/0.1996, allocations: 37.62 kB / 0.7884 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.134e-05/0.1997, allocations: 11.98 kB / 0.7884 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1997, allocations: 0 / 0.7884 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1997, allocations: 0 / 0.7884 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.1997, allocations: 0 / 0.7884 GB, free: 11.01 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002555/0.1999, allocations: 319.6 kB / 0.7887 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2, allocations: 8.031 kB / 0.7888 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.272e-05/0.2, allocations: 30.75 kB / 0.7888 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.963e-05/0.2001, allocations: 0.9375 kB / 0.7888 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.419e-05/0.2001, allocations: 164.3 kB / 0.7889 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.2002, allocations: 4.375 kB / 0.7889 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-06/0.2002, allocations: 384 / 0.7889 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.857e-05/0.2003, allocations: 34.25 kB / 0.789 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2003, allocations: 3.938 kB / 0.789 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.2003, allocations: 4 kB / 0.789 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.2003, allocations: 3.938 kB / 0.789 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.15e-05/0.2003, allocations: 8 kB / 0.789 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.2005, allocations: 145.7 kB / 0.7891 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.463e-05/0.2005, allocations: 30.48 kB / 0.7892 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.69e-05/0.2005, allocations: 8.922 kB / 0.7892 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.2007, allocations: 81.11 kB / 0.7892 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.2007, allocations: 38.55 kB / 0.7893 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.2007, allocations: 0 / 0.7893 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001231/0.2009, allocations: 41.64 kB / 0.7893 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.2009, allocations: 55.41 kB / 0.7894 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.086e-05/0.2009, allocations: 89.86 kB / 0.7895 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.201, allocations: 29.7 kB / 0.7895 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.135e-05/0.201, allocations: 80.14 kB / 0.7896 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.201, allocations: 8.312 kB / 0.7896 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.331e-05/0.201, allocations: 21.64 kB / 0.7896 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.558e-05/0.2011, allocations: 310.8 kB / 0.7899 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.2012, allocations: 4 kB / 0.7899 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.572e-06/0.2012, allocations: 0 / 0.7899 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.16e-05/0.2012, allocations: 16.86 kB / 0.7899 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2012, allocations: 0 / 0.7899 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.065e-05/0.2013, allocations: 41.69 kB / 0.79 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2013, allocations: 8.094 kB / 0.79 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2013, allocations: 3.938 kB / 0.79 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.2013, allocations: 0 / 0.79 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.246e-05/0.2014, allocations: 4 kB / 0.79 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2014, allocations: 3.938 kB / 0.79 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.2014, allocations: 3.938 kB / 0.79 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.2014, allocations: 4 kB / 0.79 GB, free: 9.176 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.532e-05/0.2015, allocations: 109.8 kB / 0.7901 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-06/0.2015, allocations: 3.984 kB / 0.7901 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.353e-05/0.2016, allocations: 48.77 kB / 0.7901 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.2016, allocations: 0 / 0.7901 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2016, allocations: 0 / 0.7901 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2016, allocations: 0 / 0.7901 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.258e-05/0.2017, allocations: 149.7 kB / 0.7903 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2017, allocations: 0 / 0.7903 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.962e-05/0.2017, allocations: 0 / 0.7903 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.2017, allocations: 4 kB / 0.7903 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-06/0.2018, allocations: 3.938 kB / 0.7903 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2018, allocations: 3.938 kB / 0.7903 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2018, allocations: 11.95 kB / 0.7903 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.432e-05/0.2018, allocations: 61.12 kB / 0.7904 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.2019, allocations: 81.05 kB / 0.7904 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.2019, allocations: 11.92 kB / 0.7904 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.2019, allocations: 4 kB / 0.7905 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.2019, allocations: 0 / 0.7905 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.2019, allocations: 0 / 0.7905 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.379e-05/0.202, allocations: 79.31 kB / 0.7905 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.202, allocations: 0 / 0.7905 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001839/0.2022, allocations: 4 kB / 0.7905 GB, free: 8.504 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003426/0.2025, allocations: 0.6111 MB / 0.7911 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 5.744e-05/0.2026, allocations: 20.02 kB / 0.7911 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2026, allocations: 0 / 0.7911 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.466e-05/0.2026, allocations: 4 kB / 0.7912 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.2027, allocations: 0 / 0.7912 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002473/0.203, allocations: 120.3 kB / 0.7913 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.2032, allocations: 0.6692 MB / 0.7919 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.287e-05/0.2032, allocations: 0 / 0.7919 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.902e-05/0.2032, allocations: 11.44 kB / 0.7919 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of SimCode: time 1.623e-06/0.2033, allocations: 128 / 0.7919 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01044/0.2137, allocations: 0.8796 MB / 0.7928 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.2139, allocations: 206.9 kB / 0.793 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/1.894, allocations: 3.094 kB / 0.793 GB, free: 5.957 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)