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.006244/0.006244, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001264/0.001264, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002229/0.002229, allocations: 279 kB / 290.8 MB, free: 1.758 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9425/0.9425, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 99.84 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1761, allocations: 86.98 MB / 0.7659 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.002119/0.1782, allocations: 0.5877 MB / 0.7665 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003027/0.1786, allocations: 55.8 kB / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.591e-05/0.1786, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.1786, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.761e-06/0.1787, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.1789, allocations: 7.984 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.729e-05/0.1789, allocations: 3.984 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.179, allocations: 4 kB / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.811e-05/0.179, allocations: 7.938 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.867e-05/0.1791, allocations: 3.938 kB / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.1791, allocations: 4 kB / 0.7666 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.885e-05/0.1791, allocations: 7.984 kB / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.1792, allocations: 8 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.029e-05/0.1792, allocations: 3.984 kB / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.52e-05/0.1793, allocations: 4 kB / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.461e-05/0.1793, allocations: 0 / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.853e-06/0.1793, allocations: 3.938 kB / 0.7666 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.1793, allocations: 0 / 0.7666 GB, free: 8.18 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.0003868/0.1797, allocations: 319.8 kB / 0.7669 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.1798, allocations: 12.03 kB / 0.7669 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.392e-05/0.1798, allocations: 34.75 kB / 0.767 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.1798, allocations: 0.9375 kB / 0.767 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.18, allocations: 160.4 kB / 0.7671 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.18, allocations: 384 / 0.7671 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.18, allocations: 384 / 0.7671 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1801, allocations: 34.25 kB / 0.7672 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1801, allocations: 3.938 kB / 0.7672 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.1801, allocations: 4 kB / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1802, allocations: 0 / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.687e-05/0.1802, allocations: 11.94 kB / 0.7672 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001546/0.1804, allocations: 157.6 kB / 0.7673 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.246e-05/0.1804, allocations: 22.61 kB / 0.7674 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.804e-05/0.1804, allocations: 8.922 kB / 0.7674 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001711/0.1806, allocations: 81.09 kB / 0.7674 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1807, allocations: 34.56 kB / 0.7675 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1807, allocations: 0 / 0.7675 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001581/0.1808, allocations: 49.58 kB / 0.7675 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.1809, allocations: 55.39 kB / 0.7676 GB, free: 7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.662e-05/0.1809, allocations: 93.81 kB / 0.7677 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.1809, allocations: 25.7 kB / 0.7677 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.542e-05/0.181, allocations: 80.14 kB / 0.7678 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.181, allocations: 8 kB / 0.7678 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.181, allocations: 9.719 kB / 0.7678 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1812, allocations: 311 kB / 0.7681 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.1812, allocations: 8 kB / 0.7681 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-06/0.1812, allocations: 4 kB / 0.7681 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.298e-05/0.1812, allocations: 16.84 kB / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1812, allocations: 0 / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.366e-05/0.1813, allocations: 41.64 kB / 0.7681 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1813, allocations: 4 kB / 0.7682 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1813, allocations: 7.875 kB / 0.7682 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1814, allocations: 0 / 0.7682 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.696e-05/0.1814, allocations: 12.08 kB / 0.7682 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1814, allocations: 0 / 0.7682 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.494e-05/0.1815, allocations: 0 / 0.7682 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.1815, allocations: 4 kB / 0.7682 GB, free: 6.344 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 6.51e-05/0.1815, allocations: 106.5 kB / 0.7683 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-06/0.1816, allocations: 0 / 0.7683 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.86e-05/0.1816, allocations: 52.69 kB / 0.7683 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1817, allocations: 3.984 kB / 0.7683 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1817, allocations: 4.031 kB / 0.7683 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1817, allocations: 0 / 0.7683 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.677e-05/0.1818, allocations: 145.7 kB / 0.7685 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1818, allocations: 0 / 0.7685 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.882e-05/0.1818, allocations: 11.98 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1818, allocations: 0 / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.1818, allocations: 3.938 kB / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1818, allocations: 0 / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1818, allocations: 0 / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.399e-05/0.1819, allocations: 69.08 kB / 0.7686 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.182, allocations: 85.05 kB / 0.7686 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.182, allocations: 3.938 kB / 0.7686 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.182, allocations: 3.938 kB / 0.7686 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.182, allocations: 0 / 0.7686 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.1821, allocations: 4 kB / 0.7686 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.665e-05/0.1821, allocations: 79.28 kB / 0.7687 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.1821, allocations: 0 / 0.7687 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002023/0.1823, allocations: 4 kB / 0.7687 GB, free: 5.68 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.0004133/0.1827, allocations: 0.6124 MB / 0.7693 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.998e-05/0.1828, allocations: 11.94 kB / 0.7693 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1828, allocations: 0 / 0.7693 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.793e-05/0.1828, allocations: 8.094 kB / 0.7693 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.183, allocations: 0 / 0.7693 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.1833, allocations: 122.5 kB / 0.7695 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1836, allocations: 0.669 MB / 0.7701 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.072e-05/0.1836, allocations: 4 kB / 0.7701 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.1837, allocations: 11.42 kB / 0.7701 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1837, allocations: 0 / 0.7701 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.2034, allocations: 1.085 MB / 0.7712 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.707, allocations: 5.938 kB / 0.7712 GB, free: 3.164 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)