Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.01039/0.01039, allocations: 96.56 kB / 15.73 MB, free: 6.043 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.002378/0.002378, allocations: 195.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002458/0.002458, allocations: 279 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.09/1.09, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00276/0.00276, allocations: 99.84 kB / 0.6943 GB, free: 3.574 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4845/0.4872, allocations: 89.15 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001631/0.4889, allocations: 0.5852 MB / 0.782 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002639/0.4892, allocations: 62.19 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.84e-05/0.4892, allocations: 0 / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.246e-05/0.4892, allocations: 0.5625 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.4893, allocations: 0 / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.4895, allocations: 14.72 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.913e-05/0.4896, allocations: 30.17 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.66e-05/0.4896, allocations: 3.391 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.152e-05/0.4897, allocations: 17.45 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.624e-05/0.4897, allocations: 13.72 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.4897, allocations: 1.938 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.869e-05/0.4898, allocations: 23.06 kB / 0.7821 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.632e-05/0.4898, allocations: 10.56 kB / 0.7821 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.4899, allocations: 13.98 kB / 0.7821 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 9.838e-05/0.49, allocations: 35.84 kB / 0.7822 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.49, allocations: 0 / 0.7822 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.402e-06/0.49, allocations: 1.188 kB / 0.7822 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.49, allocations: 0 / 0.7822 GB, free: 13.38 MB / 0.5606 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.0003654/0.4904, allocations: 340.2 kB / 0.7825 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.4904, allocations: 13.5 kB / 0.7825 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.642e-05/0.4905, allocations: 37.67 kB / 0.7826 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.363e-05/0.4905, allocations: 3.062 kB / 0.7826 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.4906, allocations: 167 kB / 0.7827 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4906, allocations: 11.38 kB / 0.7827 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.4907, allocations: 2.906 kB / 0.7827 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.4908, allocations: 64.55 kB / 0.7828 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4908, allocations: 5.094 kB / 0.7828 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.4908, allocations: 4 kB / 0.7828 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4908, allocations: 1.062 kB / 0.7828 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.491, allocations: 101.6 kB / 0.7829 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.4912, allocations: 173 kB / 0.7831 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.4913, allocations: 71.67 kB / 0.7831 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.884e-05/0.4914, allocations: 32.66 kB / 0.7832 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003486/0.4917, allocations: 402.2 kB / 0.7835 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.4918, allocations: 47.88 kB / 0.7836 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.4918, allocations: 336 / 0.7836 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0003366/0.4921, allocations: 115.4 kB / 0.7837 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.4922, allocations: 53.69 kB / 0.7838 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.277e-05/0.4922, allocations: 95.78 kB / 0.7838 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.4923, allocations: 25.7 kB / 0.7839 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.287e-05/0.4923, allocations: 82.12 kB / 0.7839 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.4924, allocations: 24.81 kB / 0.784 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.4925, allocations: 31.77 kB / 0.784 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.4926, allocations: 317.6 kB / 0.7843 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.79e-05/0.4927, allocations: 20.45 kB / 0.7843 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.523e-05/0.4928, allocations: 28.12 kB / 0.7843 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.4929, allocations: 63.44 kB / 0.7844 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4929, allocations: 0 / 0.7844 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001436/0.493, allocations: 90.47 kB / 0.7845 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.493, allocations: 10.94 kB / 0.7845 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4931, allocations: 0.5625 kB / 0.7845 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.4931, allocations: 1.5 kB / 0.7845 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.4932, allocations: 21.75 kB / 0.7845 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.4932, allocations: 7.875 kB / 0.7845 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.013e-05/0.4932, allocations: 5.344 kB / 0.7845 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.4932, allocations: 5.359 kB / 0.7845 GB, free: 11.12 MB / 0.5606 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.0001417/0.4934, allocations: 120 kB / 0.7847 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.4934, allocations: 10.19 kB / 0.7847 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.4937, allocations: 127.8 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4937, allocations: 5.281 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.4937, allocations: 0 / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.4937, allocations: 0.6562 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.4938, allocations: 174.4 kB / 0.785 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4938, allocations: 0 / 0.785 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.86e-05/0.4939, allocations: 22.17 kB / 0.785 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4939, allocations: 3.938 kB / 0.785 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.4939, allocations: 6.188 kB / 0.785 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.494, allocations: 2.188 kB / 0.785 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.494, allocations: 3.984 kB / 0.785 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/0.4941, allocations: 121.6 kB / 0.7851 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.4942, allocations: 87.78 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.4942, allocations: 1.125 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.727e-05/0.4942, allocations: 4.609 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.4943, allocations: 12.22 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.4943, allocations: 3.266 kB / 0.7852 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.138e-05/0.4943, allocations: 75.28 kB / 0.7853 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4943, allocations: 0 / 0.7853 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002086/0.4945, allocations: 23.38 kB / 0.7853 GB, free: 10.43 MB / 0.5606 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.0005401/0.4951, allocations: 0.6701 MB / 0.786 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.4953, allocations: 63.97 kB / 0.786 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4953, allocations: 5.375 kB / 0.786 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.24e-05/0.4953, allocations: 38.64 kB / 0.7861 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.4955, allocations: 7.844 kB / 0.7861 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004018/0.4959, allocations: 171.9 kB / 0.7862 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.4962, allocations: 0.6822 MB / 0.7869 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.4963, allocations: 38.66 kB / 0.7869 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.871e-05/0.4964, allocations: 18.95 kB / 0.787 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.4964, allocations: 4 kB / 0.787 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.5181, allocations: 1.578 MB / 0.7885 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/8.133, allocations: 13.94 kB / 0.7885 GB, free: 8.527 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)