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/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.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.001553/0.001553, allocations: 108 kB / 15.61 MB, free: 152 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.001764/0.001764, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.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 1.008/1.008, allocations: 143 MB / 433.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1609, allocations: 82.04 MB / 0.5944 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002141/0.1631, allocations: 0.5683 MB / 0.595 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003323/0.1635, allocations: 55.77 kB / 0.595 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.565e-05/0.1635, allocations: 0 / 0.595 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.1635, allocations: 0 / 0.595 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.76e-06/0.1635, allocations: 4 kB / 0.595 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1638, allocations: 15.94 kB / 0.595 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.277e-05/0.1638, allocations: 4 kB / 0.595 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.1639, allocations: 7.984 kB / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.647e-05/0.1639, allocations: 0 / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.147e-05/0.1639, allocations: 7.938 kB / 0.595 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.718e-06/0.1639, allocations: 0 / 0.595 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.068e-05/0.164, allocations: 8 kB / 0.5951 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.164, allocations: 3.984 kB / 0.5951 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.842e-05/0.164, allocations: 0 / 0.5951 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.967e-05/0.1641, allocations: 7.984 kB / 0.5951 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1641, allocations: 4 kB / 0.5951 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1642, allocations: 0 / 0.5951 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.1642, allocations: 0 / 0.5951 GB, free: 8.809 MB / 0.4981 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.0002865/0.1645, allocations: 319.6 kB / 0.5954 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1645, allocations: 11.97 kB / 0.5954 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.311e-05/0.1645, allocations: 30.75 kB / 0.5954 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1646, allocations: 4.922 kB / 0.5954 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.504e-05/0.1647, allocations: 164.3 kB / 0.5956 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.1647, allocations: 4.375 kB / 0.5956 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.1647, allocations: 384 / 0.5956 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.788e-05/0.1648, allocations: 42.25 kB / 0.5956 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1648, allocations: 3.938 kB / 0.5956 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.1648, allocations: 0 / 0.5956 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1648, allocations: 0 / 0.5956 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.24e-05/0.1649, allocations: 4 kB / 0.5956 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.165, allocations: 149.7 kB / 0.5958 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.066e-05/0.1651, allocations: 22.55 kB / 0.5958 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.864e-05/0.1651, allocations: 12.92 kB / 0.5958 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.1653, allocations: 81.11 kB / 0.5959 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.1653, allocations: 34.56 kB / 0.5959 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1653, allocations: 0 / 0.5959 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001369/0.1654, allocations: 41.62 kB / 0.596 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.1655, allocations: 51.41 kB / 0.596 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.773e-05/0.1655, allocations: 97.86 kB / 0.5961 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.1655, allocations: 29.83 kB / 0.5961 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1656, allocations: 84.08 kB / 0.5962 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.1656, allocations: 3.906 kB / 0.5962 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.1656, allocations: 21.64 kB / 0.5962 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.1657, allocations: 314.8 kB / 0.5965 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.1657, allocations: 0 / 0.5965 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-06/0.1657, allocations: 4 kB / 0.5965 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.011e-05/0.1658, allocations: 8.922 kB / 0.5965 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1658, allocations: 4 kB / 0.5965 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.575e-05/0.1659, allocations: 41.69 kB / 0.5966 GB, free: 7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1659, allocations: 6.5 kB / 0.5966 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1659, allocations: 7.938 kB / 0.5966 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1659, allocations: 0 / 0.5966 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.44e-05/0.166, allocations: 3.938 kB / 0.5966 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.166, allocations: 4 kB / 0.5966 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.166, allocations: 288 / 0.5966 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-06/0.166, allocations: 3.938 kB / 0.5966 GB, free: 6.977 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 (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.115e-05/0.1661, allocations: 113.9 kB / 0.5967 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-06/0.1661, allocations: 0 / 0.5967 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.299e-05/0.1662, allocations: 48.7 kB / 0.5968 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1662, allocations: 0 / 0.5968 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1662, allocations: 8 kB / 0.5968 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1662, allocations: 3.984 kB / 0.5968 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.332e-05/0.1663, allocations: 145.7 kB / 0.5969 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1663, allocations: 0 / 0.5969 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.1664, allocations: 4 kB / 0.5969 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1664, allocations: 4.031 kB / 0.5969 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.1664, allocations: 3.938 kB / 0.5969 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1664, allocations: 7.922 kB / 0.5969 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1664, allocations: 0 / 0.5969 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.273e-05/0.1665, allocations: 61.14 kB / 0.597 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.349e-05/0.1665, allocations: 77.11 kB / 0.5971 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.1665, allocations: 7.922 kB / 0.5971 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.297e-05/0.1666, allocations: 4.031 kB / 0.5971 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.1666, allocations: 4 kB / 0.5971 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1666, allocations: 0 / 0.5971 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.418e-05/0.1666, allocations: 75.28 kB / 0.5972 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1666, allocations: 0 / 0.5972 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001963/0.1668, allocations: 4 kB / 0.5972 GB, free: 6.316 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 (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.0004012/0.1672, allocations: 0.6163 MB / 0.5978 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.829e-05/0.1673, allocations: 7.984 kB / 0.5978 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1673, allocations: 0 / 0.5978 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.484e-05/0.1674, allocations: 4 kB / 0.5978 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.1675, allocations: 11.94 kB / 0.5978 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000306/0.1678, allocations: 122.4 kB / 0.5979 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.168, allocations: 0.6769 MB / 0.5986 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.557e-05/0.1681, allocations: 3.984 kB / 0.5986 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.024e-05/0.1681, allocations: 11.38 kB / 0.5986 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1681, allocations: 0 / 0.5986 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.1853, allocations: 1.053 MB / 0.5996 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.427/7.613, allocations: 14.39 kB / 0.5996 GB, free: 3.789 MB / 0.4981 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)