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.002253/0.002253, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002217/0.002218, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.73/3.73, allocations: 205.4 MB / 222.1 MB, free: 5.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 3.229/3.229, allocations: 292.6 MB / 0.5497 GB, free: 14.62 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.000795/0.0007954, allocations: 15.03 kB / 0.6737 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4863/0.4871, allocations: 116.3 MB / 0.7872 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003652/0.4909, allocations: 1.232 MB / 0.7884 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006699/0.4916, allocations: 133.7 kB / 0.7886 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.978e-05/0.4917, allocations: 0 / 0.7886 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.4918, allocations: 3.938 kB / 0.7886 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.949e-05/0.4919, allocations: 7.984 kB / 0.7886 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.4924, allocations: 27.91 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.4925, allocations: 19.98 kB / 0.7886 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.4927, allocations: 7.984 kB / 0.7886 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.281e-05/0.4928, allocations: 15.92 kB / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.665e-05/0.4929, allocations: 19.91 kB / 0.7887 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.4929, allocations: 4 kB / 0.7887 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.493, allocations: 4 kB / 0.7887 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.4931, allocations: 15.98 kB / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.96e-05/0.4931, allocations: 25.7 kB / 0.7887 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.4933, allocations: 27.95 kB / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4933, allocations: 3.938 kB / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of FrontEnd: time 5.59e-06/0.4934, allocations: 0 / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.4934, allocations: 0 / 0.7887 GB, free: 10.33 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.0008796/0.4943, allocations: 354.2 kB / 0.7891 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 8.582e-05/0.4944, allocations: 19.97 kB / 0.7891 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.233e-05/0.4944, allocations: 38.55 kB / 0.7891 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.4945, allocations: 0 / 0.7891 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.4947, allocations: 170.9 kB / 0.7893 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.4948, allocations: 4 kB / 0.7893 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.4948, allocations: 4 kB / 0.7893 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.4951, allocations: 69.64 kB / 0.7894 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4951, allocations: 0 / 0.7894 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.4952, allocations: 8 kB / 0.7894 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.914e-06/0.4952, allocations: 0 / 0.7894 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.4955, allocations: 55.89 kB / 0.7894 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.4962, allocations: 280.8 kB / 0.7897 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.4967, allocations: 66.47 kB / 0.7898 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004841/0.4972, allocations: 397.7 kB / 0.7901 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.4973, allocations: 30.56 kB / 0.7902 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.4973, allocations: 4 kB / 0.7902 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0006588/0.4979, allocations: 113.5 kB / 0.7903 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.498, allocations: 51.41 kB / 0.7903 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.4982, allocations: 113.8 kB / 0.7904 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.4982, allocations: 29.7 kB / 0.7905 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.4983, allocations: 84.14 kB / 0.7905 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.4983, allocations: 7.891 kB / 0.7905 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-06/0.4983, allocations: 4 kB / 0.7905 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002337/0.4986, allocations: 314.8 kB / 0.7908 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.4987, allocations: 31.92 kB / 0.7909 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.4989, allocations: 20.16 kB / 0.7909 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.499, allocations: 28.06 kB / 0.7909 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.499, allocations: 0 / 0.7909 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003275/0.4994, allocations: 89.66 kB / 0.791 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4994, allocations: 7.984 kB / 0.791 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4994, allocations: 0 / 0.791 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.4995, allocations: 0 / 0.791 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4996, allocations: 19.92 kB / 0.791 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.4996, allocations: 0 / 0.791 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.15e-05/0.4997, allocations: 11.91 kB / 0.791 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.4997, allocations: 7.953 kB / 0.7911 GB, free: 7.633 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.0001588/0.4999, allocations: 109.8 kB / 0.7912 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.5, allocations: 11.92 kB / 0.7912 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004177/0.5004, allocations: 93.86 kB / 0.7913 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.5004, allocations: 0 / 0.7913 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5004, allocations: 0 / 0.7913 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5004, allocations: 0 / 0.7913 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.5008, allocations: 177.6 kB / 0.7914 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5008, allocations: 0 / 0.7914 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5009, allocations: 15.98 kB / 0.7914 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5009, allocations: 4 kB / 0.7915 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.5009, allocations: 0 / 0.7915 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5009, allocations: 0 / 0.7915 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5009, allocations: 3.984 kB / 0.7915 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/0.5014, allocations: 199.3 kB / 0.7916 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.5015, allocations: 81.05 kB / 0.7917 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.5015, allocations: 4 kB / 0.7917 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.5016, allocations: 11.98 kB / 0.7917 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.589e-05/0.5017, allocations: 0 / 0.7917 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.5017, allocations: 4 kB / 0.7917 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.664e-05/0.5018, allocations: 87.27 kB / 0.7918 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5018, allocations: 0 / 0.7918 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003773/0.5022, allocations: 16 kB / 0.7918 GB, free: 6.723 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.0009961/0.5032, allocations: 0.7279 MB / 0.7926 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003482/0.5036, allocations: 55.95 kB / 0.7926 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5036, allocations: 0 / 0.7926 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.5038, allocations: 36.25 kB / 0.7926 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.5041, allocations: 7.938 kB / 0.7926 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.5055, allocations: 450.5 kB / 0.7931 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.506, allocations: 0.6809 MB / 0.7937 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.697e-05/0.5061, allocations: 15.97 kB / 0.7938 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.944e-05/0.5062, allocations: 15.44 kB / 0.7938 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of SimCode: time 7.71e-07/0.5062, allocations: 0 / 0.7938 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.5283, allocations: 1.358 MB / 0.7951 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003903/0.5288, allocations: 191.8 kB / 0.7953 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.959/3.488, allocations: 0 / 0.7953 GB, free: 3.164 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: