Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",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.001717/0.001717, allocations: 105.1 kB / 16.4 MB, free: 6.465 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.001912/0.001912, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8682/0.8682, allocations: 126.1 MB / 417.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 72.05 kB / 0.5726 GB, free: 27.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1675, allocations: 78.69 MB / 0.6495 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002131/0.1697, allocations: 0.5766 MB / 0.6501 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000293/0.17, allocations: 47.86 kB / 0.6501 GB, free: 3.934 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.865e-05/0.1701, allocations: 0 / 0.6501 GB, free: 3.934 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.463e-05/0.1701, allocations: 0 / 0.6501 GB, free: 3.934 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.226e-06/0.1701, allocations: 3.938 kB / 0.6501 GB, free: 3.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1704, allocations: 11.98 kB / 0.6501 GB, free: 3.918 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.925e-05/0.1705, allocations: 4 kB / 0.6501 GB, free: 3.914 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.1705, allocations: 0 / 0.6501 GB, free: 3.914 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.1706, allocations: 7.922 kB / 0.6501 GB, free: 3.906 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.616e-05/0.1706, allocations: 4 kB / 0.6501 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.1706, allocations: 0 / 0.6501 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.1707, allocations: 15.98 kB / 0.6501 GB, free: 3.887 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.809e-06/0.1707, allocations: 0 / 0.6501 GB, free: 3.887 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.1707, allocations: 4 kB / 0.6501 GB, free: 3.883 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.588e-05/0.1708, allocations: 7.984 kB / 0.6502 GB, free: 3.875 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1709, allocations: 0 / 0.6502 GB, free: 3.875 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1709, allocations: 0 / 0.6502 GB, free: 3.875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1709, allocations: 0 / 0.6502 GB, free: 3.875 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003307/0.1712, allocations: 327.7 kB / 0.6505 GB, free: 3.504 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/0.1713, allocations: 8.031 kB / 0.6505 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.515e-05/0.1713, allocations: 30.75 kB / 0.6505 GB, free: 3.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.1714, allocations: 8.875 kB / 0.6505 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.543e-05/0.1715, allocations: 164.4 kB / 0.6507 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.1715, allocations: 4.375 kB / 0.6507 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-06/0.1715, allocations: 4.312 kB / 0.6507 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1716, allocations: 30.27 kB / 0.6507 GB, free: 3.207 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1716, allocations: 3.938 kB / 0.6507 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.1716, allocations: 0 / 0.6507 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1717, allocations: 0 / 0.6507 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.427e-05/0.1717, allocations: 8 kB / 0.6507 GB, free: 3.195 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.1719, allocations: 149.7 kB / 0.6509 GB, free: 3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.681e-05/0.1719, allocations: 26.89 kB / 0.6509 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.326e-05/0.172, allocations: 8.922 kB / 0.6509 GB, free: 2.953 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/0.1721, allocations: 85.09 kB / 0.651 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1722, allocations: 30.56 kB / 0.651 GB, free: 2.812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1722, allocations: 0 / 0.651 GB, free: 2.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001561/0.1723, allocations: 53.58 kB / 0.6511 GB, free: 2.754 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.1724, allocations: 59.33 kB / 0.6511 GB, free: 2.684 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.183e-05/0.1724, allocations: 93.86 kB / 0.6512 GB, free: 2.582 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.1725, allocations: 25.7 kB / 0.6512 GB, free: 2.551 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.196e-05/0.1725, allocations: 80.14 kB / 0.6513 GB, free: 2.469 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.1725, allocations: 0 / 0.6513 GB, free: 2.469 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.1725, allocations: 17.72 kB / 0.6513 GB, free: 2.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1726, allocations: 314.8 kB / 0.6516 GB, free: 2.129 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.1727, allocations: 4.125 kB / 0.6516 GB, free: 2.125 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.769e-06/0.1727, allocations: 4 kB / 0.6516 GB, free: 2.121 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.051e-05/0.1727, allocations: 16.84 kB / 0.6516 GB, free: 2.102 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1727, allocations: 0 / 0.6516 GB, free: 2.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.416e-05/0.1728, allocations: 33.7 kB / 0.6517 GB, free: 2.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1728, allocations: 5.719 kB / 0.6517 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1728, allocations: 11.88 kB / 0.6517 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1729, allocations: 0 / 0.6517 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.284e-05/0.1729, allocations: 7.922 kB / 0.6517 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.1729, allocations: 8.094 kB / 0.6517 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.173, allocations: 4 kB / 0.6517 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.173, allocations: 0 / 0.6517 GB, free: 2.027 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: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.109e-05/0.1731, allocations: 105.8 kB / 0.6518 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-06/0.1731, allocations: 0 / 0.6518 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.896e-05/0.1732, allocations: 48.75 kB / 0.6519 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1732, allocations: 0 / 0.6519 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1732, allocations: 4 kB / 0.6519 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-06/0.1732, allocations: 4.031 kB / 0.6519 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.565e-05/0.1733, allocations: 149.6 kB / 0.652 GB, free: 1.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1733, allocations: 3.984 kB / 0.652 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.546e-05/0.1734, allocations: 7.938 kB / 0.652 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.1734, allocations: 0 / 0.652 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.1734, allocations: 7.875 kB / 0.652 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1734, allocations: 0 / 0.652 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1734, allocations: 0 / 0.652 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.694e-05/0.1735, allocations: 69.12 kB / 0.6521 GB, free: 1.555 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.1735, allocations: 77.11 kB / 0.6522 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.1735, allocations: 7.938 kB / 0.6522 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.1735, allocations: 0 / 0.6522 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.1736, allocations: 4 kB / 0.6522 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.1736, allocations: 0 / 0.6522 GB, free: 1.449 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.022e-05/0.1736, allocations: 75.28 kB / 0.6523 GB, free: 1.375 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1736, allocations: 0 / 0.6523 GB, free: 1.375 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.1739, allocations: 4 kB / 0.6523 GB, free: 1.371 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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004562/0.1743, allocations: 0.6162 MB / 0.6529 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.849e-05/0.1744, allocations: 12 kB / 0.6529 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1744, allocations: 0 / 0.6529 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.948e-05/0.1745, allocations: 7.938 kB / 0.6529 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.1746, allocations: 8.156 kB / 0.6529 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/0.175, allocations: 122.5 kB / 0.653 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.1753, allocations: 0.669 MB / 0.6537 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.896e-05/0.1754, allocations: 4 kB / 0.6537 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.818e-05/0.1754, allocations: 11.42 kB / 0.6537 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1754, allocations: 0 / 0.6537 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.1944, allocations: 1.063 MB / 0.6547 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/7.645, allocations: 8 kB / 0.6547 GB, free: 14.84 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)