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.775/1.775, allocations: 285.6 MB / 293.1 MB, free: 10.24 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.00115/0.00115, allocations: 184.9 kB / 361.4 MB, free: 6.801 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.874/1.874, allocations: 205.2 MB / 0.62 GB, free: 11.64 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008789/0.000879, allocations: 80.52 kB / 0.733 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.739e-05, allocations: 8 kB / 0.8518 GB, free: 2.637 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7283/0.7283, allocations: 115.3 MB / 0.9645 GB, free: 78.95 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2004/0.9287, allocations: 136.6 MB / 1.098 GB, free: 3.289 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.9292, allocations: 73.14 kB / 1.098 GB, free: 3.223 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001229/0.9304, allocations: 0.5251 MB / 1.098 GB, free: 2.707 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.252e-06/0.9304, allocations: 0 / 1.098 GB, free: 2.707 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.9304, allocations: 0.8125 kB / 1.098 GB, free: 2.707 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.0002735/0.9307, allocations: 312.5 kB / 1.099 GB, free: 2.363 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.9308, allocations: 13.28 kB / 1.099 GB, free: 2.352 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.9308, allocations: 1.031 kB / 1.099 GB, free: 2.352 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.9309, allocations: 167 kB / 1.099 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.931, allocations: 2.016 kB / 1.099 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.931, allocations: 0.5 kB / 1.099 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.615e-05/0.9311, allocations: 12.56 kB / 1.099 GB, free: 2.137 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.579e-05/0.9311, allocations: 31.14 kB / 1.099 GB, free: 2.102 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.9311, allocations: 0 / 1.099 GB, free: 2.102 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.9312, allocations: 0 / 1.099 GB, free: 2.102 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.9312, allocations: 3.5 kB / 1.099 GB, free: 2.102 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.9313, allocations: 128.6 kB / 1.099 GB, free: 1.941 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.094e-05/0.9314, allocations: 27.72 kB / 1.099 GB, free: 1.906 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.991e-05/0.9314, allocations: 9.703 kB / 1.099 GB, free: 1.895 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/0.9316, allocations: 85.09 kB / 1.099 GB, free: 1.793 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.9316, allocations: 35.53 kB / 1.099 GB, free: 1.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.9316, allocations: 0.5 kB / 1.099 GB, free: 1.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001463/0.9318, allocations: 38.34 kB / 1.099 GB, free: 1.707 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.9318, allocations: 56.25 kB / 1.099 GB, free: 1.641 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.325e-05/0.9319, allocations: 85 kB / 1.099 GB, free: 1.551 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.9319, allocations: 29.14 kB / 1.099 GB, free: 1.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.9319, allocations: 80.14 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.9319, allocations: 3.906 kB / 1.099 GB, free: 1.434 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-06/0.9319, allocations: 0 / 1.099 GB, free: 1.434 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.9321, allocations: 314.8 kB / 1.1 GB, free: 1.117 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/0.9321, allocations: 0 / 1.1 GB, free: 1.117 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-06/0.9321, allocations: 0 / 1.1 GB, free: 1.117 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.109e-05/0.9321, allocations: 13.86 kB / 1.1 GB, free: 1.105 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.9322, allocations: 0 / 1.1 GB, free: 1.105 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.756e-05/0.9322, allocations: 37.64 kB / 1.1 GB, free: 1.062 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.9323, allocations: 10.2 kB / 1.1 GB, free: 1.055 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.9323, allocations: 0.5312 kB / 1.1 GB, free: 1.055 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.9323, allocations: 0 / 1.1 GB, free: 1.055 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.81e-05/0.9323, allocations: 8.578 kB / 1.1 GB, free: 1.047 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.9324, allocations: 1.562 kB / 1.1 GB, free: 1.047 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/0.9324, allocations: 3.938 kB / 1.1 GB, free: 1.043 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.9324, allocations: 4 kB / 1.1 GB, free: 1.039 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 () * 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 6.906e-05/0.9325, allocations: 101.8 kB / 1.1 GB, free: 0.9336 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.097e-05/0.9325, allocations: 37.7 kB / 1.1 GB, free: 0.8906 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-06/0.9325, allocations: 8.719 kB / 1.1 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.9327, allocations: 43.66 kB / 1.1 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.9327, allocations: 0.5938 kB / 1.1 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.9327, allocations: 3.875 kB / 1.1 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.9327, allocations: 0.8125 kB / 1.1 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.46e-05/0.9328, allocations: 130.2 kB / 1.1 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.9328, allocations: 0.5312 kB / 1.1 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.939e-05/0.9328, allocations: 0.7188 kB / 1.1 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.9328, allocations: 4 kB / 1.1 GB, free: 0.668 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.9329, allocations: 4.672 kB / 1.1 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.9329, allocations: 0 / 1.1 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.9329, allocations: 0.5312 kB / 1.1 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.57e-05/0.933, allocations: 62.59 kB / 1.1 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.933, allocations: 78.2 kB / 1.1 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.024e-05/0.933, allocations: 3.938 kB / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.9331, allocations: 9.641 kB / 1.1 GB, free: 492 kB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.9331, allocations: 4.547 kB / 1.1 GB, free: 488 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.9331, allocations: 0.875 kB / 1.1 GB, free: 488 kB / 0.698 GB Notification: Performance of sorting global known variables: time 4.396e-05/0.9331, allocations: 79.28 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9332, allocations: 1.125 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.000188/0.9333, allocations: 10.62 kB / 1.1 GB, free: 400 kB / 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 () * 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.0004525/0.9338, allocations: 0.6128 MB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001076/0.9339, allocations: 7.938 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9339, allocations: 0 / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.725e-05/0.934, allocations: 7.984 kB / 1.101 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.891e-05/0.9341, allocations: 3.953 kB / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002832/0.9344, allocations: 81.67 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.9347, allocations: 0.6768 MB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.614e-05/0.9347, allocations: 3.906 kB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.9347, allocations: 15.56 kB / 1.102 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.9347, allocations: 0 / 1.102 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.9519, allocations: 0.57 MB / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.9522, allocations: 152.2 kB / 1.102 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.365/2.317, allocations: 3.938 kB / 1.102 GB, free: 14.17 MB / 0.7136 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)