Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.001466/0.001466, 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.001527/0.001527, allocations: 193 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002414/0.002414, allocations: 286.1 kB / 290.7 MB, free: 1.836 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.025/1.025, allocations: 178.6 MB / 0.5073 GB, free: 4.52 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002626/0.002626, allocations: 110.2 kB / 0.6065 GB, free: 24.65 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1533, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002788/0.1561, allocations: 1.538 MB / 0.6951 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003484/0.1564, allocations: 137.4 kB / 0.6952 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.085e-05/0.1565, allocations: 0 / 0.6952 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.1565, allocations: 7.406 kB / 0.6952 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.368e-05/0.1566, allocations: 7.938 kB / 0.6952 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.1568, allocations: 27.91 kB / 0.6953 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.45e-05/0.1569, allocations: 35.92 kB / 0.6953 GB, free: 2.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.303e-05/0.157, allocations: 11.98 kB / 0.6953 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.051e-05/0.157, allocations: 15.92 kB / 0.6953 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.862e-05/0.1571, allocations: 20.55 kB / 0.6954 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1571, allocations: 4 kB / 0.6954 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.569e-05/0.1571, allocations: 17.89 kB / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.1572, allocations: 8 kB / 0.6954 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.252e-05/0.1572, allocations: 23.84 kB / 0.6954 GB, free: 2.352 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.732e-05/0.1573, allocations: 40.17 kB / 0.6954 GB, free: 2.312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1573, allocations: 0 / 0.6954 GB, free: 2.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1573, allocations: 2.281 kB / 0.6954 GB, free: 2.312 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1573, allocations: 0 / 0.6954 GB, free: 2.312 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004904/0.1578, allocations: 359.4 kB / 0.6958 GB, free: 1.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.1579, allocations: 8.031 kB / 0.6958 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.243e-05/0.1579, allocations: 36.69 kB / 0.6958 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.1579, allocations: 4.844 kB / 0.6958 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.1581, allocations: 164.4 kB / 0.696 GB, free: 1.656 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1581, allocations: 4.375 kB / 0.696 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1581, allocations: 4.375 kB / 0.696 GB, free: 1.648 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.1583, allocations: 71.86 kB / 0.6961 GB, free: 1.574 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.1583, allocations: 3.938 kB / 0.6961 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.1583, allocations: 0 / 0.6961 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1584, allocations: 0 / 0.6961 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.1586, allocations: 52.55 kB / 0.6961 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003691/0.1589, allocations: 284.7 kB / 0.6964 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.1593, allocations: 58.48 kB / 0.6964 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.1594, allocations: 32.89 kB / 0.6965 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003504/0.1597, allocations: 397.5 kB / 0.6969 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.1598, allocations: 34.5 kB / 0.6969 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1598, allocations: 0 / 0.6969 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003879/0.1602, allocations: 97.56 kB / 0.697 GB, free: 476 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.1602, allocations: 51.41 kB / 0.697 GB, free: 412 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.055e-05/0.1603, allocations: 113.8 kB / 0.6971 GB, free: 288 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.1603, allocations: 25.7 kB / 0.6972 GB, free: 256 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.757e-05/0.1604, allocations: 84.14 kB / 0.6972 GB, free: 168 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.1604, allocations: 7.906 kB / 0.6973 GB, free: 160 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.1604, allocations: 21.7 kB / 0.6973 GB, free: 132 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1606, allocations: 314.8 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.772e-05/0.1607, allocations: 23.97 kB / 0.6976 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.552e-05/0.1608, allocations: 19.98 kB / 0.6976 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.161, allocations: 44.81 kB / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.161, allocations: 0 / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002311/0.1612, allocations: 81.83 kB / 0.6977 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.1613, allocations: 4 kB / 0.6977 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.1613, allocations: 0 / 0.6977 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1613, allocations: 0 / 0.6977 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.883e-05/0.1614, allocations: 15.98 kB / 0.6978 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.1614, allocations: 0 / 0.6978 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.184e-05/0.1614, allocations: 11.98 kB / 0.6978 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.1615, allocations: 3.984 kB / 0.6978 GB, free: 15.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.41e-05/0.1615, allocations: 118.4 kB / 0.6979 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.1616, allocations: 4 kB / 0.6979 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.1619, allocations: 89.48 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1619, allocations: 0 / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1619, allocations: 0 / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1619, allocations: 4 kB / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.1621, allocations: 169.5 kB / 0.6981 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1621, allocations: 8 kB / 0.6981 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.1622, allocations: 4 kB / 0.6982 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.1622, allocations: 7.984 kB / 0.6982 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.1622, allocations: 4 kB / 0.6982 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1622, allocations: 0 / 0.6982 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1622, allocations: 7.938 kB / 0.6982 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.1625, allocations: 167.5 kB / 0.6983 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.1625, allocations: 85.03 kB / 0.6984 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1626, allocations: 7.938 kB / 0.6984 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.002e-05/0.1626, allocations: 0 / 0.6984 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.1627, allocations: 15.98 kB / 0.6984 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1627, allocations: 3.938 kB / 0.6984 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.198e-05/0.1628, allocations: 95.33 kB / 0.6985 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1628, allocations: 0 / 0.6985 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002324/0.163, allocations: 8 kB / 0.6985 GB, free: 14.71 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006523/0.1637, allocations: 0.7162 MB / 0.6992 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.1639, allocations: 43.89 kB / 0.6993 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1639, allocations: 0 / 0.6993 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.164, allocations: 23.98 kB / 0.6993 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.1643, allocations: 11.98 kB / 0.6993 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.1659, allocations: 1.277 MB / 0.7006 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.1662, allocations: 0.6768 MB / 0.7012 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.205e-05/0.1663, allocations: 8 kB / 0.7012 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.1663, allocations: 19.42 kB / 0.7012 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1663, allocations: 0 / 0.7012 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.1885, allocations: 1.684 MB / 0.7029 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.598, allocations: 14.27 kB / 0.7029 GB, free: 10.2 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)