Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.669/1.669, allocations: 288.2 MB / 303.2 MB, free: 8.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 181.2 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001264, allocations: 82.73 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007988/0.0007992, allocations: 17.06 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3332, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8912/1.224, allocations: 137.3 MB / 1.114 GB, free: 16.32 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/1.225, allocations: 76.69 kB / 1.114 GB, free: 16.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001989/1.227, allocations: 0.5187 MB / 1.114 GB, free: 32 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.297e-06/1.227, allocations: 1.625 kB / 1.114 GB, free: 32 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.763e-06/1.227, allocations: 0 / 1.114 GB, free: 32 MB / 0.698 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.0003049/1.227, allocations: 323.5 kB / 1.114 GB, free: 31.65 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/1.227, allocations: 15.55 kB / 1.114 GB, free: 31.65 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.366e-05/1.227, allocations: 32.5 kB / 1.115 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/1.227, allocations: 4.734 kB / 1.115 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/1.227, allocations: 163 kB / 1.115 GB, free: 31.41 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/1.228, allocations: 0 / 1.115 GB, free: 31.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/1.228, allocations: 0 / 1.115 GB, free: 31.41 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/1.228, allocations: 40.12 kB / 1.115 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/1.228, allocations: 0 / 1.115 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/1.228, allocations: 0 / 1.115 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/1.228, allocations: 3.875 kB / 1.115 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.183e-05/1.228, allocations: 3.812 kB / 1.115 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/1.228, allocations: 156.7 kB / 1.115 GB, free: 31.18 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.816e-05/1.228, allocations: 26.08 kB / 1.115 GB, free: 31.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000163/1.228, allocations: 84.09 kB / 1.115 GB, free: 31.06 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/1.228, allocations: 34.5 kB / 1.115 GB, free: 31.02 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/1.228, allocations: 0 / 1.115 GB, free: 31.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001603/1.228, allocations: 44.19 kB / 1.115 GB, free: 30.99 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/1.228, allocations: 51.41 kB / 1.115 GB, free: 30.93 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.369e-05/1.228, allocations: 85 kB / 1.115 GB, free: 30.84 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/1.228, allocations: 25.7 kB / 1.115 GB, free: 30.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.194e-05/1.229, allocations: 84.27 kB / 1.115 GB, free: 30.72 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/1.229, allocations: 4.688 kB / 1.115 GB, free: 30.71 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/1.229, allocations: 0 / 1.115 GB, free: 30.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001162/1.229, allocations: 318.6 kB / 1.116 GB, free: 30.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.033e-05/1.229, allocations: 0 / 1.116 GB, free: 30.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.548e-06/1.229, allocations: 3.047 kB / 1.116 GB, free: 30.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.161e-05/1.229, allocations: 7.844 kB / 1.116 GB, free: 30.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/1.229, allocations: 0 / 1.116 GB, free: 30.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.802e-05/1.229, allocations: 49.12 kB / 1.116 GB, free: 30.36 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/1.229, allocations: 7.438 kB / 1.116 GB, free: 30.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.229, allocations: 2.625 kB / 1.116 GB, free: 30.36 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/1.229, allocations: 0 / 1.116 GB, free: 30.36 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.223e-05/1.229, allocations: 7.625 kB / 1.116 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.381e-06/1.229, allocations: 0 / 1.116 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/1.229, allocations: 0 / 1.116 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/1.229, allocations: 0 / 1.116 GB, free: 30.35 MB / 0.698 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 8.807e-05/1.229, allocations: 109.7 kB / 1.116 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/1.229, allocations: 10.8 kB / 1.116 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/1.229, allocations: 47.98 kB / 1.116 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/1.229, allocations: 0 / 1.116 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.229, allocations: 0 / 1.116 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/1.229, allocations: 0 / 1.116 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.08e-05/1.229, allocations: 152.2 kB / 1.116 GB, free: 30.01 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/1.229, allocations: 4 kB / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.948e-05/1.229, allocations: 0 / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/1.229, allocations: 3.906 kB / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/1.229, allocations: 3.953 kB / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/1.229, allocations: 4.031 kB / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/1.229, allocations: 0 / 1.116 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.235e-05/1.229, allocations: 58.97 kB / 1.116 GB, free: 29.93 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/1.23, allocations: 84.14 kB / 1.116 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/1.23, allocations: 3.812 kB / 1.116 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/1.23, allocations: 3.953 kB / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.247e-05/1.23, allocations: 0 / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/1.23, allocations: 4.031 kB / 1.116 GB, free: 29.83 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.504e-05/1.23, allocations: 75.28 kB / 1.116 GB, free: 29.75 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.23, allocations: 3.938 kB / 1.116 GB, free: 29.75 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002/1.23, allocations: 10.3 kB / 1.116 GB, free: 29.75 MB / 0.698 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.0004055/1.23, allocations: 0.609 MB / 1.117 GB, free: 29.16 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.831e-05/1.23, allocations: 14.22 kB / 1.117 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.23, allocations: 0 / 1.117 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.309e-05/1.23, allocations: 7.75 kB / 1.117 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.375e-05/1.23, allocations: 3.953 kB / 1.117 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/1.231, allocations: 114 kB / 1.117 GB, free: 29.01 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/1.231, allocations: 0.673 MB / 1.118 GB, free: 28.32 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.666e-05/1.231, allocations: 2.953 kB / 1.118 GB, free: 28.32 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/1.231, allocations: 11.56 kB / 1.118 GB, free: 28.3 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/1.231, allocations: 3.938 kB / 1.118 GB, free: 28.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/1.242, allocations: 0.8764 MB / 1.118 GB, free: 28.16 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/1.242, allocations: 196.6 kB / 1.119 GB, free: 27.92 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.489/2.731, allocations: 0 / 1.119 GB, free: 27.92 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)