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.285/1.285, allocations: 252 MB / 267.3 MB, free: 10.79 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.0009041/0.0009041, allocations: 175 kB / 327 MB, free: 2.078 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.533/1.533, allocations: 205.4 MB / 0.578 GB, free: 20.11 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.0008066/0.0008065, allocations: 105.9 kB / 0.6826 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003135, allocations: 10.94 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1949, allocations: 106.3 MB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006523/0.1956, allocations: 330.1 kB / 0.9012 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002393/0.1958, allocations: 49.14 kB / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.646e-06/0.1959, allocations: 0 / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.406e-05/0.1959, allocations: 0 / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.1959, allocations: 4 kB / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.1961, allocations: 15.92 kB / 0.9013 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.3e-05/0.1961, allocations: 4 kB / 0.9013 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.1962, allocations: 3.938 kB / 0.9013 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.388e-05/0.1962, allocations: 3.984 kB / 0.9013 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.187e-05/0.1962, allocations: 8 kB / 0.9013 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.1962, allocations: 0 / 0.9013 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.1963, allocations: 11.98 kB / 0.9013 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.1963, allocations: 0 / 0.9013 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.1963, allocations: 25.7 kB / 0.9014 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.978e-05/0.1964, allocations: 15.92 kB / 0.9014 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1964, allocations: 0 / 0.9014 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.863e-06/0.1964, allocations: 0 / 0.9014 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.1964, allocations: 0 / 0.9014 GB, free: 62.77 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.0001938/0.1966, allocations: 311.6 kB / 0.9017 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1967, allocations: 12.03 kB / 0.9017 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.638e-05/0.1967, allocations: 34.75 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.078e-05/0.1967, allocations: 0.9375 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.815e-05/0.1968, allocations: 164.3 kB / 0.9019 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.1968, allocations: 384 / 0.9019 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-06/0.1968, allocations: 384 / 0.9019 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.552e-05/0.1969, allocations: 38.25 kB / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1969, allocations: 3.938 kB / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.1969, allocations: 0 / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.197, allocations: 0 / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.175e-05/0.197, allocations: 11.98 kB / 0.9019 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/0.1971, allocations: 153.7 kB / 0.9021 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 3.625e-05/0.1971, allocations: 22.55 kB / 0.9021 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.1972, allocations: 4.922 kB / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001354/0.1973, allocations: 85.09 kB / 0.9022 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.1973, allocations: 34.56 kB / 0.9022 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1973, allocations: 8 kB / 0.9022 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.000119/0.1975, allocations: 37.64 kB / 0.9023 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.934e-05/0.1975, allocations: 51.41 kB / 0.9023 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.871e-05/0.1975, allocations: 97.84 kB / 0.9024 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.081e-06/0.1975, allocations: 29.64 kB / 0.9024 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.016e-05/0.1975, allocations: 80.14 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1976, allocations: 0 / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-06/0.1976, allocations: 0 / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.104e-05/0.1976, allocations: 319 kB / 0.9028 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.1976, allocations: 0 / 0.9028 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.964e-06/0.1977, allocations: 7.938 kB / 0.9028 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.636e-05/0.1977, allocations: 12.86 kB / 0.9028 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1977, allocations: 0 / 0.9028 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.02e-05/0.1977, allocations: 41.69 kB / 0.9029 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1978, allocations: 7.938 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1978, allocations: 3.938 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.1978, allocations: 4.094 kB / 0.9029 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.274e-05/0.1978, allocations: 7.938 kB / 0.9029 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1979, allocations: 0 / 0.9029 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.1979, allocations: 3.906 kB / 0.9029 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.1979, allocations: 8 kB / 0.9029 GB, free: 60.95 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.336e-05/0.1979, allocations: 109.8 kB / 0.903 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-06/0.198, allocations: 0 / 0.903 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.736e-05/0.198, allocations: 44.77 kB / 0.903 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.198, allocations: 32 / 0.903 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1981, allocations: 7.984 kB / 0.9031 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1981, allocations: 0 / 0.9031 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.899e-05/0.1981, allocations: 145.7 kB / 0.9032 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1981, allocations: 0 / 0.9032 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.226e-05/0.1981, allocations: 4 kB / 0.9032 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1982, allocations: 0 / 0.9032 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.1982, allocations: 11.86 kB / 0.9032 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1982, allocations: 0 / 0.9032 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1982, allocations: 0 / 0.9032 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.505e-05/0.1982, allocations: 69.14 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.1983, allocations: 81.09 kB / 0.9034 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-06/0.1983, allocations: 3.938 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.038e-05/0.1983, allocations: 0 / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.1983, allocations: 0 / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1983, allocations: 4 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.14e-05/0.1983, allocations: 75.28 kB / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1983, allocations: 0 / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001785/0.1985, allocations: 8.031 kB / 0.9034 GB, free: 60.3 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 (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.0002412/0.1988, allocations: 0.6103 MB / 0.904 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 5.902e-05/0.1989, allocations: 15.98 kB / 0.9041 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1989, allocations: 0 / 0.9041 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.368e-05/0.1989, allocations: 8.094 kB / 0.9041 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.199, allocations: 4 kB / 0.9041 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002339/0.1992, allocations: 116.3 kB / 0.9042 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.415e-05/0.1993, allocations: 0.6692 MB / 0.9048 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.494e-05/0.1994, allocations: 4 kB / 0.9048 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.676e-05/0.1994, allocations: 7.438 kB / 0.9048 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of SimCode: time 4.31e-07/0.1994, allocations: 0 / 0.9048 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009388/0.2088, allocations: 0.8847 MB / 0.9057 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/0.209, allocations: 211.4 kB / 0.9059 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/1.762, allocations: 0 / 0.9059 GB, free: 57.77 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)