Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_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.005139/0.005139, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001248/0.001248, allocations: 185.9 kB / 16.67 MB, free: 5.934 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 0.9432/0.9432, allocations: 143.3 MB / 433.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 68.61 kB / 0.5953 GB, free: 12.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1606, allocations: 82.03 MB / 0.6755 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001684/0.1623, allocations: 0.5909 MB / 0.676 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002595/0.1626, allocations: 51.86 kB / 0.6761 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.567e-05/0.1626, allocations: 0 / 0.6761 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.904e-05/0.1626, allocations: 0 / 0.6761 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.1626, allocations: 3.938 kB / 0.6761 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.1628, allocations: 11.98 kB / 0.6761 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.599e-05/0.1629, allocations: 7.984 kB / 0.6761 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.1629, allocations: 0 / 0.6761 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.232e-05/0.1629, allocations: 0 / 0.6761 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.163, allocations: 0 / 0.6761 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.163, allocations: 7.938 kB / 0.6761 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.661e-05/0.1631, allocations: 8 kB / 0.6761 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.1631, allocations: 4 kB / 0.6761 GB, free: 9.93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 1.901e-05/0.1631, allocations: 7.922 kB / 0.6761 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 7.944e-05/0.1632, allocations: 11.98 kB / 0.6761 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1632, allocations: 0 / 0.6761 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1632, allocations: 0 / 0.6761 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.1632, allocations: 0 / 0.6761 GB, free: 9.91 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003279/0.1635, allocations: 318.4 kB / 0.6764 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1636, allocations: 12.03 kB / 0.6765 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.1636, allocations: 34.69 kB / 0.6765 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.1637, allocations: 0.9375 kB / 0.6765 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1638, allocations: 164.4 kB / 0.6766 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.1638, allocations: 384 / 0.6766 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.1638, allocations: 8.375 kB / 0.6767 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.731e-05/0.1639, allocations: 30.59 kB / 0.6767 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1639, allocations: 7.938 kB / 0.6767 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-06/0.1639, allocations: 0 / 0.6767 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.1639, allocations: 0 / 0.6767 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.189e-05/0.164, allocations: 0 / 0.6767 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.1641, allocations: 157.7 kB / 0.6768 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.039e-05/0.1642, allocations: 22.55 kB / 0.6769 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.014e-05/0.1642, allocations: 12.92 kB / 0.6769 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000157/0.1644, allocations: 85.09 kB / 0.677 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1644, allocations: 34.5 kB / 0.677 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1644, allocations: 0 / 0.677 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001367/0.1646, allocations: 41.64 kB / 0.677 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1646, allocations: 59.47 kB / 0.6771 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.907e-05/0.1647, allocations: 93.81 kB / 0.6772 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1647, allocations: 29.69 kB / 0.6772 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.113e-05/0.1647, allocations: 84.14 kB / 0.6773 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.335e-05/0.1647, allocations: 0 / 0.6773 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.1648, allocations: 13.72 kB / 0.6773 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1649, allocations: 318.8 kB / 0.6776 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.08e-05/0.1649, allocations: 0 / 0.6776 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.776e-06/0.1649, allocations: 8 kB / 0.6776 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.905e-05/0.165, allocations: 8.859 kB / 0.6776 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.165, allocations: 3.984 kB / 0.6776 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.568e-05/0.1651, allocations: 37.7 kB / 0.6777 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.1651, allocations: 7.938 kB / 0.6777 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/0.1651, allocations: 11.91 kB / 0.6777 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1651, allocations: 4 kB / 0.6777 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.848e-05/0.1652, allocations: 3.938 kB / 0.6777 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.1652, allocations: 96 / 0.6777 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.1652, allocations: 8 kB / 0.6777 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1652, allocations: 3.984 kB / 0.6777 GB, free: 8.066 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 (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 7.074e-05/0.1653, allocations: 109.8 kB / 0.6778 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.1653, allocations: 0 / 0.6778 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.013e-05/0.1654, allocations: 44.75 kB / 0.6778 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1654, allocations: 0 / 0.6778 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1654, allocations: 0 / 0.6778 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1654, allocations: 0 / 0.6778 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.1655, allocations: 153.7 kB / 0.678 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1655, allocations: 4 kB / 0.678 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.623e-05/0.1656, allocations: 11.92 kB / 0.678 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1656, allocations: 0 / 0.678 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1656, allocations: 3.938 kB / 0.678 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1656, allocations: 0 / 0.678 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1656, allocations: 0 / 0.678 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.775e-05/0.1657, allocations: 69.08 kB / 0.6781 GB, free: 7.598 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.1657, allocations: 85.08 kB / 0.6782 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.1657, allocations: 3.938 kB / 0.6782 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.1658, allocations: 0 / 0.6782 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.047e-05/0.1658, allocations: 0 / 0.6782 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1658, allocations: 4 kB / 0.6782 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.494e-05/0.1658, allocations: 75.28 kB / 0.6782 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.1658, allocations: 0 / 0.6782 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001804/0.166, allocations: 8 kB / 0.6782 GB, free: 7.406 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,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.0004273/0.1665, allocations: 0.6162 MB / 0.6788 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.067e-05/0.1665, allocations: 4 kB / 0.6788 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1665, allocations: 0 / 0.6788 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.898e-05/0.1666, allocations: 11.94 kB / 0.6789 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1667, allocations: 4.156 kB / 0.6789 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002746/0.167, allocations: 114.6 kB / 0.679 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1673, allocations: 0.6729 MB / 0.6796 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.12e-05/0.1673, allocations: 0 / 0.6796 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.058e-05/0.1673, allocations: 7.438 kB / 0.6796 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.1673, allocations: 0 / 0.6796 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.1887, allocations: 1.088 MB / 0.6807 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.897, allocations: 13.14 kB / 0.6807 GB, free: 4.887 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)