Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.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.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_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.001009/0.001009, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001199/0.001199, allocations: 168.7 kB / 15.95 MB, free: 204 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.727/1.727, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.758/1.758, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.000524/0.0005242, allocations: 13.28 kB / 0.6738 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2721, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001992/0.2741, allocations: 1.243 MB / 0.7886 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003877/0.2745, allocations: 129.6 kB / 0.7887 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.071e-05/0.2746, allocations: 4 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.695e-05/0.2746, allocations: 0 / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.661e-05/0.2747, allocations: 3.938 kB / 0.7888 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.2749, allocations: 23.95 kB / 0.7888 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.274e-05/0.275, allocations: 31.92 kB / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.829e-05/0.2751, allocations: 8 kB / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.544e-05/0.2752, allocations: 15.92 kB / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.579e-05/0.2752, allocations: 15.92 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.2752, allocations: 4 kB / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2754, allocations: 15.97 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.2754, allocations: 4 kB / 0.7889 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.99e-05/0.2754, allocations: 29.7 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.352e-05/0.2755, allocations: 27.95 kB / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2756, allocations: 0 / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2756, allocations: 0 / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.2756, allocations: 4 kB / 0.7889 GB, free: 10.27 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005169/0.2761, allocations: 355.5 kB / 0.7893 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.2761, allocations: 8.031 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.323e-05/0.2762, allocations: 34.56 kB / 0.7893 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.948e-05/0.2762, allocations: 4 kB / 0.7893 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.2764, allocations: 174.9 kB / 0.7895 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2764, allocations: 4 kB / 0.7895 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.2764, allocations: 4 kB / 0.7895 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.2767, allocations: 73.64 kB / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.2767, allocations: 0 / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.2767, allocations: 0 / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2767, allocations: 0 / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.2769, allocations: 67.88 kB / 0.7896 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.2774, allocations: 276.8 kB / 0.7899 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.2778, allocations: 66.48 kB / 0.7899 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.2779, allocations: 36.89 kB / 0.79 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003808/0.2783, allocations: 393.5 kB / 0.7904 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2783, allocations: 38.5 kB / 0.7904 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.2783, allocations: 0 / 0.7904 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003995/0.2787, allocations: 117.5 kB / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.2788, allocations: 51.41 kB / 0.7906 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.2789, allocations: 113.8 kB / 0.7907 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.2789, allocations: 25.7 kB / 0.7907 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.546e-05/0.279, allocations: 88.14 kB / 0.7908 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.279, allocations: 3.906 kB / 0.7908 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.279, allocations: 4 kB / 0.7908 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2791, allocations: 314.8 kB / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.2793, allocations: 23.98 kB / 0.7911 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.783e-05/0.2794, allocations: 31.91 kB / 0.7911 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.312e-05/0.2795, allocations: 23.98 kB / 0.7912 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2795, allocations: 0 / 0.7912 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000211/0.2797, allocations: 85.66 kB / 0.7912 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2797, allocations: 8 kB / 0.7912 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2797, allocations: 0 / 0.7912 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2798, allocations: 0 / 0.7912 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.812e-05/0.2799, allocations: 11.98 kB / 0.7913 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.2799, allocations: 0 / 0.7913 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.555e-05/0.2799, allocations: 23.84 kB / 0.7913 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.28, allocations: 3.938 kB / 0.7913 GB, free: 7.531 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.000121/0.2801, allocations: 113.8 kB / 0.7914 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.2801, allocations: 0 / 0.7914 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.2804, allocations: 97.48 kB / 0.7915 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2804, allocations: 7.984 kB / 0.7915 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2804, allocations: 0 / 0.7915 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.2804, allocations: 0 / 0.7915 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.2808, allocations: 169.6 kB / 0.7917 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2808, allocations: 0 / 0.7917 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.074e-05/0.2808, allocations: 11.98 kB / 0.7917 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2809, allocations: 0 / 0.7917 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2809, allocations: 8 kB / 0.7917 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2809, allocations: 0 / 0.7917 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2809, allocations: 0 / 0.7917 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.2812, allocations: 195.7 kB / 0.7919 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.6e-05/0.2813, allocations: 93.05 kB / 0.7919 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.2813, allocations: 0 / 0.7919 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.998e-05/0.2814, allocations: 4 kB / 0.792 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.2815, allocations: 11.92 kB / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.2815, allocations: 0 / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.14e-05/0.2815, allocations: 91.34 kB / 0.792 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2815, allocations: 0 / 0.792 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002438/0.2818, allocations: 12 kB / 0.7921 GB, free: 6.625 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0007988/0.2826, allocations: 0.7318 MB / 0.7928 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002632/0.2829, allocations: 59.95 kB / 0.7928 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2829, allocations: 0 / 0.7928 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.654e-05/0.283, allocations: 35.97 kB / 0.7929 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.2833, allocations: 0 / 0.7929 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.2844, allocations: 454.4 kB / 0.7933 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.2849, allocations: 0.6809 MB / 0.794 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.457e-05/0.285, allocations: 8.547 kB / 0.794 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.736e-05/0.2851, allocations: 15.42 kB / 0.794 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of SimCode: time 1.072e-06/0.2851, allocations: 0 / 0.794 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.2984, allocations: 1.394 MB / 0.7953 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.2986, allocations: 191.2 kB / 0.7955 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.061, allocations: 0 / 0.7955 GB, free: 3.047 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: