Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.634/2.634, allocations: 287.3 MB / 302.3 MB, free: 8.297 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.001584/0.001584, allocations: 191.3 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.239/2.239, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001188/0.001188, allocations: 99.52 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006846/0.0006849, allocations: 14.45 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2922, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0007471/0.293, allocations: 321.8 kB / 0.9786 GB, free: 27.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002475/0.2933, allocations: 49.56 kB / 0.9786 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.793e-05/0.2933, allocations: 0 / 0.9786 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.775e-05/0.2933, allocations: 0 / 0.9786 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.773e-06/0.2934, allocations: 0 / 0.9786 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.2936, allocations: 11.98 kB / 0.9787 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.2937, allocations: 27.97 kB / 0.9787 GB, free: 27.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.604e-05/0.2937, allocations: 0 / 0.9787 GB, free: 27.88 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 2.142e-05/0.2938, allocations: 11.92 kB / 0.9787 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 3.576e-05/0.2938, allocations: 15.98 kB / 0.9787 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.2938, allocations: 0 / 0.9787 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.2939, allocations: 15.98 kB / 0.9787 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.294, allocations: 11.92 kB / 0.9787 GB, free: 27.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.602e-05/0.294, allocations: 33.7 kB / 0.9788 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.574e-05/0.2941, allocations: 19.97 kB / 0.9788 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2941, allocations: 0 / 0.9788 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2941, allocations: 0 / 0.9788 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.391e-06/0.2941, allocations: 4 kB / 0.9788 GB, free: 27.77 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002702/0.2944, allocations: 331.5 kB / 0.9791 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2945, allocations: 19.94 kB / 0.9791 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.2945, allocations: 38.56 kB / 0.9792 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.2946, allocations: 0 / 0.9792 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.208e-05/0.2946, allocations: 171 kB / 0.9793 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.2947, allocations: 0 / 0.9793 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.2947, allocations: 4 kB / 0.9793 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.2949, allocations: 61.66 kB / 0.9794 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2949, allocations: 4 kB / 0.9794 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.2949, allocations: 4 kB / 0.9794 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.2949, allocations: 4 kB / 0.9794 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.2951, allocations: 99.81 kB / 0.9795 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.2953, allocations: 177.5 kB / 0.9797 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.2955, allocations: 66.55 kB / 0.9797 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003059/0.2958, allocations: 409.5 kB / 0.9801 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.2958, allocations: 38.56 kB / 0.9802 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/0.2958, allocations: 0 / 0.9802 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003283/0.2962, allocations: 117.8 kB / 0.9803 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.2962, allocations: 55.73 kB / 0.9803 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.236e-05/0.2963, allocations: 93.84 kB / 0.9804 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.2963, allocations: 33.64 kB / 0.9804 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.651e-05/0.2963, allocations: 80.33 kB / 0.9805 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.2964, allocations: 23.66 kB / 0.9805 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.2964, allocations: 0 / 0.9805 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.248e-05/0.2964, allocations: 318.8 kB / 0.9808 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.572e-05/0.2965, allocations: 19.98 kB / 0.9809 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.505e-05/0.2966, allocations: 24.03 kB / 0.9809 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.537e-05/0.2967, allocations: 23.98 kB / 0.9809 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.2967, allocations: 7.953 kB / 0.9809 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001873/0.2969, allocations: 93.53 kB / 0.981 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2969, allocations: 4 kB / 0.981 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2969, allocations: 4 kB / 0.981 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2969, allocations: 0 / 0.981 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.2971, allocations: 24 kB / 0.981 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.2971, allocations: 0 / 0.981 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.508e-05/0.2972, allocations: 7.891 kB / 0.981 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.2972, allocations: 4 kB / 0.981 GB, free: 25.13 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: 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.0001373/0.2974, allocations: 121.8 kB / 0.9812 GB, free: 25 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.2974, allocations: 11.92 kB / 0.9812 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002974/0.2977, allocations: 129.6 kB / 0.9813 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2977, allocations: 4 kB / 0.9813 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2977, allocations: 0 / 0.9813 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2977, allocations: 0 / 0.9813 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.2979, allocations: 169.6 kB / 0.9815 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.2979, allocations: 3.938 kB / 0.9815 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.2981, allocations: 23.95 kB / 0.9815 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.2981, allocations: 0 / 0.9815 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.2981, allocations: 7.984 kB / 0.9815 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2981, allocations: 0 / 0.9815 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2981, allocations: 0 / 0.9815 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.2983, allocations: 121.3 kB / 0.9816 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.2984, allocations: 89.03 kB / 0.9817 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.2984, allocations: 7.953 kB / 0.9817 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.643e-05/0.2984, allocations: 4 kB / 0.9817 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.2985, allocations: 7.984 kB / 0.9817 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.2985, allocations: 4 kB / 0.9817 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.776e-05/0.2985, allocations: 75.28 kB / 0.9818 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2986, allocations: 4 kB / 0.9818 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000279/0.2988, allocations: 16 kB / 0.9818 GB, free: 24.25 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: 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.0004879/0.2993, allocations: 0.6674 MB / 0.9825 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001881/0.2995, allocations: 67.94 kB / 0.9825 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2996, allocations: 4 kB / 0.9825 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.617e-05/0.2996, allocations: 35.92 kB / 0.9826 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.2998, allocations: 7.953 kB / 0.9826 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004596/0.3002, allocations: 177.1 kB / 0.9827 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.3004, allocations: 0.6913 MB / 0.9834 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001331/0.3006, allocations: 35.94 kB / 0.9835 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.742e-05/0.3006, allocations: 23.42 kB / 0.9835 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of SimCode: time 1.001e-06/0.3006, allocations: 0 / 0.9835 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.3218, allocations: 1.326 MB / 0.9848 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.3221, allocations: 192.8 kB / 0.985 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/2.846, allocations: 0 / 0.985 GB, free: 21.04 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)