Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_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.292/1.292, allocations: 252 MB / 267.3 MB, free: 10.85 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.0009242/0.0009242, allocations: 180.6 kB / 327 MB, free: 2.086 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.458/1.458, allocations: 205.4 MB / 0.578 GB, free: 20.14 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.0007121/0.0007122, allocations: 96.19 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 10.75 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 106.3 MB / 0.9009 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001506/0.1923, allocations: 1.252 MB / 0.9021 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003617/0.1927, allocations: 116.5 kB / 0.9022 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.1927, allocations: 8 kB / 0.9023 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.851e-05/0.1927, allocations: 0 / 0.9023 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.768e-05/0.1928, allocations: 3.938 kB / 0.9023 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.193, allocations: 19.98 kB / 0.9023 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.422e-05/0.1931, allocations: 27.92 kB / 0.9023 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.278e-05/0.1932, allocations: 7.938 kB / 0.9023 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.317e-05/0.1932, allocations: 19.91 kB / 0.9023 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.694e-05/0.1933, allocations: 11.98 kB / 0.9023 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.1933, allocations: 8 kB / 0.9024 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.292e-05/0.1933, allocations: 7.938 kB / 0.9024 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.1934, allocations: 4 kB / 0.9024 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.455e-05/0.1934, allocations: 37.62 kB / 0.9024 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.404e-05/0.1935, allocations: 31.88 kB / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1935, allocations: 0 / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1935, allocations: 0 / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.1935, allocations: 0 / 0.9024 GB, free: 61.8 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003734/0.1939, allocations: 343.9 kB / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.194, allocations: 8.031 kB / 0.9028 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.194, allocations: 30.75 kB / 0.9028 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.194, allocations: 12.84 kB / 0.9028 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.774e-05/0.1941, allocations: 164.3 kB / 0.903 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1941, allocations: 384 / 0.903 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.1942, allocations: 4.375 kB / 0.903 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.1943, allocations: 74.16 kB / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1944, allocations: 3.938 kB / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.1944, allocations: 0 / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1944, allocations: 0 / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.1946, allocations: 47.95 kB / 0.9031 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002986/0.1949, allocations: 264.9 kB / 0.9033 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.1952, allocations: 66.53 kB / 0.9034 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.054e-05/0.1953, allocations: 36.83 kB / 0.9034 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.785e-05/0.1954, allocations: 77.11 kB / 0.9035 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.1954, allocations: 38.56 kB / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1954, allocations: 0 / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003541/0.1958, allocations: 109.5 kB / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.1958, allocations: 55.41 kB / 0.9037 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.605e-05/0.1959, allocations: 101.8 kB / 0.9038 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.146e-06/0.1959, allocations: 29.64 kB / 0.9038 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.648e-05/0.1959, allocations: 80.14 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.296e-05/0.1959, allocations: 15.84 kB / 0.9039 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.196, allocations: 4 kB / 0.9039 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.023e-05/0.196, allocations: 310.8 kB / 0.9042 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.55e-05/0.1961, allocations: 27.97 kB / 0.9043 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.403e-05/0.1962, allocations: 23.98 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.1963, allocations: 61.22 kB / 0.9043 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1963, allocations: 0 / 0.9043 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001911/0.1965, allocations: 85.7 kB / 0.9044 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.1966, allocations: 7.938 kB / 0.9044 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1966, allocations: 7.984 kB / 0.9044 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1966, allocations: 0 / 0.9044 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.1967, allocations: 19.92 kB / 0.9044 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1967, allocations: 0 / 0.9044 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.1967, allocations: 7.984 kB / 0.9045 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1968, allocations: 8 kB / 0.9045 GB, free: 59.47 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.112e-05/0.1968, allocations: 113.8 kB / 0.9046 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.1968, allocations: 4 kB / 0.9046 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002347/0.1971, allocations: 93.05 kB / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1971, allocations: 4 kB / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.1971, allocations: 0 / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1971, allocations: 0 / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.1972, allocations: 173.5 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1972, allocations: 4 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.099e-05/0.1973, allocations: 15.92 kB / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1973, allocations: 0 / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.1973, allocations: 0 / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1973, allocations: 0 / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1974, allocations: 8 kB / 0.9049 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.1976, allocations: 179.4 kB / 0.905 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.59e-05/0.1976, allocations: 77.11 kB / 0.9051 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.1976, allocations: 4 kB / 0.9051 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.826e-05/0.1977, allocations: 11.98 kB / 0.9051 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.1977, allocations: 7.984 kB / 0.9051 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1978, allocations: 4 kB / 0.9051 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.771e-05/0.1978, allocations: 79.28 kB / 0.9052 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.11e-07/0.1978, allocations: 0 / 0.9052 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002159/0.198, allocations: 7.938 kB / 0.9052 GB, free: 58.59 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000395/0.1984, allocations: 0.7347 MB / 0.9059 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.1986, allocations: 59.95 kB / 0.906 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1986, allocations: 0 / 0.906 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.999e-05/0.1987, allocations: 35.91 kB / 0.906 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.199, allocations: 7.047 kB / 0.906 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003477/0.1993, allocations: 146.6 kB / 0.9062 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.141e-05/0.1994, allocations: 0.677 MB / 0.9068 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.1995, allocations: 4 kB / 0.9068 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.1995, allocations: 11.42 kB / 0.9068 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of SimCode: time 3.21e-07/0.1995, allocations: 7.938 kB / 0.9069 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009656/0.2092, allocations: 1.295 MB / 0.9081 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.2093, allocations: 205.1 kB / 0.9083 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/1.876, allocations: 0 / 0.9083 GB, free: 55.39 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)