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.001079/0.001079, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002159/0.002159, allocations: 282.7 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9454/0.9454, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 99.73 kB / 0.5954 GB, free: 27.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1639, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002473/0.1665, allocations: 0.5763 MB / 0.6809 GB, free: 8 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003973/0.1669, allocations: 59.77 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.098e-05/0.1669, allocations: 0.7812 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.934e-05/0.167, allocations: 0 / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.167, allocations: 5.719 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.1673, allocations: 19.92 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.1675, allocations: 39.89 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.852e-05/0.1675, allocations: 0 / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.828e-05/0.1676, allocations: 12.66 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.186e-05/0.1676, allocations: 11.97 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.1677, allocations: 4.625 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.692e-05/0.1678, allocations: 15.98 kB / 0.681 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.1678, allocations: 8.875 kB / 0.681 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.279e-05/0.1679, allocations: 15.88 kB / 0.681 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.168, allocations: 32.95 kB / 0.6811 GB, free: 15.79 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.168, allocations: 0 / 0.6811 GB, free: 15.79 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.168, allocations: 0 / 0.6811 GB, free: 15.79 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.168, allocations: 5 kB / 0.6811 GB, free: 15.79 MB / 494.1 MB 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.0004306/0.1685, allocations: 339.8 kB / 0.6814 GB, free: 15.4 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.1685, allocations: 8.562 kB / 0.6814 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.491e-05/0.1686, allocations: 42.75 kB / 0.6815 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.1687, allocations: 4.844 kB / 0.6815 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.1688, allocations: 164.4 kB / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1688, allocations: 4.375 kB / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.1688, allocations: 8.375 kB / 0.6816 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001539/0.169, allocations: 62.17 kB / 0.6817 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.169, allocations: 3.938 kB / 0.6817 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.169, allocations: 0 / 0.6817 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.1691, allocations: 4 kB / 0.6817 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.1693, allocations: 99.86 kB / 0.6818 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.1695, allocations: 177.6 kB / 0.682 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.1697, allocations: 78.47 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.128e-05/0.1698, allocations: 32.78 kB / 0.6821 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004282/0.1702, allocations: 401.5 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1703, allocations: 30.56 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.914e-06/0.1703, allocations: 0 / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003839/0.1707, allocations: 117.9 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.1708, allocations: 59.41 kB / 0.6826 GB, free: 13.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.849e-05/0.1708, allocations: 97.7 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.1709, allocations: 29.7 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/0.1709, allocations: 80.14 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.403e-05/0.171, allocations: 23.66 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/0.171, allocations: 29.7 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1712, allocations: 318.8 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.112e-05/0.1713, allocations: 23.92 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.597e-05/0.1713, allocations: 28.42 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.1715, allocations: 57 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1715, allocations: 4 kB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002138/0.1717, allocations: 89.59 kB / 0.6834 GB, free: 13.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1718, allocations: 13.66 kB / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1718, allocations: 0 / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1718, allocations: 0 / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.172, allocations: 19.94 kB / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.172, allocations: 0 / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.02e-05/0.172, allocations: 11.92 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1721, allocations: 8 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB 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.0001734/0.1722, allocations: 119.2 kB / 0.6836 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.1723, allocations: 11.83 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.1726, allocations: 129.5 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1727, allocations: 0 / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1727, allocations: 4 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1727, allocations: 3.984 kB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.1729, allocations: 181.5 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1729, allocations: 0 / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.173, allocations: 12 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.173, allocations: 7.938 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.173, allocations: 3.984 kB / 0.6839 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.654e-06/0.173, allocations: 0 / 0.6839 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.173, allocations: 0 / 0.6839 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.1733, allocations: 125 kB / 0.684 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-05/0.1734, allocations: 92.88 kB / 0.6841 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.1734, allocations: 0 / 0.6841 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.823e-05/0.1734, allocations: 7.938 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.1735, allocations: 15.92 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1735, allocations: 0 / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.463e-05/0.1735, allocations: 75.28 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1735, allocations: 0 / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.1739, allocations: 16 kB / 0.6842 GB, free: 12.15 MB / 494.1 MB 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.0007507/0.1747, allocations: 0.667 MB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.1749, allocations: 76.33 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/0.175, allocations: 0 / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.22e-05/0.1751, allocations: 44.08 kB / 0.685 GB, free: 11.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.1753, allocations: 4.75 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006095/0.1759, allocations: 170.7 kB / 0.6851 GB, free: 11.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.1763, allocations: 0.6862 MB / 0.6858 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.1765, allocations: 35.94 kB / 0.6859 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.304e-05/0.1766, allocations: 19.42 kB / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1766, allocations: 4 kB / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.1999, allocations: 1.55 MB / 0.6874 GB, free: 8.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.123/7.323, allocations: 7.312 kB / 0.6874 GB, free: 8.922 MB / 494.1 MB (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)