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.364/1.364, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001079/0.001079, allocations: 182.8 kB / 326.5 MB, free: 2.234 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.51/1.51, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008718/0.0008719, allocations: 96 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003155, allocations: 10.34 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2154, allocations: 106.3 MB / 0.9002 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000693/0.2161, allocations: 325.2 kB / 0.9005 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002105/0.2164, allocations: 48.52 kB / 0.9005 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.403e-05/0.2164, allocations: 0 / 0.9005 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.2164, allocations: 0 / 0.9005 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.458e-06/0.2164, allocations: 0 / 0.9005 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.2166, allocations: 8 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.452e-05/0.2166, allocations: 4 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.493e-05/0.2167, allocations: 3.984 kB / 0.9005 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.724e-05/0.2167, allocations: 4 kB / 0.9005 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.822e-05/0.2168, allocations: 7.922 kB / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.2168, allocations: 0 / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.2169, allocations: 4 kB / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.44e-06/0.2169, allocations: 0 / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.737e-05/0.2169, allocations: 25.7 kB / 0.9006 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.786e-05/0.217, allocations: 11.98 kB / 0.9006 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.217, allocations: 0 / 0.9006 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.763e-06/0.217, allocations: 0 / 0.9006 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.217, allocations: 4 kB / 0.9006 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.0002276/0.2172, allocations: 311.4 kB / 0.9009 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2173, allocations: 8.031 kB / 0.9009 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.874e-05/0.2173, allocations: 30.56 kB / 0.9009 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.313e-05/0.2173, allocations: 3.984 kB / 0.9009 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.761e-05/0.2174, allocations: 167 kB / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.2174, allocations: 3.938 kB / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.2174, allocations: 0 / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.346e-05/0.2175, allocations: 45.62 kB / 0.9011 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.2175, allocations: 0 / 0.9011 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.2176, allocations: 0 / 0.9011 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.2176, allocations: 0 / 0.9011 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.455e-05/0.2176, allocations: 7.984 kB / 0.9011 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.2177, allocations: 149.6 kB / 0.9013 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.626e-05/0.2178, allocations: 23.92 kB / 0.9013 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.2179, allocations: 81.09 kB / 0.9014 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.218, allocations: 38.62 kB / 0.9014 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.218, allocations: 0 / 0.9014 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001345/0.2181, allocations: 45.62 kB / 0.9015 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.2181, allocations: 51.41 kB / 0.9015 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.269e-05/0.2182, allocations: 89.86 kB / 0.9016 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.2182, allocations: 25.7 kB / 0.9016 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.743e-05/0.2182, allocations: 84.14 kB / 0.9017 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.2182, allocations: 128 / 0.9017 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.2182, allocations: 8 kB / 0.9017 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.494e-05/0.2183, allocations: 310.8 kB / 0.902 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-06/0.2183, allocations: 0 / 0.902 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.2183, allocations: 4 kB / 0.902 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.85e-05/0.2184, allocations: 0 / 0.902 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2184, allocations: 3.953 kB / 0.902 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.943e-05/0.2184, allocations: 45.62 kB / 0.9021 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.2184, allocations: 8 kB / 0.9021 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2185, allocations: 4.094 kB / 0.9021 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2185, allocations: 0 / 0.9021 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.766e-05/0.2185, allocations: 4 kB / 0.9021 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.2185, allocations: 3.938 kB / 0.9021 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.2186, allocations: 3.906 kB / 0.9021 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-06/0.2186, allocations: 3.984 kB / 0.9021 GB, free: 61.57 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.904e-05/0.2186, allocations: 105.8 kB / 0.9022 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-06/0.2186, allocations: 11.95 kB / 0.9022 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.139e-05/0.2187, allocations: 44.75 kB / 0.9022 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2187, allocations: 4 kB / 0.9022 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2187, allocations: 0 / 0.9022 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2187, allocations: 0 / 0.9022 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.536e-05/0.2188, allocations: 145.7 kB / 0.9024 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2188, allocations: 4 kB / 0.9024 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.2188, allocations: 11.94 kB / 0.9024 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2189, allocations: 0 / 0.9024 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.2189, allocations: 3.938 kB / 0.9024 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2189, allocations: 0 / 0.9024 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2189, allocations: 4 kB / 0.9024 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.252e-05/0.2189, allocations: 61.17 kB / 0.9025 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.219, allocations: 81.09 kB / 0.9025 GB, free: 61 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.219, allocations: 3.953 kB / 0.9025 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.058e-05/0.219, allocations: 3.938 kB / 0.9025 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.91e-05/0.219, allocations: 4 kB / 0.9026 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.219, allocations: 0 / 0.9026 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.404e-05/0.219, allocations: 75.28 kB / 0.9026 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2191, allocations: 4.031 kB / 0.9026 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002056/0.2193, allocations: 4 kB / 0.9026 GB, free: 60.9 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.0002552/0.2195, allocations: 0.6047 MB / 0.9032 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 6.408e-05/0.2196, allocations: 15.95 kB / 0.9032 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2196, allocations: 0 / 0.9032 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.276e-05/0.2196, allocations: 4 kB / 0.9032 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.088e-05/0.2197, allocations: 13.16 kB / 0.9033 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.22, allocations: 118.5 kB / 0.9034 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2201, allocations: 0.6731 MB / 0.904 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.379e-05/0.2202, allocations: 3.984 kB / 0.904 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.639e-05/0.2202, allocations: 7.438 kB / 0.904 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2202, allocations: 128 / 0.904 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/0.2325, allocations: 0.8697 MB / 0.9049 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001336/0.2327, allocations: 195 kB / 0.9051 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/1.774, allocations: 5.062 kB / 0.9051 GB, free: 58.4 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)