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.001202/0.001202, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001011/0.001011, allocations: 193.5 kB / 16.26 MB, free: 6.621 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.17/1.17, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.586/1.586, allocations: 292.3 MB / 0.5486 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.001287/0.001287, allocations: 70.73 kB / 0.6711 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1677, allocations: 114.5 MB / 0.783 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001491/0.1692, allocations: 0.6588 MB / 0.7836 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0001958/0.1694, allocations: 47.84 kB / 0.7837 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.04e-05/0.1695, allocations: 3.938 kB / 0.7837 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.1e-05/0.1695, allocations: 0 / 0.7837 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-06/0.1695, allocations: 0 / 0.7837 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.1697, allocations: 8 kB / 0.7837 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.126e-05/0.1697, allocations: 4 kB / 0.7837 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.115e-05/0.1697, allocations: 7.922 kB / 0.7837 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.608e-06/0.1697, allocations: 0 / 0.7837 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 1.587e-05/0.1698, allocations: 8 kB / 0.7837 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.913e-06/0.1698, allocations: 0 / 0.7837 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.251e-05/0.1698, allocations: 8 kB / 0.7837 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.257e-06/0.1698, allocations: 7.922 kB / 0.7837 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.277e-05/0.1699, allocations: 0 / 0.7837 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 5.843e-05/0.1699, allocations: 11.98 kB / 0.7837 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1699, allocations: 0 / 0.7837 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1699, allocations: 0 / 0.7837 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.1699, allocations: 0 / 0.7837 GB, free: 13.05 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.0002375/0.1702, allocations: 319.6 kB / 0.784 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.1702, allocations: 12.03 kB / 0.784 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.1703, allocations: 30.75 kB / 0.7841 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.742e-05/0.1703, allocations: 0.9375 kB / 0.7841 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.112e-05/0.1704, allocations: 164.4 kB / 0.7842 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.1704, allocations: 4.359 kB / 0.7842 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-06/0.1704, allocations: 4.375 kB / 0.7842 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.056e-05/0.1705, allocations: 34.25 kB / 0.7843 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.882e-06/0.1705, allocations: 3.938 kB / 0.7843 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-06/0.1705, allocations: 0 / 0.7843 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.1705, allocations: 7.938 kB / 0.7843 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.1705, allocations: 4 kB / 0.7843 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001078/0.1706, allocations: 153.6 kB / 0.7844 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 3.75e-05/0.1707, allocations: 18.61 kB / 0.7844 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.764e-05/0.1707, allocations: 16.92 kB / 0.7845 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.1708, allocations: 81.11 kB / 0.7845 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.1708, allocations: 38.55 kB / 0.7846 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1709, allocations: 0 / 0.7846 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001035/0.171, allocations: 45.58 kB / 0.7846 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.171, allocations: 51.41 kB / 0.7847 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.16e-05/0.171, allocations: 89.86 kB / 0.7848 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.776e-06/0.171, allocations: 29.7 kB / 0.7848 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 1.958e-05/0.1711, allocations: 80.14 kB / 0.7849 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.1711, allocations: 4.188 kB / 0.7849 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-05/0.1711, allocations: 21.83 kB / 0.7849 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.049e-05/0.1712, allocations: 314.8 kB / 0.7852 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.1712, allocations: 3.938 kB / 0.7852 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.644e-06/0.1712, allocations: 4 kB / 0.7852 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.912e-05/0.1713, allocations: 16.8 kB / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1713, allocations: 0 / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.186e-05/0.1713, allocations: 37.69 kB / 0.7852 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.679e-06/0.1713, allocations: 4 kB / 0.7852 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1713, allocations: 8.031 kB / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.086e-06/0.1714, allocations: 4 kB / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.957e-05/0.1714, allocations: 0 / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.1714, allocations: 0 / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/0.1714, allocations: 7.938 kB / 0.7853 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-06/0.1714, allocations: 0 / 0.7853 GB, free: 11.22 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 5.338e-05/0.1715, allocations: 113.8 kB / 0.7854 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-06/0.1715, allocations: 0 / 0.7854 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.1716, allocations: 56.7 kB / 0.7854 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1716, allocations: 3.984 kB / 0.7854 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1716, allocations: 0 / 0.7854 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.1716, allocations: 4 kB / 0.7854 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.068e-05/0.1717, allocations: 145.7 kB / 0.7856 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1717, allocations: 0 / 0.7856 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.081e-05/0.1717, allocations: 4 kB / 0.7856 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.1717, allocations: 0 / 0.7856 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.1717, allocations: 11.86 kB / 0.7856 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1717, allocations: 0 / 0.7856 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-07/0.1717, allocations: 0 / 0.7856 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.993e-05/0.1718, allocations: 69.11 kB / 0.7857 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.67e-05/0.1718, allocations: 81.09 kB / 0.7857 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-06/0.1719, allocations: 3.938 kB / 0.7857 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.1719, allocations: 0 / 0.7857 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.1719, allocations: 4 kB / 0.7857 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.1719, allocations: 4 kB / 0.7857 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 1.942e-05/0.1719, allocations: 75.28 kB / 0.7858 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1719, allocations: 4.031 kB / 0.7858 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001823/0.1721, allocations: 4 kB / 0.7858 GB, free: 10.54 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.0002952/0.1724, allocations: 0.6045 MB / 0.7864 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 5.494e-05/0.1725, allocations: 15.92 kB / 0.7864 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.1725, allocations: 4.094 kB / 0.7864 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.242e-05/0.1725, allocations: 4 kB / 0.7864 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.1726, allocations: 4 kB / 0.7864 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002191/0.1729, allocations: 118.5 kB / 0.7866 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.173, allocations: 0.6729 MB / 0.7872 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.728e-06/0.1731, allocations: 0 / 0.7872 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.47e-05/0.1731, allocations: 7.438 kB / 0.7872 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.1731, allocations: 4 kB / 0.7872 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/0.4108, allocations: 0.9642 MB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.411, allocations: 207.7 kB / 0.7884 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/2.147, allocations: 0 / 0.7884 GB, free: 7.895 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)