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.684/1.684, allocations: 288.4 MB / 303.6 MB, free: 8.117 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.001098/0.001098, allocations: 191.8 kB / 372.3 MB, free: 10.13 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.63/1.63, allocations: 205.4 MB / 0.631 GB, free: 9.801 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.0007441/0.0007442, allocations: 90.34 kB / 0.7444 GB, free: 5.727 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 18.09 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2009, allocations: 115.3 MB / 0.9802 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006213/0.2015, allocations: 327.7 kB / 0.9805 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002248/0.2018, allocations: 39.91 kB / 0.9805 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.827e-06/0.2018, allocations: 0 / 0.9805 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.067e-06/0.2018, allocations: 0 / 0.9805 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.723e-06/0.2018, allocations: 0 / 0.9805 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001704/0.202, allocations: 8 kB / 0.9806 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.753e-05/0.202, allocations: 4 kB / 0.9806 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.2021, allocations: 3.984 kB / 0.9806 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.377e-05/0.2021, allocations: 3.984 kB / 0.9806 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 3.365e-05/0.2022, allocations: 7.938 kB / 0.9806 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.2022, allocations: 4 kB / 0.9806 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.107e-05/0.2023, allocations: 8 kB / 0.9806 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.2023, allocations: 0 / 0.9806 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.2023, allocations: 25.7 kB / 0.9806 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.908e-05/0.2024, allocations: 7.984 kB / 0.9806 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2024, allocations: 0 / 0.9806 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2024, allocations: 0 / 0.9806 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.2024, allocations: 0 / 0.9806 GB, free: 26.81 MB / 0.6198 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.0001857/0.2026, allocations: 311.6 kB / 0.9809 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2026, allocations: 11.97 kB / 0.9809 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.257e-05/0.2027, allocations: 42.72 kB / 0.981 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.864e-05/0.2027, allocations: 0.9375 kB / 0.981 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.583e-05/0.2027, allocations: 160.4 kB / 0.9811 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.2028, allocations: 4.375 kB / 0.9811 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-06/0.2028, allocations: 384 / 0.9811 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.176e-05/0.2029, allocations: 38.2 kB / 0.9812 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.2029, allocations: 3.938 kB / 0.9812 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-06/0.2029, allocations: 0 / 0.9812 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2029, allocations: 0 / 0.9812 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.927e-05/0.2029, allocations: 11.98 kB / 0.9812 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.094e-05/0.203, allocations: 141.7 kB / 0.9813 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 3.79e-05/0.2031, allocations: 26.59 kB / 0.9813 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.2031, allocations: 8.922 kB / 0.9813 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.2032, allocations: 85.09 kB / 0.9814 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.2032, allocations: 38.5 kB / 0.9815 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.2033, allocations: 4 kB / 0.9815 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001211/0.2034, allocations: 49.56 kB / 0.9815 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.238e-05/0.2034, allocations: 51.41 kB / 0.9816 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.136e-05/0.2034, allocations: 89.86 kB / 0.9816 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.44e-06/0.2035, allocations: 29.7 kB / 0.9817 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.907e-06/0.2035, allocations: 84.14 kB / 0.9818 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.352e-05/0.2035, allocations: 4.188 kB / 0.9818 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.2035, allocations: 0 / 0.9818 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.2035, allocations: 311 kB / 0.9821 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.2036, allocations: 8 kB / 0.9821 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-06/0.2036, allocations: 3.984 kB / 0.9821 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/0.2036, allocations: 16.8 kB / 0.9821 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2036, allocations: 0 / 0.9821 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.43e-05/0.2037, allocations: 33.7 kB / 0.9821 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.2037, allocations: 9.875 kB / 0.9821 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2037, allocations: 3.938 kB / 0.9821 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.2037, allocations: 0 / 0.9821 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.104e-05/0.2038, allocations: 12.08 kB / 0.9821 GB, free: 25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2038, allocations: 3.984 kB / 0.9821 GB, free: 25 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.2038, allocations: 3.938 kB / 0.9821 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.2038, allocations: 7.938 kB / 0.9822 GB, free: 24.98 MB / 0.6198 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.268e-05/0.2038, allocations: 109.8 kB / 0.9823 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-06/0.2039, allocations: 4 kB / 0.9823 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-05/0.2039, allocations: 48.69 kB / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2039, allocations: 4 kB / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2039, allocations: 4.031 kB / 0.9823 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2039, allocations: 0 / 0.9823 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.696e-05/0.204, allocations: 149.7 kB / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.204, allocations: 0 / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.938e-05/0.204, allocations: 4 kB / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.204, allocations: 0 / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.204, allocations: 3.938 kB / 0.9825 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2041, allocations: 4 kB / 0.9825 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2041, allocations: 0 / 0.9825 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.98e-05/0.2041, allocations: 69.06 kB / 0.9825 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.323e-05/0.2041, allocations: 77.11 kB / 0.9826 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.308e-06/0.2041, allocations: 3.938 kB / 0.9826 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.2042, allocations: 4 kB / 0.9826 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.2042, allocations: 4 kB / 0.9826 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.2042, allocations: 3.984 kB / 0.9826 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.177e-05/0.2042, allocations: 75.28 kB / 0.9827 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2042, allocations: 0 / 0.9827 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001954/0.2044, allocations: 8.031 kB / 0.9827 GB, free: 24.32 MB / 0.6198 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.0002304/0.2047, allocations: 0.6161 MB / 0.9833 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.224e-05/0.2047, allocations: 8 kB / 0.9833 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2047, allocations: 0 / 0.9833 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.222e-05/0.2048, allocations: 8.094 kB / 0.9833 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.2049, allocations: 4 kB / 0.9833 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002447/0.2051, allocations: 112.3 kB / 0.9834 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.103e-05/0.2053, allocations: 0.6731 MB / 0.9841 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.281e-05/0.2053, allocations: 3.984 kB / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.514e-05/0.2053, allocations: 7.438 kB / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of SimCode: time 3.3e-07/0.2053, allocations: 0 / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1824/0.3877, allocations: 0.8694 MB / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.3879, allocations: 204.9 kB / 0.9851 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.283, allocations: 0 / 0.9851 GB, free: 21.83 MB / 0.6198 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)