Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.41/1.41, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 189.7 kB / 326.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 0.5776 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007527/0.0007527, allocations: 90.45 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003079, allocations: 12.47 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1715, allocations: 106.3 MB / 0.9003 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0005515/0.1721, allocations: 330.1 kB / 0.9006 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0001866/0.1723, allocations: 49.22 kB / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.1723, allocations: 0 / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.989e-05/0.1723, allocations: 0 / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.1724, allocations: 3.938 kB / 0.9007 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.1726, allocations: 15.91 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.891e-05/0.1726, allocations: 31.97 kB / 0.9007 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.1727, allocations: 0 / 0.9007 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.903e-05/0.1727, allocations: 11.98 kB / 0.9007 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.919e-05/0.1727, allocations: 11.98 kB / 0.9007 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1728, allocations: 0 / 0.9007 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.503e-05/0.1728, allocations: 20 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.074e-05/0.1729, allocations: 15.97 kB / 0.9008 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.1729, allocations: 33.64 kB / 0.9008 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.935e-05/0.173, allocations: 15.97 kB / 0.9008 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.173, allocations: 3.938 kB / 0.9008 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.803e-06/0.173, allocations: 0 / 0.9008 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.173, allocations: 0 / 0.9008 GB, free: 63.24 MB / 0.6042 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.0002341/0.1732, allocations: 327.4 kB / 0.9011 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1733, allocations: 8.031 kB / 0.9012 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.042e-05/0.1733, allocations: 34.55 kB / 0.9012 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.1734, allocations: 8 kB / 0.9012 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.949e-05/0.1734, allocations: 163.3 kB / 0.9013 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.1734, allocations: 8 kB / 0.9014 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.1735, allocations: 7.984 kB / 0.9014 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.1736, allocations: 65.61 kB / 0.9014 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.1736, allocations: 0 / 0.9014 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1736, allocations: 4 kB / 0.9014 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1736, allocations: 3.938 kB / 0.9014 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.1738, allocations: 103.9 kB / 0.9015 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.1739, allocations: 177.5 kB / 0.9017 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.923e-05/0.174, allocations: 74.53 kB / 0.9018 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.805e-05/0.174, allocations: 28.84 kB / 0.9018 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/0.1743, allocations: 409.5 kB / 0.9022 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.349e-05/0.1743, allocations: 34.56 kB / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.1743, allocations: 0 / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0002113/0.1745, allocations: 105.9 kB / 0.9023 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.1746, allocations: 63.39 kB / 0.9024 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.095e-05/0.1746, allocations: 97.77 kB / 0.9025 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.1746, allocations: 25.7 kB / 0.9025 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.244e-05/0.1746, allocations: 80.33 kB / 0.9026 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.1746, allocations: 19.75 kB / 0.9026 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.1747, allocations: 8 kB / 0.9026 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.348e-05/0.1747, allocations: 314.8 kB / 0.9029 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.256e-05/0.1747, allocations: 19.98 kB / 0.9029 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.844e-05/0.1748, allocations: 24.36 kB / 0.9029 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.538e-05/0.1748, allocations: 40.09 kB / 0.903 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1748, allocations: 0 / 0.903 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001036/0.1749, allocations: 89.52 kB / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.175, allocations: 8 kB / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.175, allocations: 0 / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.175, allocations: 0 / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.1751, allocations: 19.98 kB / 0.9031 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.1751, allocations: 3.984 kB / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.935e-05/0.1751, allocations: 7.938 kB / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.1751, allocations: 4 kB / 0.9031 GB, free: 60.58 MB / 0.6042 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 8.837e-05/0.1752, allocations: 133.7 kB / 0.9032 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-06/0.1753, allocations: 3.906 kB / 0.9032 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.1754, allocations: 121.7 kB / 0.9034 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1754, allocations: 0 / 0.9034 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1755, allocations: 0 / 0.9034 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1755, allocations: 0 / 0.9034 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.25e-05/0.1755, allocations: 185.5 kB / 0.9035 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1755, allocations: 7.953 kB / 0.9035 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.451e-05/0.1756, allocations: 19.92 kB / 0.9036 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1756, allocations: 4 kB / 0.9036 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1756, allocations: 4 kB / 0.9036 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1756, allocations: 0 / 0.9036 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1756, allocations: 0 / 0.9036 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1758, allocations: 117.4 kB / 0.9037 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.1758, allocations: 92.97 kB / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.1758, allocations: 0 / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.514e-05/0.1758, allocations: 0 / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.1758, allocations: 11.98 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.1759, allocations: 4 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.13e-05/0.1759, allocations: 83.22 kB / 0.9039 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1759, allocations: 0 / 0.9039 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00018/0.1761, allocations: 20 kB / 0.9039 GB, free: 59.68 MB / 0.6042 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.000326/0.1764, allocations: 0.6693 MB / 0.9045 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001027/0.1765, allocations: 60.28 kB / 0.9046 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.1765, allocations: 0 / 0.9046 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.11e-05/0.1766, allocations: 35.92 kB / 0.9046 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.1767, allocations: 6.125 kB / 0.9046 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003105/0.177, allocations: 188.2 kB / 0.9048 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.999e-05/0.1771, allocations: 0.6848 MB / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.681e-05/0.1772, allocations: 39.8 kB / 0.9055 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/0.1772, allocations: 19.42 kB / 0.9055 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.1772, allocations: 0 / 0.9055 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.1919, allocations: 1.357 MB / 0.9069 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.1922, allocations: 204.5 kB / 0.9071 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.494/1.686, allocations: 0 / 0.9071 GB, free: 56.47 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)