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.001067/0.001067, allocations: 101.4 kB / 15.7 MB, free: 28 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.001139/0.001139, allocations: 197 kB / 16.64 MB, free: 6.438 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.274/1.274, allocations: 222.9 MB / 240.3 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 290.4 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9039/0.9039, allocations: 169.3 MB / 0.4983 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 95.88 kB / 0.5955 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1459, allocations: 86.98 MB / 0.6805 GB, free: 496 kB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001604/0.1475, allocations: 0.5751 MB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002318/0.1478, allocations: 63.67 kB / 0.6811 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.1478, allocations: 0 / 0.6811 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.1478, allocations: 0 / 0.6811 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.018e-06/0.1478, allocations: 0 / 0.6811 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.1481, allocations: 19.92 kB / 0.6811 GB, free: 15.83 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.759e-05/0.1482, allocations: 35.95 kB / 0.6811 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.1482, allocations: 0 / 0.6811 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.1482, allocations: 8 kB / 0.6811 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.672e-05/0.1483, allocations: 15.97 kB / 0.6812 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.1483, allocations: 4 kB / 0.6812 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.947e-05/0.1484, allocations: 19.98 kB / 0.6812 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.1484, allocations: 11.94 kB / 0.6812 GB, free: 15.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.899e-05/0.1484, allocations: 11.92 kB / 0.6812 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.445e-05/0.1485, allocations: 35.89 kB / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1485, allocations: 0 / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1485, allocations: 0 / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1485, allocations: 0 / 0.6812 GB, free: 15.69 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.0002845/0.1488, allocations: 343.8 kB / 0.6816 GB, free: 15.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1489, allocations: 8.031 kB / 0.6816 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.1489, allocations: 42.75 kB / 0.6816 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.309e-05/0.1489, allocations: 12.78 kB / 0.6816 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.861e-05/0.149, allocations: 164.4 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.149, allocations: 4.375 kB / 0.6818 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.149, allocations: 4.375 kB / 0.6818 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.1492, allocations: 58.23 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1492, allocations: 3.938 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.1492, allocations: 7.938 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1492, allocations: 0 / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.1493, allocations: 111.8 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.1495, allocations: 169.7 kB / 0.6821 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.904e-05/0.1496, allocations: 74.53 kB / 0.6822 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.085e-05/0.1497, allocations: 28.84 kB / 0.6822 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002707/0.1499, allocations: 405.5 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.15, allocations: 30.56 kB / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.133e-06/0.15, allocations: 0 / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002184/0.1502, allocations: 125.8 kB / 0.6828 GB, free: 13.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1502, allocations: 59.41 kB / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/0.1503, allocations: 93.77 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.1503, allocations: 29.7 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.214e-05/0.1503, allocations: 80.14 kB / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.1503, allocations: 23.64 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.1504, allocations: 33.7 kB / 0.6831 GB, free: 13.51 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.467e-05/0.1505, allocations: 318.8 kB / 0.6834 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.522e-05/0.1505, allocations: 19.98 kB / 0.6834 GB, free: 13.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.29e-05/0.1506, allocations: 27.98 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.496e-05/0.1507, allocations: 53.44 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1507, allocations: 3.938 kB / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001233/0.1508, allocations: 97.59 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.1508, allocations: 11.94 kB / 0.6836 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1508, allocations: 0 / 0.6836 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1508, allocations: 0 / 0.6836 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.357e-05/0.1509, allocations: 19.98 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.1509, allocations: 0 / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.892e-05/0.151, allocations: 3.938 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.151, allocations: 12 kB / 0.6836 GB, free: 12.93 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.0001298/0.1511, allocations: 127.1 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.1511, allocations: 7.844 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.1513, allocations: 121.5 kB / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1513, allocations: 0 / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1514, allocations: 0 / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.1514, allocations: 0 / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.1515, allocations: 177.6 kB / 0.684 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1515, allocations: 4 kB / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.076e-05/0.1515, allocations: 12 kB / 0.684 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.1516, allocations: 11.92 kB / 0.6841 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.1516, allocations: 3.938 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1516, allocations: 4 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1516, allocations: 0 / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.1517, allocations: 125 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.1518, allocations: 88.89 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.1518, allocations: 4 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.593e-05/0.1518, allocations: 4 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.1518, allocations: 11.98 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1518, allocations: 0 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.059e-05/0.1519, allocations: 79.22 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1519, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001867/0.1521, allocations: 12 kB / 0.6844 GB, free: 12.05 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.000397/0.1525, allocations: 0.6709 MB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.1526, allocations: 68.33 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1526, allocations: 0 / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.425e-05/0.1527, allocations: 32.2 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.1528, allocations: 4.219 kB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003406/0.1531, allocations: 182.6 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.1533, allocations: 0.6845 MB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.893e-05/0.1534, allocations: 39.92 kB / 0.686 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.1534, allocations: 15.44 kB / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of SimCode: time 2.234e-06/0.1535, allocations: 0 / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.1694, allocations: 1.577 MB / 0.6876 GB, free: 8.836 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.954/7.124, allocations: 14.62 kB / 0.6876 GB, free: 8.824 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)