Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.37/1.37, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009935/0.0009936, allocations: 186.5 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.4 MB / 0.5777 GB, free: 20.31 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007423/0.0007423, allocations: 95.83 kB / 0.6823 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 9.938 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1771, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005783/0.1777, allocations: 334 kB / 0.9006 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000205/0.1779, allocations: 45.2 kB / 0.9007 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.133e-05/0.1779, allocations: 0 / 0.9007 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.958e-06/0.1779, allocations: 0 / 0.9007 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-06/0.178, allocations: 3.938 kB / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.1781, allocations: 8 kB / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.755e-05/0.1782, allocations: 0 / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.1782, allocations: 7.984 kB / 0.9007 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.45e-05/0.1782, allocations: 4 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.469e-05/0.1783, allocations: 7.922 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.1783, allocations: 0 / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.212e-05/0.1784, allocations: 8 kB / 0.9007 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.882e-06/0.1784, allocations: 0 / 0.9007 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.798e-05/0.1784, allocations: 25.7 kB / 0.9007 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.064e-05/0.1785, allocations: 11.98 kB / 0.9008 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1785, allocations: 0 / 0.9008 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.012e-06/0.1785, allocations: 0 / 0.9008 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.1785, allocations: 0 / 0.9008 GB, free: 63.34 MB / 0.6042 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.0001724/0.1787, allocations: 315.4 kB / 0.9011 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.1787, allocations: 8.031 kB / 0.9011 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.488e-05/0.1787, allocations: 34.56 kB / 0.9011 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.97e-05/0.1788, allocations: 0 / 0.9011 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.925e-05/0.1788, allocations: 167 kB / 0.9013 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.1788, allocations: 0 / 0.9013 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-06/0.1788, allocations: 0 / 0.9013 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.115e-05/0.1789, allocations: 33.64 kB / 0.9013 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.1789, allocations: 0 / 0.9013 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.1789, allocations: 4 kB / 0.9013 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.179, allocations: 0 / 0.9013 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.233e-05/0.179, allocations: 15.92 kB / 0.9013 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001166/0.1791, allocations: 153.7 kB / 0.9015 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 3.934e-05/0.1792, allocations: 22.58 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.1792, allocations: 8.844 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.1793, allocations: 81.17 kB / 0.9016 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.1793, allocations: 38.5 kB / 0.9016 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.974e-06/0.1794, allocations: 0 / 0.9016 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001166/0.1795, allocations: 49.62 kB / 0.9016 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.1795, allocations: 51.41 kB / 0.9017 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.621e-05/0.1795, allocations: 89.86 kB / 0.9018 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.921e-06/0.1795, allocations: 25.7 kB / 0.9018 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.815e-06/0.1796, allocations: 80.14 kB / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.379e-05/0.1796, allocations: 128 / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.1796, allocations: 4 kB / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.687e-05/0.1796, allocations: 314.8 kB / 0.9022 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.128e-06/0.1796, allocations: 4 kB / 0.9022 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.1797, allocations: 0 / 0.9022 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.961e-05/0.1797, allocations: 15.88 kB / 0.9022 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1797, allocations: 0 / 0.9022 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.85e-05/0.1797, allocations: 37.7 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.1798, allocations: 4 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1798, allocations: 4.094 kB / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.1798, allocations: 4 kB / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.001e-05/0.1798, allocations: 0 / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1798, allocations: 3.984 kB / 0.9023 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.1799, allocations: 7.906 kB / 0.9023 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-06/0.1799, allocations: 0 / 0.9023 GB, free: 61.55 MB / 0.6042 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.1799, allocations: 109.8 kB / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-06/0.1799, allocations: 0 / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.286e-05/0.18, allocations: 52.75 kB / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.18, allocations: 0 / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.18, allocations: 0 / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.18, allocations: 4 kB / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.788e-05/0.1801, allocations: 145.7 kB / 0.9026 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1801, allocations: 3.953 kB / 0.9026 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.268e-05/0.1801, allocations: 7.984 kB / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1801, allocations: 0 / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.1801, allocations: 4 kB / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1802, allocations: 0 / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1802, allocations: 0 / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.283e-05/0.1802, allocations: 73.09 kB / 0.9026 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.374e-05/0.1802, allocations: 81.06 kB / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.016e-05/0.1803, allocations: 3.938 kB / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.1803, allocations: 3.938 kB / 0.9027 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.33e-05/0.1803, allocations: 0 / 0.9027 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1803, allocations: 4 kB / 0.9027 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 9.918e-06/0.1803, allocations: 75.28 kB / 0.9028 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.1803, allocations: 4.031 kB / 0.9028 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001961/0.1805, allocations: 4 kB / 0.9028 GB, free: 60.88 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002215/0.1808, allocations: 0.6124 MB / 0.9034 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 5.528e-05/0.1808, allocations: 11.94 kB / 0.9034 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.1808, allocations: 4.094 kB / 0.9034 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.223e-05/0.1808, allocations: 4 kB / 0.9034 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.181, allocations: 3.844 kB / 0.9034 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002265/0.1812, allocations: 112.4 kB / 0.9035 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.694e-05/0.1813, allocations: 0.6692 MB / 0.9042 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.376e-05/0.1813, allocations: 4 kB / 0.9042 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.736e-05/0.1813, allocations: 11.42 kB / 0.9042 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.1813, allocations: 0 / 0.9042 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009477/0.1908, allocations: 0.8819 MB / 0.9051 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/0.191, allocations: 198.6 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.362/1.553, allocations: 4.062 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)