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.001131/0.00113, 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.001181/0.001181, allocations: 197 kB / 16.54 MB, free: 6.672 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.486/1.486, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.096/1.096, allocations: 143.1 MB / 433.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 0.5143 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1519, allocations: 82.05 MB / 0.5944 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002677/0.1546, allocations: 1.503 MB / 0.5959 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000329/0.155, allocations: 120.5 kB / 0.596 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.155, allocations: 0 / 0.596 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.794e-05/0.1551, allocations: 3.938 kB / 0.596 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.507e-05/0.1551, allocations: 0 / 0.596 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.1553, allocations: 27.91 kB / 0.596 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.63e-05/0.1554, allocations: 39.86 kB / 0.5961 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.219e-05/0.1555, allocations: 7.984 kB / 0.5961 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.718e-05/0.1555, allocations: 8 kB / 0.5961 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.477e-05/0.1556, allocations: 15.92 kB / 0.5961 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.1556, allocations: 4 kB / 0.5961 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.645e-05/0.1557, allocations: 11.98 kB / 0.5961 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.1557, allocations: 11.98 kB / 0.5961 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.663e-05/0.1557, allocations: 11.92 kB / 0.5961 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.1558, allocations: 31.91 kB / 0.5962 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1558, allocations: 4 kB / 0.5962 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.163e-06/0.1558, allocations: 0 / 0.5962 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.1559, allocations: 0 / 0.5962 GB, free: 7.672 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004222/0.1563, allocations: 347.6 kB / 0.5965 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.1563, allocations: 12.02 kB / 0.5965 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.135e-05/0.1564, allocations: 30.75 kB / 0.5965 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.605e-05/0.1564, allocations: 4.938 kB / 0.5965 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.663e-05/0.1565, allocations: 168.3 kB / 0.5967 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.1565, allocations: 12.31 kB / 0.5967 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.1565, allocations: 4.375 kB / 0.5967 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.1567, allocations: 62.16 kB / 0.5968 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.1568, allocations: 7.938 kB / 0.5968 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.1568, allocations: 0 / 0.5968 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1568, allocations: 0 / 0.5968 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.157, allocations: 43.95 kB / 0.5968 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.1573, allocations: 260.9 kB / 0.5971 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.1576, allocations: 62.47 kB / 0.5971 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.1577, allocations: 24.91 kB / 0.5971 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.1578, allocations: 81.09 kB / 0.5972 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.1579, allocations: 38.56 kB / 0.5973 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1579, allocations: 0 / 0.5973 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000378/0.1583, allocations: 93.62 kB / 0.5974 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.1583, allocations: 51.41 kB / 0.5974 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.939e-05/0.1584, allocations: 101.8 kB / 0.5975 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1584, allocations: 25.7 kB / 0.5975 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.1584, allocations: 96.03 kB / 0.5976 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.1585, allocations: 3.938 kB / 0.5976 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.1585, allocations: 17.72 kB / 0.5976 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.38e-05/0.1586, allocations: 310.8 kB / 0.5979 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.527e-05/0.1587, allocations: 23.97 kB / 0.598 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.16e-05/0.1588, allocations: 15.98 kB / 0.598 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.159, allocations: 53.22 kB / 0.598 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.159, allocations: 0 / 0.598 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002234/0.1592, allocations: 81.55 kB / 0.5981 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.1592, allocations: 4 kB / 0.5981 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1592, allocations: 0 / 0.5981 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1592, allocations: 3.938 kB / 0.5981 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.336e-05/0.1593, allocations: 11.98 kB / 0.5981 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1593, allocations: 3.984 kB / 0.5981 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.894e-05/0.1594, allocations: 11.98 kB / 0.5981 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.1594, allocations: 0 / 0.5981 GB, free: 5.391 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 (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.059e-05/0.1595, allocations: 117.8 kB / 0.5982 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.1595, allocations: 3.938 kB / 0.5982 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.1598, allocations: 81.14 kB / 0.5983 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1598, allocations: 0 / 0.5983 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1598, allocations: 11.92 kB / 0.5983 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1598, allocations: 0 / 0.5983 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.16, allocations: 165.6 kB / 0.5985 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.16, allocations: 0 / 0.5985 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.099e-05/0.1601, allocations: 15.92 kB / 0.5985 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1601, allocations: 0 / 0.5985 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.1601, allocations: 0 / 0.5985 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1601, allocations: 3.984 kB / 0.5985 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1601, allocations: 0 / 0.5985 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.1604, allocations: 175.4 kB / 0.5987 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.1604, allocations: 77.11 kB / 0.5988 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1604, allocations: 0 / 0.5988 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.337e-05/0.1605, allocations: 15.98 kB / 0.5988 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.1606, allocations: 7.984 kB / 0.5988 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1606, allocations: 0 / 0.5988 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.734e-05/0.1606, allocations: 83.28 kB / 0.5989 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1606, allocations: 4 kB / 0.5989 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002293/0.1609, allocations: 8 kB / 0.5989 GB, free: 4.531 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.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.0005383/0.1614, allocations: 0.7085 MB / 0.5996 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.1617, allocations: 48.28 kB / 0.5996 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1617, allocations: 0 / 0.5996 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.1618, allocations: 32 kB / 0.5996 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.1621, allocations: 4 kB / 0.5996 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004164/0.1625, allocations: 159 kB / 0.5998 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.1627, allocations: 0.6807 MB / 0.6005 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.993e-05/0.1627, allocations: 4 kB / 0.6005 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.675e-05/0.1628, allocations: 11.44 kB / 0.6005 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1628, allocations: 3.938 kB / 0.6005 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.179, allocations: 1.557 MB / 0.602 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.483/7.662, allocations: 8.594 kB / 0.602 GB, free: 1.289 MB / 0.4981 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)