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.31/1.31, allocations: 251.5 MB / 266.7 MB, free: 11.04 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.000838/0.0008379, allocations: 174.5 kB / 325.8 MB, free: 2.703 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.319/1.319, allocations: 205 MB / 0.576 GB, free: 21 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.0006422/0.0006422, allocations: 94.95 kB / 0.6797 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003208, allocations: 8.969 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1839, allocations: 105.4 MB / 0.8962 GB, free: 68.1 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006428/0.1846, allocations: 346.9 kB / 0.8965 GB, free: 67.76 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000248/0.1848, allocations: 55.84 kB / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.288e-06/0.1848, allocations: 0 / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.1849, allocations: 0 / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.81e-06/0.1849, allocations: 0 / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.1851, allocations: 4 kB / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.17e-05/0.1851, allocations: 0 / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.1852, allocations: 0 / 0.8966 GB, free: 67.7 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.351e-05/0.1852, allocations: 11.94 kB / 0.8966 GB, free: 67.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.327e-05/0.1852, allocations: 7.922 kB / 0.8966 GB, free: 67.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.1852, allocations: 0 / 0.8966 GB, free: 67.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.977e-05/0.1853, allocations: 7.984 kB / 0.8966 GB, free: 67.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.496e-06/0.1853, allocations: 0 / 0.8966 GB, free: 67.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.1853, allocations: 15.94 kB / 0.8966 GB, free: 67.66 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.738e-05/0.1854, allocations: 4 kB / 0.8966 GB, free: 67.65 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1854, allocations: 7.984 kB / 0.8966 GB, free: 67.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1854, allocations: 0 / 0.8966 GB, free: 67.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.1854, allocations: 0 / 0.8966 GB, free: 67.64 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.0001849/0.1856, allocations: 307.8 kB / 0.8969 GB, free: 67.29 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1857, allocations: 12.09 kB / 0.897 GB, free: 67.28 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.565e-05/0.1857, allocations: 34.75 kB / 0.897 GB, free: 67.24 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.13e-05/0.1857, allocations: 0.9375 kB / 0.897 GB, free: 67.24 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.303e-05/0.1858, allocations: 172.3 kB / 0.8971 GB, free: 67.03 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1858, allocations: 384 / 0.8971 GB, free: 67.03 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-06/0.1858, allocations: 4.375 kB / 0.8972 GB, free: 67.03 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.018e-05/0.1859, allocations: 26.27 kB / 0.8972 GB, free: 67 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1859, allocations: 7.938 kB / 0.8972 GB, free: 66.99 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.871e-06/0.1859, allocations: 0 / 0.8972 GB, free: 66.99 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1859, allocations: 0 / 0.8972 GB, free: 66.99 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.733e-05/0.1859, allocations: 3.938 kB / 0.8972 GB, free: 66.98 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.322e-05/0.186, allocations: 153.7 kB / 0.8973 GB, free: 66.79 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 3.785e-05/0.1861, allocations: 26.61 kB / 0.8974 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.389e-05/0.1861, allocations: 8.922 kB / 0.8974 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.1862, allocations: 85.09 kB / 0.8975 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.1863, allocations: 34.56 kB / 0.8975 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1863, allocations: 0 / 0.8975 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001099/0.1864, allocations: 49.56 kB / 0.8975 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.719e-05/0.1864, allocations: 55.53 kB / 0.8976 GB, free: 66.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.674e-05/0.1864, allocations: 89.86 kB / 0.8977 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.25e-06/0.1864, allocations: 25.7 kB / 0.8977 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.857e-06/0.1865, allocations: 88.12 kB / 0.8978 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.1865, allocations: 0 / 0.8978 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/0.1865, allocations: 13.72 kB / 0.8978 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.732e-05/0.1865, allocations: 311.7 kB / 0.8981 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.1866, allocations: 4 kB / 0.8981 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.1866, allocations: 0 / 0.8981 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.613e-05/0.1866, allocations: 20.91 kB / 0.8981 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1866, allocations: 4 kB / 0.8981 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.593e-05/0.1867, allocations: 37.64 kB / 0.8982 GB, free: 65.85 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.1867, allocations: 4 kB / 0.8982 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1867, allocations: 3.938 kB / 0.8982 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.1867, allocations: 0 / 0.8982 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.623e-05/0.1868, allocations: 7.938 kB / 0.8982 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1868, allocations: 3.984 kB / 0.8982 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.1868, allocations: 7.938 kB / 0.8982 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-06/0.1868, allocations: 3.938 kB / 0.8982 GB, free: 65.82 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 (n,fac) * 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.295e-05/0.1868, allocations: 113.8 kB / 0.8983 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-06/0.1868, allocations: 0 / 0.8983 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.127e-05/0.1869, allocations: 52.69 kB / 0.8983 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1869, allocations: 0 / 0.8983 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1869, allocations: 0 / 0.8983 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1869, allocations: 0 / 0.8983 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.591e-05/0.187, allocations: 145.7 kB / 0.8985 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.187, allocations: 4.031 kB / 0.8985 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.947e-05/0.187, allocations: 3.984 kB / 0.8985 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.187, allocations: 0 / 0.8985 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.187, allocations: 7.938 kB / 0.8985 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1871, allocations: 0 / 0.8985 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1871, allocations: 0 / 0.8985 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.163e-05/0.1871, allocations: 61.12 kB / 0.8986 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.329e-05/0.1871, allocations: 81.05 kB / 0.8986 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.1872, allocations: 11.95 kB / 0.8986 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.488e-06/0.1872, allocations: 4 kB / 0.8986 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.983e-05/0.1872, allocations: 0 / 0.8986 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.1872, allocations: 0 / 0.8986 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.129e-05/0.1872, allocations: 75.28 kB / 0.8987 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1872, allocations: 0 / 0.8987 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001708/0.1874, allocations: 8 kB / 0.8987 GB, free: 65.16 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.0002582/0.1877, allocations: 0.6085 MB / 0.8993 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 5.649e-05/0.1877, allocations: 11.94 kB / 0.8993 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1877, allocations: 0 / 0.8993 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.295e-05/0.1877, allocations: 8 kB / 0.8993 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1879, allocations: 0 / 0.8993 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.1881, allocations: 118.4 kB / 0.8995 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.011e-05/0.1882, allocations: 0.6731 MB / 0.9001 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.389e-05/0.1882, allocations: 4 kB / 0.9001 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.1882, allocations: 11.44 kB / 0.9001 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.1883, allocations: 0 / 0.9001 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008998/0.1973, allocations: 0.8728 MB / 0.901 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001255/0.1974, allocations: 215.6 kB / 0.9012 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.153, allocations: 2.25 kB / 0.9012 GB, free: 62.64 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)