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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8698/0.8698, allocations: 143.3 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 180.5 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.2 MB / 447.7 MB, free: 4.844 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009229/0.000923, allocations: 84.33 kB / 0.5187 GB, free: 1.211 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001969/0.001969, allocations: 269.7 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005024/0.0005025, allocations: 14.97 kB / 0.6929 GB, free: 59.62 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1926, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.3567, allocations: 108 MB / 0.8792 GB, free: 1.648 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.357, allocations: 79.95 kB / 0.8793 GB, free: 1.57 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.001853/0.3589, allocations: 0.8283 MB / 0.8801 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3589, allocations: 0 / 0.8801 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3589, allocations: 0 / 0.8801 GB, free: 0.7383 MB / 0.5417 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.0003187/0.3592, allocations: 331.4 kB / 0.8804 GB, free: 376 kB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3593, allocations: 15.97 kB / 0.8804 GB, free: 360 kB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.952e-05/0.3594, allocations: 42.53 kB / 0.8805 GB, free: 308 kB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/0.3594, allocations: 7.906 kB / 0.8805 GB, free: 300 kB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.3595, allocations: 163 kB / 0.8806 GB, free: 96 kB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.3595, allocations: 11.95 kB / 0.8807 GB, free: 84 kB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.3595, allocations: 0 / 0.8807 GB, free: 84 kB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.3597, allocations: 61.66 kB / 0.8807 GB, free: 16 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.3597, allocations: 0 / 0.8807 GB, free: 16 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3597, allocations: 11.94 kB / 0.8807 GB, free: 4 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3597, allocations: 0 / 0.8807 GB, free: 4 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3208/0.6805, allocations: 97.31 kB / 0.8808 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002264/0.6808, allocations: 172.5 kB / 0.881 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.681, allocations: 72.56 kB / 0.881 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000336/0.6813, allocations: 399.5 kB / 0.8814 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.6813, allocations: 32.34 kB / 0.8815 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 2.965e-06/0.6814, allocations: 1.219 kB / 0.8815 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0003315/0.6817, allocations: 118.7 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.6817, allocations: 53.56 kB / 0.8816 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.099e-05/0.6818, allocations: 91.5 kB / 0.8817 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.6818, allocations: 31.45 kB / 0.8817 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.75e-05/0.6818, allocations: 82.3 kB / 0.8818 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.6819, allocations: 22.7 kB / 0.8818 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.6819, allocations: 1.375 kB / 0.8818 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.312e-05/0.682, allocations: 319.8 kB / 0.8821 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.682, allocations: 19.38 kB / 0.8822 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.588e-05/0.6821, allocations: 18.95 kB / 0.8822 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.323e-05/0.6822, allocations: 31.41 kB / 0.8822 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.6822, allocations: 0.8125 kB / 0.8822 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000175/0.6824, allocations: 94.42 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.6824, allocations: 6.062 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.6824, allocations: 4.859 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.6824, allocations: 2.719 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.6826, allocations: 17.48 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.6826, allocations: 8.328 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.6826, allocations: 6.156 kB / 0.8824 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.6827, allocations: 2.969 kB / 0.8824 GB, free: 107.8 MB / 0.5417 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 0.000113/0.6828, allocations: 118.8 kB / 0.8825 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.6828, allocations: 3.047 kB / 0.8825 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002387/0.683, allocations: 128.8 kB / 0.8826 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.6831, allocations: 4.797 kB / 0.8826 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.6831, allocations: 6.812 kB / 0.8826 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.6831, allocations: 0 / 0.8826 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.6832, allocations: 175.8 kB / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6832, allocations: 0 / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.6833, allocations: 20 kB / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.6833, allocations: 0 / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.6833, allocations: 13.36 kB / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.6833, allocations: 0 / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.6833, allocations: 5.984 kB / 0.8828 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001393/0.6835, allocations: 116.9 kB / 0.8829 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.541e-05/0.6835, allocations: 83.67 kB / 0.883 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.6835, allocations: 6.344 kB / 0.883 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.582e-05/0.6836, allocations: 3.938 kB / 0.883 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.6836, allocations: 9.578 kB / 0.883 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.6836, allocations: 10.3 kB / 0.883 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.984e-05/0.6836, allocations: 75.28 kB / 0.8831 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6836, allocations: 0 / 0.8831 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002357/0.6839, allocations: 25.94 kB / 0.8831 GB, free: 107.1 MB / 0.5417 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.0004324/0.6843, allocations: 0.6715 MB / 0.8838 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000138/0.6845, allocations: 57.45 kB / 0.8838 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6845, allocations: 4 kB / 0.8838 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.992e-05/0.6845, allocations: 36.33 kB / 0.8839 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.807e-05/0.6846, allocations: 8.656 kB / 0.8839 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003784/0.685, allocations: 194 kB / 0.8841 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.6852, allocations: 0.6868 MB / 0.8847 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.049e-05/0.6853, allocations: 36.88 kB / 0.8848 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.6853, allocations: 19.45 kB / 0.8848 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of SimCode: time 3.3e-07/0.6853, allocations: 0 / 0.8848 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01221/0.6975, allocations: 1.335 MB / 0.8861 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.6977, allocations: 200.8 kB / 0.8863 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.468/2.166, allocations: 0 / 0.8863 GB, free: 105.3 MB / 0.5417 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/linux/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)