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.0008695/0.0008693, allocations: 92.08 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009169/0.0009168, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.79/1.79, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.777/1.777, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0008472/0.0008473, allocations: 15.22 kB / 0.6738 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2873, allocations: 116.3 MB / 0.7874 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0008067/0.2882, allocations: 323.6 kB / 0.7877 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002899/0.2885, allocations: 55.83 kB / 0.7878 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.084e-05/0.2886, allocations: 0 / 0.7878 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.929e-05/0.2886, allocations: 0 / 0.7878 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.476e-06/0.2886, allocations: 0 / 0.7878 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.2889, allocations: 8 kB / 0.7878 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.451e-05/0.289, allocations: 31.95 kB / 0.7878 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.566e-05/0.2891, allocations: 4 kB / 0.7878 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.89e-05/0.2891, allocations: 15.94 kB / 0.7878 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.949e-05/0.2892, allocations: 11.97 kB / 0.7878 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.2892, allocations: 0 / 0.7878 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.274e-05/0.2893, allocations: 15.98 kB / 0.7879 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.929e-05/0.2893, allocations: 15.94 kB / 0.7879 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.975e-05/0.2894, allocations: 25.7 kB / 0.7879 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.414e-05/0.2895, allocations: 23.95 kB / 0.7879 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.2895, allocations: 0 / 0.7879 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2895, allocations: 0 / 0.7879 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.2895, allocations: 4 kB / 0.7879 GB, free: 11.32 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.0003571/0.2899, allocations: 339.5 kB / 0.7882 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.375e-05/0.2899, allocations: 8.031 kB / 0.7883 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.788e-05/0.29, allocations: 38.5 kB / 0.7883 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.29, allocations: 7.984 kB / 0.7883 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.2901, allocations: 163 kB / 0.7885 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.2902, allocations: 4 kB / 0.7885 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.2902, allocations: 4 kB / 0.7885 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.2904, allocations: 69.61 kB / 0.7885 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2904, allocations: 0 / 0.7885 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.2904, allocations: 4 kB / 0.7885 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2904, allocations: 0 / 0.7885 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.2905, allocations: 107.8 kB / 0.7886 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.2908, allocations: 173.6 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.2909, allocations: 70.66 kB / 0.7889 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.435e-05/0.2909, allocations: 33 kB / 0.7889 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00038/0.2913, allocations: 397.5 kB / 0.7893 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.2914, allocations: 46.55 kB / 0.7893 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.2914, allocations: 0 / 0.7893 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0002491/0.2916, allocations: 117.5 kB / 0.7894 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.2917, allocations: 51.41 kB / 0.7895 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.945e-05/0.2917, allocations: 89.86 kB / 0.7896 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2917, allocations: 29.7 kB / 0.7896 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.87e-05/0.2918, allocations: 80.33 kB / 0.7897 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.2918, allocations: 31.62 kB / 0.7897 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.349e-05/0.2918, allocations: 4 kB / 0.7897 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.292, allocations: 322.8 kB / 0.79 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.292, allocations: 19.98 kB / 0.79 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.249e-05/0.2921, allocations: 19.98 kB / 0.7901 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.296e-05/0.2921, allocations: 23.98 kB / 0.7901 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2921, allocations: 0 / 0.7901 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001458/0.2923, allocations: 93.56 kB / 0.7902 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2923, allocations: 8 kB / 0.7902 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2923, allocations: 3.938 kB / 0.7902 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2923, allocations: 3.938 kB / 0.7902 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.2924, allocations: 19.98 kB / 0.7902 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2925, allocations: 4 kB / 0.7902 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.192e-05/0.2925, allocations: 3.906 kB / 0.7902 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.2925, allocations: 4 kB / 0.7902 GB, free: 8.652 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 (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 initialization (11): * Single equations (assignments): 11 * 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 0.0001383/0.2926, allocations: 129.4 kB / 0.7903 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.2927, allocations: 3.953 kB / 0.7903 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.2929, allocations: 134.4 kB / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2929, allocations: 0 / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2929, allocations: 0 / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.2929, allocations: 7.969 kB / 0.7905 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.2931, allocations: 161.7 kB / 0.7906 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2931, allocations: 4 kB / 0.7906 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.088e-05/0.2931, allocations: 19.98 kB / 0.7906 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.2932, allocations: 7.953 kB / 0.7907 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.2932, allocations: 0 / 0.7907 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.2932, allocations: 3.938 kB / 0.7907 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2932, allocations: 3.938 kB / 0.7907 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.2933, allocations: 125.4 kB / 0.7908 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.802e-05/0.2934, allocations: 85.05 kB / 0.7909 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.2934, allocations: 7.953 kB / 0.7909 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.426e-05/0.2934, allocations: 0 / 0.7909 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.2935, allocations: 7.984 kB / 0.7909 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2935, allocations: 4 kB / 0.7909 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.721e-05/0.2935, allocations: 75.28 kB / 0.791 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2935, allocations: 4 kB / 0.791 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002156/0.2937, allocations: 16 kB / 0.791 GB, free: 7.766 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 (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.0005534/0.2943, allocations: 0.6708 MB / 0.7916 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.2945, allocations: 51.97 kB / 0.7917 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2945, allocations: 7.938 kB / 0.7917 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.43e-05/0.2945, allocations: 43.91 kB / 0.7917 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.2947, allocations: 7.953 kB / 0.7917 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004069/0.2951, allocations: 184.4 kB / 0.7919 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.2954, allocations: 0.6809 MB / 0.7926 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.204e-05/0.2955, allocations: 43.92 kB / 0.7926 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.864e-05/0.2955, allocations: 15.44 kB / 0.7926 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.2955, allocations: 3.938 kB / 0.7926 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.012/0.3075, allocations: 1.331 MB / 0.7939 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.3078, allocations: 192.4 kB / 0.7941 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.115, allocations: 0 / 0.7941 GB, free: 4.535 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/linux/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) Environment - environmentSimulation: