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.0008712/0.0008712, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0009683/0.0009682, allocations: 172.6 kB / 16.26 MB, free: 6.664 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.234/1.234, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001622/0.001622, allocations: 266.8 kB / 291.7 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 0.8839/0.8839, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003874, allocations: 17.41 kB / 0.5988 GB, free: 27.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1465, allocations: 88.55 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0004839/0.147, allocations: 314.2 kB / 0.6855 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001668/0.1472, allocations: 51.8 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.084e-05/0.1472, allocations: 5.188 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.1472, allocations: 0 / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.158e-06/0.1472, allocations: 0 / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.1474, allocations: 20.53 kB / 0.6856 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.682e-05/0.1475, allocations: 27.92 kB / 0.6856 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.1476, allocations: 1.25 kB / 0.6856 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.1476, allocations: 15.98 kB / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.444e-05/0.1476, allocations: 7.984 kB / 0.6857 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.1476, allocations: 1.375 kB / 0.6857 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.293e-05/0.1477, allocations: 19.98 kB / 0.6857 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.487e-05/0.1477, allocations: 12 kB / 0.6857 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.081e-05/0.1478, allocations: 49.55 kB / 0.6857 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.006e-05/0.1479, allocations: 37.27 kB / 0.6858 GB, free: 14.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1479, allocations: 0 / 0.6858 GB, free: 14.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1479, allocations: 0 / 0.6858 GB, free: 14.4 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1479, allocations: 3.938 kB / 0.6858 GB, free: 14.39 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.0002499/0.1482, allocations: 326.9 kB / 0.6861 GB, free: 14.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.1482, allocations: 8.031 kB / 0.6861 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.1482, allocations: 38.75 kB / 0.6861 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.113e-05/0.1483, allocations: 4.844 kB / 0.6861 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.81e-05/0.1483, allocations: 168.4 kB / 0.6863 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.1484, allocations: 4.375 kB / 0.6863 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1484, allocations: 8.812 kB / 0.6863 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.1485, allocations: 58.73 kB / 0.6864 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.1485, allocations: 4.625 kB / 0.6864 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.1485, allocations: 0 / 0.6864 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.1485, allocations: 5.969 kB / 0.6864 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.1487, allocations: 103.8 kB / 0.6865 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.1488, allocations: 173.6 kB / 0.6866 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.135e-05/0.1489, allocations: 70.55 kB / 0.6867 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.162e-05/0.149, allocations: 33.59 kB / 0.6867 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002647/0.1492, allocations: 398.2 kB / 0.6871 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.1493, allocations: 36.28 kB / 0.6872 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.1493, allocations: 4 kB / 0.6872 GB, free: 12.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002022/0.1495, allocations: 121.8 kB / 0.6873 GB, free: 12.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.1495, allocations: 52.06 kB / 0.6873 GB, free: 12.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.01e-05/0.1496, allocations: 101.7 kB / 0.6874 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.1496, allocations: 28.14 kB / 0.6875 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.091e-05/0.1496, allocations: 80.14 kB / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.1496, allocations: 27.64 kB / 0.6876 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/0.1497, allocations: 25.7 kB / 0.6876 GB, free: 12.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.1498, allocations: 314.8 kB / 0.6879 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.37e-05/0.1498, allocations: 22.08 kB / 0.6879 GB, free: 11.92 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.884e-05/0.1498, allocations: 19.98 kB / 0.6879 GB, free: 11.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.172e-05/0.1499, allocations: 61.42 kB / 0.688 GB, free: 11.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1499, allocations: 0 / 0.688 GB, free: 11.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00012/0.1501, allocations: 97.55 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.1501, allocations: 8.656 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.1501, allocations: 0 / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.1501, allocations: 8.859 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.151e-05/0.1502, allocations: 12 kB / 0.6881 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1502, allocations: 4.594 kB / 0.6881 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.1502, allocations: 7.938 kB / 0.6881 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1502, allocations: 13.22 kB / 0.6881 GB, free: 11.68 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.0001033/0.1504, allocations: 123.9 kB / 0.6882 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.1504, allocations: 7.844 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.1506, allocations: 121.6 kB / 0.6884 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1506, allocations: 7.938 kB / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1506, allocations: 0 / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.1506, allocations: 0 / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.1507, allocations: 169.6 kB / 0.6885 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1507, allocations: 3.938 kB / 0.6885 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.289e-05/0.1508, allocations: 23.92 kB / 0.6886 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1508, allocations: 3.938 kB / 0.6886 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.1508, allocations: 8 kB / 0.6886 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1508, allocations: 3.984 kB / 0.6886 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.1508, allocations: 3.984 kB / 0.6886 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.151, allocations: 109.1 kB / 0.6887 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.151, allocations: 92.89 kB / 0.6888 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.151, allocations: 7.984 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.367e-05/0.151, allocations: 0 / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.1511, allocations: 8 kB / 0.6888 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-06/0.1511, allocations: 11.92 kB / 0.6888 GB, free: 10.89 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.438e-05/0.1511, allocations: 75.28 kB / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1511, allocations: 0 / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.1513, allocations: 16 kB / 0.6889 GB, free: 10.8 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.0003991/0.1517, allocations: 0.6709 MB / 0.6895 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.1518, allocations: 67.84 kB / 0.6896 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.1518, allocations: 0 / 0.6896 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.337e-05/0.1519, allocations: 31.97 kB / 0.6896 GB, free: 10 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.152, allocations: 9.625 kB / 0.6896 GB, free: 9.996 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.1523, allocations: 180.3 kB / 0.6898 GB, free: 9.781 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.1525, allocations: 0.6888 MB / 0.6905 GB, free: 9.066 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.433e-05/0.1526, allocations: 31.94 kB / 0.6905 GB, free: 9.035 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.1526, allocations: 22.31 kB / 0.6905 GB, free: 9.016 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1526, allocations: 0 / 0.6905 GB, free: 9.016 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6068/0.7594, allocations: 1.377 MB / 0.6919 GB, free: 7.812 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.7597, allocations: 220.2 kB / 0.6921 GB, free: 7.559 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/2.301, allocations: 6.938 kB / 0.6921 GB, free: 7.555 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)