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.00186/0.00186, allocations: 109.4 kB / 16.41 MB, free: 6.5 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.001962/0.001962, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.525/1.525, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8401/0.8401, allocations: 126.7 MB / 417.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 70.02 kB / 0.5736 GB, free: 27.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1592, allocations: 78.86 MB / 0.6506 GB, free: 3.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001688/0.1609, allocations: 0.5676 MB / 0.6511 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002814/0.1612, allocations: 47.8 kB / 0.6512 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.654e-05/0.1613, allocations: 4 kB / 0.6512 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.1613, allocations: 0 / 0.6512 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1613, allocations: 0 / 0.6512 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.1615, allocations: 11.94 kB / 0.6512 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.715e-05/0.1616, allocations: 3.984 kB / 0.6512 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.1616, allocations: 7.984 kB / 0.6512 GB, free: 2.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.1616, allocations: 4 kB / 0.6512 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.1617, allocations: 3.938 kB / 0.6512 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.426e-06/0.1617, allocations: 0 / 0.6512 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.346e-05/0.1618, allocations: 8 kB / 0.6512 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.163e-05/0.1618, allocations: 4 kB / 0.6512 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.568e-05/0.1618, allocations: 3.938 kB / 0.6512 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.411e-05/0.1619, allocations: 15.97 kB / 0.6513 GB, free: 2.855 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1619, allocations: 0 / 0.6513 GB, free: 2.855 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1619, allocations: 0 / 0.6513 GB, free: 2.855 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.1619, allocations: 0 / 0.6513 GB, free: 2.855 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.0003245/0.1622, allocations: 319.8 kB / 0.6516 GB, free: 2.492 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.1623, allocations: 15.97 kB / 0.6516 GB, free: 2.477 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.217e-05/0.1623, allocations: 38.75 kB / 0.6516 GB, free: 2.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.1624, allocations: 0.9375 kB / 0.6516 GB, free: 2.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1625, allocations: 160.4 kB / 0.6518 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1625, allocations: 384 / 0.6518 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-06/0.1625, allocations: 384 / 0.6518 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.975e-05/0.1626, allocations: 38.19 kB / 0.6518 GB, free: 2.191 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1626, allocations: 3.938 kB / 0.6518 GB, free: 2.188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-06/0.1626, allocations: 0 / 0.6518 GB, free: 2.188 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1626, allocations: 4 kB / 0.6518 GB, free: 2.184 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.294e-05/0.1627, allocations: 8 kB / 0.6518 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.1628, allocations: 149.7 kB / 0.652 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.954e-05/0.1629, allocations: 22.95 kB / 0.652 GB, free: 1.949 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.883e-05/0.1629, allocations: 8.922 kB / 0.652 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.1631, allocations: 81.09 kB / 0.6521 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1631, allocations: 42.5 kB / 0.6521 GB, free: 1.789 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1631, allocations: 0 / 0.6521 GB, free: 1.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001367/0.1632, allocations: 41.64 kB / 0.6522 GB, free: 1.742 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.1633, allocations: 51.41 kB / 0.6522 GB, free: 1.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.497e-05/0.1633, allocations: 89.86 kB / 0.6523 GB, free: 1.582 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1634, allocations: 25.7 kB / 0.6523 GB, free: 1.551 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.1634, allocations: 84.12 kB / 0.6524 GB, free: 1.465 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.1634, allocations: 3.953 kB / 0.6524 GB, free: 1.461 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.144e-05/0.1635, allocations: 21.84 kB / 0.6524 GB, free: 1.434 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1636, allocations: 314.8 kB / 0.6527 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.394e-05/0.1636, allocations: 4 kB / 0.6527 GB, free: 1.113 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.548e-06/0.1636, allocations: 3.938 kB / 0.6527 GB, free: 1.109 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.719e-05/0.1637, allocations: 16.86 kB / 0.6527 GB, free: 1.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1637, allocations: 0 / 0.6527 GB, free: 1.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.451e-05/0.1638, allocations: 37.69 kB / 0.6528 GB, free: 1.047 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.1638, allocations: 4 kB / 0.6528 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1638, allocations: 12.02 kB / 0.6528 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1638, allocations: 0 / 0.6528 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.457e-05/0.1639, allocations: 4 kB / 0.6528 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1639, allocations: 0 / 0.6528 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.1639, allocations: 4 kB / 0.6528 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1639, allocations: 11.86 kB / 0.6528 GB, free: 1.012 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.905e-05/0.164, allocations: 109.8 kB / 0.6529 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-06/0.164, allocations: 3.938 kB / 0.6529 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.027e-05/0.1641, allocations: 52.75 kB / 0.653 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1641, allocations: 0 / 0.653 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1641, allocations: 0 / 0.653 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1641, allocations: 0 / 0.653 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.1642, allocations: 145.7 kB / 0.6531 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1643, allocations: 0 / 0.6531 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.23e-05/0.1643, allocations: 4 kB / 0.6531 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1643, allocations: 3.984 kB / 0.6531 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1643, allocations: 7.938 kB / 0.6531 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1643, allocations: 0 / 0.6531 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1643, allocations: 3.984 kB / 0.6531 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.494e-05/0.1644, allocations: 65.11 kB / 0.6532 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.478e-05/0.1645, allocations: 85.05 kB / 0.6533 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.1645, allocations: 11.94 kB / 0.6533 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-06/0.1645, allocations: 0 / 0.6533 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.351e-05/0.1645, allocations: 0 / 0.6533 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.1645, allocations: 0 / 0.6533 GB, free: 440 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.398e-05/0.1646, allocations: 75.28 kB / 0.6534 GB, free: 364 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1646, allocations: 4.031 kB / 0.6534 GB, free: 360 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001761/0.1648, allocations: 4 kB / 0.6534 GB, free: 356 kB / 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.0004671/0.1652, allocations: 0.6102 MB / 0.654 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.699e-05/0.1653, allocations: 15.98 kB / 0.654 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1653, allocations: 4.094 kB / 0.654 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.482e-05/0.1654, allocations: 4 kB / 0.654 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1655, allocations: 1.875 kB / 0.654 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003233/0.1658, allocations: 118.7 kB / 0.6541 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.1661, allocations: 0.669 MB / 0.6547 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.431e-05/0.1661, allocations: 0 / 0.6547 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.968e-05/0.1662, allocations: 15.38 kB / 0.6548 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of SimCode: time 2.023e-06/0.1662, allocations: 0 / 0.6548 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.1899, allocations: 1.062 MB / 0.6558 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.159, allocations: 3.406 kB / 0.6558 GB, free: 13.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)