Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_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.007705/0.007705, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001342/0.001342, allocations: 194 kB / 16.67 MB, free: 5.969 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9002/0.9002, allocations: 143.1 MB / 433.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 64.22 kB / 0.5951 GB, free: 12.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1587, allocations: 82.02 MB / 0.6752 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002851/0.1616, allocations: 1.522 MB / 0.6767 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003849/0.162, allocations: 120.5 kB / 0.6768 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.475e-05/0.162, allocations: 0 / 0.6768 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.1621, allocations: 3.938 kB / 0.6768 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.805e-05/0.1622, allocations: 0 / 0.6768 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.1625, allocations: 31.89 kB / 0.6768 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.82e-05/0.1626, allocations: 31.92 kB / 0.6768 GB, free: 9.23 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 9.699e-05/0.1627, allocations: 7.938 kB / 0.6768 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 5.154e-05/0.1627, allocations: 15.98 kB / 0.6769 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.503e-05/0.1628, allocations: 19.91 kB / 0.6769 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.1628, allocations: 4 kB / 0.6769 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.706e-05/0.1629, allocations: 12 kB / 0.6769 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.1629, allocations: 7.984 kB / 0.6769 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.1629, allocations: 11.94 kB / 0.6769 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.1631, allocations: 40.09 kB / 0.6769 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1631, allocations: 0 / 0.6769 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.854e-06/0.1631, allocations: 0 / 0.6769 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.1631, allocations: 0 / 0.6769 GB, free: 9.113 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005609/0.1637, allocations: 343.5 kB / 0.6773 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1638, allocations: 8.031 kB / 0.6773 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.304e-05/0.1638, allocations: 34.75 kB / 0.6773 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.1638, allocations: 0.9375 kB / 0.6773 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.164, allocations: 180.2 kB / 0.6775 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.164, allocations: 4.375 kB / 0.6775 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1641, allocations: 384 / 0.6775 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.1643, allocations: 58.17 kB / 0.6775 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1643, allocations: 7.938 kB / 0.6776 GB, free: 8.387 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.1643, allocations: 4 kB / 0.6776 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1643, allocations: 0 / 0.6776 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1645, allocations: 43.89 kB / 0.6776 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.165, allocations: 264.8 kB / 0.6779 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003457/0.1653, allocations: 66.52 kB / 0.6779 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.1654, allocations: 24.91 kB / 0.6779 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.1656, allocations: 81.11 kB / 0.678 GB, free: 7.832 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1656, allocations: 34.55 kB / 0.678 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1656, allocations: 0 / 0.678 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.000405/0.166, allocations: 97.58 kB / 0.6781 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.1661, allocations: 51.41 kB / 0.6782 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.187e-05/0.1662, allocations: 105.8 kB / 0.6783 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1662, allocations: 29.7 kB / 0.6783 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.728e-05/0.1663, allocations: 80.14 kB / 0.6784 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.1663, allocations: 7.953 kB / 0.6784 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/0.1664, allocations: 17.7 kB / 0.6784 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1665, allocations: 314.8 kB / 0.6787 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.293e-05/0.1666, allocations: 19.98 kB / 0.6787 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.548e-05/0.1667, allocations: 23.97 kB / 0.6788 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.1669, allocations: 48.75 kB / 0.6788 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1669, allocations: 4 kB / 0.6788 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000221/0.1671, allocations: 77.59 kB / 0.6789 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1671, allocations: 5.875 kB / 0.6789 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1671, allocations: 0 / 0.6789 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.1672, allocations: 0 / 0.6789 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.388e-05/0.1673, allocations: 11.98 kB / 0.6789 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1673, allocations: 0 / 0.6789 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.103e-05/0.1673, allocations: 11.98 kB / 0.6789 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.1673, allocations: 4 kB / 0.6789 GB, free: 6.836 MB / 0.5137 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 (rea2Int.y,fac.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 7.153e-05/0.1674, allocations: 113.8 kB / 0.679 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.1675, allocations: 7.953 kB / 0.679 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.1677, allocations: 85.08 kB / 0.6791 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1677, allocations: 3.938 kB / 0.6791 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1678, allocations: 0 / 0.6791 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1678, allocations: 0.5625 kB / 0.6791 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.1679, allocations: 165.6 kB / 0.6793 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1679, allocations: 0 / 0.6793 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.868e-05/0.168, allocations: 15.98 kB / 0.6793 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.168, allocations: 0 / 0.6793 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.168, allocations: 0 / 0.6793 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.168, allocations: 0 / 0.6793 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1681, allocations: 0 / 0.6793 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.1683, allocations: 175.4 kB / 0.6795 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.1684, allocations: 85.05 kB / 0.6795 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.1684, allocations: 15.88 kB / 0.6796 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.1685, allocations: 7.984 kB / 0.6796 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.1685, allocations: 0 / 0.6796 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1686, allocations: 4 kB / 0.6796 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.565e-05/0.1686, allocations: 83.27 kB / 0.6796 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1686, allocations: 4 kB / 0.6797 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002252/0.1688, allocations: 4 kB / 0.6797 GB, free: 5.98 MB / 0.5137 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 (fac.y,rea2Int.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.0005786/0.1694, allocations: 0.7124 MB / 0.6804 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.1697, allocations: 47.89 kB / 0.6804 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1697, allocations: 0 / 0.6804 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1698, allocations: 27.97 kB / 0.6804 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1701, allocations: 4 kB / 0.6804 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004463/0.1706, allocations: 135.1 kB / 0.6806 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.1708, allocations: 0.6846 MB / 0.6812 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.222e-05/0.1709, allocations: 0 / 0.6812 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.1709, allocations: 19.42 kB / 0.6812 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.1709, allocations: 4 kB / 0.6812 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.1896, allocations: 1.6 MB / 0.6828 GB, free: 2.738 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/7.843, allocations: 12.75 kB / 0.6828 GB, free: 2.727 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)