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.008834/0.008834, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002251/0.002251, allocations: 195.9 kB / 16.68 MB, free: 5.934 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.44/1.44, 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.00261/0.00261, allocations: 283 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002799/0.002799, allocations: 99.84 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1737, allocations: 86.97 MB / 0.7659 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001748/0.1755, allocations: 0.576 MB / 0.7665 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002852/0.1758, allocations: 71.7 kB / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.259e-05/0.1758, allocations: 0 / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.1759, allocations: 0 / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.831e-06/0.1759, allocations: 0 / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.1762, allocations: 23.92 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.519e-05/0.1763, allocations: 27.95 kB / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.1763, allocations: 4 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.283e-05/0.1763, allocations: 15.92 kB / 0.7666 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.442e-05/0.1764, allocations: 15.98 kB / 0.7667 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.1764, allocations: 0 / 0.7667 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.1765, allocations: 15.98 kB / 0.7667 GB, free: 8.148 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.816e-05/0.1765, allocations: 11.98 kB / 0.7667 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.125e-05/0.1765, allocations: 11.94 kB / 0.7667 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001016/0.1767, allocations: 36.11 kB / 0.7667 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1767, allocations: 4 kB / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.293e-06/0.1767, allocations: 0 / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.1767, allocations: 0 / 0.7667 GB, free: 8.086 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.0004462/0.1771, allocations: 339.3 kB / 0.7671 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1772, allocations: 16.02 kB / 0.7671 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.1772, allocations: 34.75 kB / 0.7671 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.1773, allocations: 4.938 kB / 0.7671 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.1774, allocations: 164.3 kB / 0.7673 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-06/0.1774, allocations: 4.375 kB / 0.7673 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1774, allocations: 8.375 kB / 0.7673 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.1776, allocations: 66.22 kB / 0.7673 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1776, allocations: 3.938 kB / 0.7674 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1776, allocations: 4 kB / 0.7674 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1776, allocations: 0 / 0.7674 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.1778, allocations: 99.88 kB / 0.7674 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002133/0.178, allocations: 177.6 kB / 0.7676 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.1781, allocations: 74.48 kB / 0.7677 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.473e-05/0.1782, allocations: 33.17 kB / 0.7677 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003647/0.1786, allocations: 409.5 kB / 0.7681 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1786, allocations: 34.56 kB / 0.7681 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.1786, allocations: 0 / 0.7681 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0002603/0.1789, allocations: 113.5 kB / 0.7683 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.1789, allocations: 51.41 kB / 0.7683 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.503e-05/0.179, allocations: 101.8 kB / 0.7684 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.179, allocations: 29.64 kB / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.179, allocations: 84.14 kB / 0.7685 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.1791, allocations: 23.8 kB / 0.7685 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.1791, allocations: 33.7 kB / 0.7686 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1793, allocations: 314.8 kB / 0.7689 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.394e-05/0.1794, allocations: 19.98 kB / 0.7689 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.438e-05/0.1794, allocations: 20.42 kB / 0.7689 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.1796, allocations: 64.98 kB / 0.769 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1796, allocations: 0 / 0.769 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002137/0.1798, allocations: 97.5 kB / 0.7691 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1798, allocations: 11.94 kB / 0.7691 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1799, allocations: 0 / 0.7691 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.1799, allocations: 0 / 0.7691 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.18, allocations: 23.98 kB / 0.7691 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.1801, allocations: 3.984 kB / 0.7691 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.082e-05/0.1801, allocations: 7.938 kB / 0.7691 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1801, allocations: 0 / 0.7691 GB, free: 5.336 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.0001954/0.1803, allocations: 122.5 kB / 0.7692 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.1804, allocations: 15.89 kB / 0.7692 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000326/0.1807, allocations: 121.5 kB / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1807, allocations: 0 / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1808, allocations: 4 kB / 0.7694 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.1808, allocations: 3.984 kB / 0.7694 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.181, allocations: 169.6 kB / 0.7695 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.181, allocations: 3.938 kB / 0.7695 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.1811, allocations: 19.98 kB / 0.7695 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.1811, allocations: 3.938 kB / 0.7695 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.1811, allocations: 4 kB / 0.7695 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1812, allocations: 8 kB / 0.7696 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1812, allocations: 0 / 0.7696 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.1814, allocations: 117 kB / 0.7697 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.1815, allocations: 92.94 kB / 0.7698 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.1815, allocations: 4 kB / 0.7698 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.038e-05/0.1816, allocations: 4 kB / 0.7698 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1816, allocations: 7.984 kB / 0.7698 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1816, allocations: 4 kB / 0.7698 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.055e-05/0.1817, allocations: 79.28 kB / 0.7699 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/0.1817, allocations: 0 / 0.7699 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004338/0.1821, allocations: 16 kB / 0.7699 GB, free: 4.449 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.0007214/0.1829, allocations: 0.6709 MB / 0.7705 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002118/0.1831, allocations: 68.28 kB / 0.7706 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.1831, allocations: 0 / 0.7706 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.069e-05/0.1832, allocations: 44.06 kB / 0.7706 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.1835, allocations: 4 kB / 0.7706 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005799/0.1841, allocations: 178.5 kB / 0.7708 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.1845, allocations: 0.6846 MB / 0.7715 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001307/0.1846, allocations: 39.94 kB / 0.7715 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.75e-05/0.1847, allocations: 15.44 kB / 0.7715 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of SimCode: time 2.695e-06/0.1847, allocations: 0 / 0.7715 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.2112, allocations: 1.585 MB / 0.7731 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.112, allocations: 14 kB / 0.7731 GB, free: 1.207 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)