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.004644/0.004644, allocations: 99.84 kB / 15.73 MB, free: 6.492 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.001234/0.001234, allocations: 201.5 kB / 16.68 MB, free: 6.375 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002474/0.002474, allocations: 279.2 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002703/0.002703, allocations: 99.84 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1724, allocations: 86.98 MB / 0.766 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001639/0.1741, allocations: 0.5787 MB / 0.7665 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000238/0.1744, allocations: 51.78 kB / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.587e-05/0.1744, allocations: 0 / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.085e-05/0.1744, allocations: 4 kB / 0.7666 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.55e-06/0.1744, allocations: 0 / 0.7666 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.1746, allocations: 8 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.467e-05/0.1747, allocations: 3.938 kB / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.1748, allocations: 11.94 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.892e-05/0.1748, allocations: 7.969 kB / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.1748, allocations: 0 / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.175e-06/0.1748, allocations: 0 / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.743e-05/0.1749, allocations: 8 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.857e-06/0.1749, allocations: 0 / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.1749, allocations: 4 kB / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.862e-05/0.175, allocations: 15.97 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.175, allocations: 3.938 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.393e-06/0.175, allocations: 0 / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.1751, allocations: 0 / 0.7666 GB, free: 8.191 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.0003055/0.1754, allocations: 319.8 kB / 0.7669 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.1754, allocations: 8.031 kB / 0.7669 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.1755, allocations: 38.69 kB / 0.767 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.871e-05/0.1755, allocations: 0.9375 kB / 0.767 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.1756, allocations: 164.4 kB / 0.7671 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.1756, allocations: 384 / 0.7671 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.1756, allocations: 4.359 kB / 0.7671 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.27e-05/0.1757, allocations: 34.25 kB / 0.7672 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1757, allocations: 7.938 kB / 0.7672 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-06/0.1757, allocations: 3.938 kB / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1757, allocations: 0 / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.734e-05/0.1758, allocations: 4 kB / 0.7672 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.1759, allocations: 149.7 kB / 0.7673 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.607e-05/0.176, allocations: 22.59 kB / 0.7674 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.176, allocations: 8.859 kB / 0.7674 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.1761, allocations: 81.17 kB / 0.7674 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.1762, allocations: 34.56 kB / 0.7675 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1762, allocations: 0 / 0.7675 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.000128/0.1763, allocations: 53.56 kB / 0.7675 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.1764, allocations: 51.41 kB / 0.7676 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.636e-05/0.1764, allocations: 93.81 kB / 0.7677 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1764, allocations: 25.7 kB / 0.7677 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/0.1765, allocations: 80.14 kB / 0.7678 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.1765, allocations: 4.125 kB / 0.7678 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.1765, allocations: 21.7 kB / 0.7678 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1767, allocations: 310.8 kB / 0.7681 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.1767, allocations: 4 kB / 0.7681 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.1767, allocations: 0 / 0.7681 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.195e-05/0.1767, allocations: 16.8 kB / 0.7681 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1767, allocations: 4 kB / 0.7681 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.056e-05/0.1768, allocations: 37.75 kB / 0.7681 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.1768, allocations: 11.97 kB / 0.7682 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1768, allocations: 3.938 kB / 0.7682 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1768, allocations: 0 / 0.7682 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.807e-05/0.1769, allocations: 4 kB / 0.7682 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.1769, allocations: 0 / 0.7682 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.1769, allocations: 0 / 0.7682 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.1769, allocations: 0 / 0.7682 GB, free: 6.367 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.268e-05/0.177, allocations: 114.5 kB / 0.7683 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-06/0.177, allocations: 3.984 kB / 0.7683 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.234e-05/0.1771, allocations: 56.69 kB / 0.7683 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1771, allocations: 0 / 0.7683 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1771, allocations: 0 / 0.7683 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1771, allocations: 0 / 0.7683 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.1772, allocations: 153.6 kB / 0.7685 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1772, allocations: 0 / 0.7685 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.915e-05/0.1773, allocations: 0 / 0.7685 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1773, allocations: 4 kB / 0.7685 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1773, allocations: 7.938 kB / 0.7685 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1773, allocations: 0 / 0.7685 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.1773, allocations: 8.016 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.537e-05/0.1774, allocations: 65.03 kB / 0.7686 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.1774, allocations: 77.11 kB / 0.7686 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.1774, allocations: 11.92 kB / 0.7686 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.1775, allocations: 0 / 0.7686 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.817e-05/0.1775, allocations: 0 / 0.7686 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-06/0.1775, allocations: 0 / 0.7686 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.049e-05/0.1775, allocations: 83.31 kB / 0.7687 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1775, allocations: 0 / 0.7687 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002464/0.1778, allocations: 4 kB / 0.7687 GB, free: 5.691 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.0004003/0.1782, allocations: 0.6046 MB / 0.7693 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.258e-05/0.1783, allocations: 23.95 kB / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1783, allocations: 0 / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.577e-05/0.1783, allocations: 4 kB / 0.7693 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.1785, allocations: 3.938 kB / 0.7694 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003098/0.1788, allocations: 118.6 kB / 0.7695 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.1791, allocations: 0.669 MB / 0.7701 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.3e-05/0.1791, allocations: 4 kB / 0.7701 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.697e-05/0.1791, allocations: 7.438 kB / 0.7701 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.1791, allocations: 4.125 kB / 0.7701 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02063/0.1997, allocations: 1.092 MB / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.838/8.038, allocations: 3.938 kB / 0.7712 GB, free: 3.172 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)