Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 189.5 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.65/1.65, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001369/0.00137, allocations: 73.83 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1885, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001734/0.1903, allocations: 0.6029 MB / 0.7842 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002267/0.1905, allocations: 55.78 kB / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.604e-05/0.1906, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.1906, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.1906, allocations: 0 / 0.7843 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.1909, allocations: 19.98 kB / 0.7843 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.897e-05/0.191, allocations: 35.95 kB / 0.7843 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.191, allocations: 0 / 0.7843 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.191, allocations: 15.94 kB / 0.7843 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.742e-05/0.1911, allocations: 15.97 kB / 0.7844 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.1911, allocations: 0 / 0.7844 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.186e-05/0.1912, allocations: 19.98 kB / 0.7844 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.1912, allocations: 15.92 kB / 0.7844 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.796e-05/0.1912, allocations: 11.94 kB / 0.7844 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.803e-05/0.1913, allocations: 31.89 kB / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1913, allocations: 0 / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1913, allocations: 0 / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.1913, allocations: 4 kB / 0.7844 GB, free: 12.45 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003345/0.1917, allocations: 339.7 kB / 0.7848 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1917, allocations: 12.03 kB / 0.7848 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.1918, allocations: 38.73 kB / 0.7848 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.1918, allocations: 4.938 kB / 0.7848 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.349e-05/0.1919, allocations: 160.4 kB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1919, allocations: 12.31 kB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-06/0.1919, allocations: 384 / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.192, allocations: 74.09 kB / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.192, allocations: 7.938 kB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.1921, allocations: 0 / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1921, allocations: 0 / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1922, allocations: 99.88 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.1924, allocations: 173.6 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.857e-05/0.1925, allocations: 74.48 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.1925, allocations: 32.84 kB / 0.7854 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002745/0.1928, allocations: 405.5 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.1928, allocations: 38.56 kB / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.1928, allocations: 0 / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0002106/0.193, allocations: 117.8 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.1931, allocations: 51.41 kB / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.319e-05/0.1931, allocations: 101.8 kB / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.1931, allocations: 25.7 kB / 0.7861 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.002e-05/0.1932, allocations: 80.14 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.1932, allocations: 23.66 kB / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.153e-05/0.1932, allocations: 37.7 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.1933, allocations: 310.8 kB / 0.7866 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.625e-05/0.1934, allocations: 19.98 kB / 0.7866 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.299e-05/0.1934, allocations: 23.92 kB / 0.7866 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.442e-05/0.1935, allocations: 64.77 kB / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1935, allocations: 0 / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001238/0.1937, allocations: 85.67 kB / 0.7867 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.1937, allocations: 8.875 kB / 0.7867 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.1937, allocations: 0 / 0.7867 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1937, allocations: 8 kB / 0.7868 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.216e-05/0.1938, allocations: 23.92 kB / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1938, allocations: 4 kB / 0.7868 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.956e-05/0.1938, allocations: 3.906 kB / 0.7868 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.1938, allocations: 4 kB / 0.7868 GB, free: 9.711 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001083/0.194, allocations: 125.8 kB / 0.7869 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.194, allocations: 3.938 kB / 0.7869 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.1942, allocations: 134.2 kB / 0.787 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1942, allocations: 4 kB / 0.787 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1942, allocations: 0 / 0.787 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1942, allocations: 7.922 kB / 0.7871 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.1943, allocations: 169.6 kB / 0.7872 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1943, allocations: 0 / 0.7872 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.1944, allocations: 19.98 kB / 0.7872 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1944, allocations: 3.938 kB / 0.7872 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.1944, allocations: 8 kB / 0.7872 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1944, allocations: 0 / 0.7872 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1944, allocations: 0 / 0.7872 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.1946, allocations: 129 kB / 0.7874 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.1946, allocations: 92.97 kB / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.1946, allocations: 0 / 0.7875 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.646e-05/0.1946, allocations: 7.938 kB / 0.7875 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-05/0.1947, allocations: 7.984 kB / 0.7875 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.1947, allocations: 4 kB / 0.7875 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.101e-05/0.1947, allocations: 75.28 kB / 0.7875 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1947, allocations: 4 kB / 0.7875 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001869/0.1949, allocations: 16 kB / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004062/0.1953, allocations: 0.667 MB / 0.7882 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001212/0.1954, allocations: 59.91 kB / 0.7883 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1954, allocations: 4 kB / 0.7883 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.914e-05/0.1955, allocations: 43.91 kB / 0.7883 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.1956, allocations: 0 / 0.7883 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.196, allocations: 186.5 kB / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.1962, allocations: 0.6875 MB / 0.7892 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.1962, allocations: 39.72 kB / 0.7892 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.1963, allocations: 23.38 kB / 0.7892 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.1963, allocations: 0 / 0.7892 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01459/0.2109, allocations: 1.546 MB / 0.7907 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.965/7.176, allocations: 7.875 kB / 0.7907 GB, free: 5.547 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)