Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.005231/0.005231, allocations: 99.72 kB / 15.73 MB, free: 6.496 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.001198/0.001198, allocations: 200.4 kB / 16.68 MB, free: 6.371 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002209/0.002209, allocations: 279.2 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 103.8 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1708, allocations: 86.98 MB / 0.766 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001758/0.1726, allocations: 0.5721 MB / 0.7665 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002649/0.1729, allocations: 51.8 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.729e-05/0.1729, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.1729, allocations: 4 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.173, allocations: 0 / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.1732, allocations: 11.92 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.642e-05/0.1732, allocations: 8 kB / 0.7666 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.1733, allocations: 7.922 kB / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.15e-05/0.1733, allocations: 0 / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.912e-05/0.1733, allocations: 0 / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.1733, allocations: 4 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.1734, allocations: 11.98 kB / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.1734, allocations: 0 / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.1734, allocations: 0 / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.366e-05/0.1735, allocations: 11.98 kB / 0.7666 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1735, allocations: 7.922 kB / 0.7666 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1736, allocations: 0 / 0.7666 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.1736, allocations: 0 / 0.7666 GB, free: 8.164 MB / 0.5606 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.0002829/0.1739, allocations: 315.8 kB / 0.7669 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1739, allocations: 12.03 kB / 0.7669 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.807e-05/0.1739, allocations: 34.75 kB / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.151e-05/0.174, allocations: 0.9375 kB / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.198e-05/0.174, allocations: 164.4 kB / 0.7671 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.1741, allocations: 384 / 0.7671 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-06/0.1741, allocations: 12.31 kB / 0.7671 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.175e-05/0.1742, allocations: 30.27 kB / 0.7672 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1742, allocations: 3.938 kB / 0.7672 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1742, allocations: 7.984 kB / 0.7672 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1742, allocations: 0 / 0.7672 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.702e-05/0.1743, allocations: 3.984 kB / 0.7672 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1744, allocations: 149.7 kB / 0.7673 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.272e-05/0.1745, allocations: 22.61 kB / 0.7674 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.1745, allocations: 16.84 kB / 0.7674 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.1747, allocations: 81.11 kB / 0.7674 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1747, allocations: 34.56 kB / 0.7675 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1747, allocations: 0 / 0.7675 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001556/0.1749, allocations: 41.62 kB / 0.7675 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.1749, allocations: 51.41 kB / 0.7676 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.12e-05/0.175, allocations: 97.94 kB / 0.7677 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.175, allocations: 29.7 kB / 0.7677 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.612e-05/0.175, allocations: 80.14 kB / 0.7678 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.175, allocations: 4 kB / 0.7678 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.1751, allocations: 13.66 kB / 0.7678 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.1752, allocations: 314.8 kB / 0.7681 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.1752, allocations: 11.92 kB / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.027e-06/0.1752, allocations: 4 kB / 0.7681 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.619e-05/0.1752, allocations: 12.92 kB / 0.7681 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1752, allocations: 0 / 0.7681 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.767e-05/0.1753, allocations: 37.7 kB / 0.7681 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1753, allocations: 7.938 kB / 0.7682 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1754, allocations: 7.922 kB / 0.7682 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1754, allocations: 0 / 0.7682 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.304e-05/0.1754, allocations: 4 kB / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1754, allocations: 0 / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.1755, allocations: 0 / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.1755, allocations: 7.969 kB / 0.7682 GB, free: 6.328 MB / 0.5606 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.065e-05/0.1756, allocations: 110.5 kB / 0.7683 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-06/0.1756, allocations: 0 / 0.7683 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.897e-05/0.1757, allocations: 48.75 kB / 0.7683 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1757, allocations: 0 / 0.7683 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1757, allocations: 0 / 0.7683 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1757, allocations: 0 / 0.7683 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.1758, allocations: 153.7 kB / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1758, allocations: 0 / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.604e-05/0.1759, allocations: 8.031 kB / 0.7685 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1759, allocations: 0 / 0.7685 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1759, allocations: 3.938 kB / 0.7685 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1759, allocations: 4 kB / 0.7685 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1759, allocations: 0 / 0.7685 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.247e-05/0.176, allocations: 69.02 kB / 0.7686 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.176, allocations: 81.11 kB / 0.7686 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.176, allocations: 3.938 kB / 0.7686 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.176, allocations: 4.031 kB / 0.7686 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.1761, allocations: 3.984 kB / 0.7686 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.1761, allocations: 4 kB / 0.7686 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.597e-05/0.1761, allocations: 75.28 kB / 0.7687 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1761, allocations: 0 / 0.7687 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002152/0.1764, allocations: 4 kB / 0.7687 GB, free: 5.668 MB / 0.5606 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.0003486/0.1767, allocations: 0.6162 MB / 0.7693 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.052e-05/0.1768, allocations: 4 kB / 0.7693 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1768, allocations: 0 / 0.7693 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.738e-05/0.1768, allocations: 4 kB / 0.7693 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.177, allocations: 15.86 kB / 0.7693 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000283/0.1773, allocations: 111.8 kB / 0.7695 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.1775, allocations: 0.6845 MB / 0.7701 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.462e-05/0.1775, allocations: 3.984 kB / 0.7701 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.19e-05/0.1775, allocations: 11.44 kB / 0.7701 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of SimCode: time 2.7e-07/0.1775, allocations: 0 / 0.7701 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.1942, allocations: 1.069 MB / 0.7712 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.291/7.485, allocations: 10.72 kB / 0.7712 GB, free: 3.148 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)