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.005525/0.005525, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001148/0.001148, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 287 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9289/0.9289, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 99.86 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1601, allocations: 86.98 MB / 0.7659 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001679/0.1618, allocations: 0.5805 MB / 0.7665 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002539/0.1621, allocations: 63.77 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.922e-05/0.1621, allocations: 4 kB / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.732e-05/0.1622, allocations: 0 / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.1622, allocations: 3.938 kB / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.1625, allocations: 11.98 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.058e-05/0.1626, allocations: 31.97 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.251e-05/0.1626, allocations: 7.984 kB / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.138e-05/0.1626, allocations: 11.94 kB / 0.7666 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.57e-05/0.1627, allocations: 8 kB / 0.7667 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.1627, allocations: 0 / 0.7667 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.1628, allocations: 23.95 kB / 0.7667 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.82e-05/0.1628, allocations: 12 kB / 0.7667 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.104e-05/0.1629, allocations: 15.94 kB / 0.7667 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.163, allocations: 31.89 kB / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.163, allocations: 0 / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.773e-06/0.163, allocations: 0 / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.163, 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.0003639/0.1634, allocations: 351.6 kB / 0.7671 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1634, allocations: 12.03 kB / 0.7671 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.426e-05/0.1634, allocations: 34.75 kB / 0.7671 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.1635, allocations: 4.938 kB / 0.7671 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.561e-05/0.1636, allocations: 164.4 kB / 0.7673 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-06/0.1636, allocations: 4.375 kB / 0.7673 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.1637, allocations: 8.375 kB / 0.7673 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.1638, allocations: 62.23 kB / 0.7673 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1638, allocations: 3.938 kB / 0.7673 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1638, allocations: 0 / 0.7673 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1638, allocations: 0 / 0.7673 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.164, allocations: 107.8 kB / 0.7674 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.1642, allocations: 169.6 kB / 0.7676 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.1643, allocations: 86.52 kB / 0.7677 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.445e-05/0.1643, allocations: 37 kB / 0.7677 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.1647, allocations: 401.5 kB / 0.7681 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.1647, allocations: 34.56 kB / 0.7681 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.021e-06/0.1647, allocations: 0 / 0.7681 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0002293/0.1649, allocations: 117.5 kB / 0.7683 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.165, allocations: 51.41 kB / 0.7683 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.17e-05/0.165, allocations: 97.86 kB / 0.7684 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.1651, allocations: 29.7 kB / 0.7684 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.1651, allocations: 80.14 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.1651, allocations: 23.66 kB / 0.7685 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.1652, allocations: 37.64 kB / 0.7686 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1653, allocations: 314.8 kB / 0.7689 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.721e-05/0.1654, allocations: 19.98 kB / 0.7689 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.426e-05/0.1654, allocations: 19.98 kB / 0.7689 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.668e-05/0.1655, allocations: 60.78 kB / 0.769 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1655, allocations: 4 kB / 0.769 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001367/0.1657, allocations: 97.5 kB / 0.7691 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.1657, allocations: 7.938 kB / 0.7691 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1657, allocations: 0 / 0.7691 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1657, allocations: 0 / 0.7691 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.294e-05/0.1658, allocations: 16 kB / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1658, allocations: 0 / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.1658, allocations: 15.92 kB / 0.7691 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-06/0.1659, allocations: 4 kB / 0.7691 GB, free: 5.332 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.000145/0.166, allocations: 122.4 kB / 0.7692 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.166, allocations: 11.92 kB / 0.7692 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001888/0.1662, allocations: 118.3 kB / 0.7693 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1662, allocations: 4 kB / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1662, allocations: 0 / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1662, allocations: 0 / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.1664, allocations: 181.6 kB / 0.7695 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1664, allocations: 0 / 0.7695 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.1665, allocations: 19.94 kB / 0.7695 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1665, allocations: 7.938 kB / 0.7695 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1665, allocations: 11.98 kB / 0.7696 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1665, allocations: 0 / 0.7696 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1665, allocations: 0 / 0.7696 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.1666, allocations: 117.1 kB / 0.7697 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.1667, allocations: 92.97 kB / 0.7698 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.1667, allocations: 3.984 kB / 0.7698 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.713e-05/0.1667, allocations: 7.938 kB / 0.7698 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.1668, allocations: 11.98 kB / 0.7698 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.1668, allocations: 4 kB / 0.7698 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.914e-05/0.1668, allocations: 75.28 kB / 0.7699 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1668, allocations: 0 / 0.7699 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001954/0.167, allocations: 16 kB / 0.7699 GB, free: 4.441 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.000494/0.1675, allocations: 0.6747 MB / 0.7705 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001329/0.1677, allocations: 67.83 kB / 0.7706 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1677, allocations: 0 / 0.7706 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.639e-05/0.1677, allocations: 31.98 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.0001269/0.1679, 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.000381/0.1682, allocations: 180.3 kB / 0.7708 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.1685, allocations: 0.6885 MB / 0.7715 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.277e-05/0.1686, allocations: 35.94 kB / 0.7715 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.216e-05/0.1687, allocations: 15.44 kB / 0.7715 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of SimCode: time 3.31e-07/0.1687, allocations: 0 / 0.7715 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.1852, allocations: 1.599 MB / 0.7731 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.001/7.186, allocations: 8.062 kB / 0.7731 GB, free: 1.199 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)