Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_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.007837/0.007837, allocations: 99.3 kB / 15.73 MB, free: 6.043 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.001707/0.001707, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7836/0.7836, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 68.83 kB / 0.5809 GB, free: 1.102 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1741, allocations: 80.21 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001793/0.1759, allocations: 0.5741 MB / 0.6598 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002562/0.1762, allocations: 47.84 kB / 0.6598 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.67e-05/0.1762, allocations: 0 / 0.6598 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.1762, allocations: 4 kB / 0.6598 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.097e-06/0.1763, allocations: 3.938 kB / 0.6598 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.1765, allocations: 15.98 kB / 0.6599 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.508e-05/0.1765, allocations: 4 kB / 0.6599 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.717e-05/0.1766, allocations: 0 / 0.6599 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.61e-05/0.1766, allocations: 3.938 kB / 0.6599 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.233e-05/0.1766, allocations: 0 / 0.6599 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.1767, allocations: 4 kB / 0.6599 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.438e-05/0.1767, allocations: 15.92 kB / 0.6599 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.1768, allocations: 3.984 kB / 0.6599 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.998e-05/0.1768, allocations: 0 / 0.6599 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.331e-05/0.1769, allocations: 15.98 kB / 0.6599 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1769, allocations: 0 / 0.6599 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.773e-06/0.1769, allocations: 0 / 0.6599 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.1769, allocations: 0 / 0.6599 GB, free: 13.32 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003259/0.1772, allocations: 315.5 kB / 0.6602 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1773, allocations: 12.03 kB / 0.6602 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.81e-05/0.1773, allocations: 30.75 kB / 0.6602 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.1774, allocations: 4.875 kB / 0.6603 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.625e-05/0.1775, allocations: 168.4 kB / 0.6604 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1775, allocations: 384 / 0.6604 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.1775, allocations: 8.375 kB / 0.6604 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.571e-05/0.1776, allocations: 26.27 kB / 0.6604 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1776, allocations: 3.938 kB / 0.6604 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-06/0.1776, allocations: 4 kB / 0.6605 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1776, allocations: 0 / 0.6605 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.389e-05/0.1777, allocations: 3.984 kB / 0.6605 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.1778, allocations: 149.7 kB / 0.6606 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.221e-05/0.1779, allocations: 26.89 kB / 0.6606 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.543e-05/0.1779, allocations: 20.89 kB / 0.6606 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001862/0.1781, allocations: 81.11 kB / 0.6607 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1781, allocations: 30.56 kB / 0.6608 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1781, allocations: 0 / 0.6608 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001569/0.1783, allocations: 45.62 kB / 0.6608 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.1783, allocations: 55.34 kB / 0.6608 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.927e-05/0.1784, allocations: 93.98 kB / 0.6609 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.1784, allocations: 25.7 kB / 0.661 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.1784, allocations: 86.42 kB / 0.661 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.1785, allocations: 3.906 kB / 0.661 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.1785, allocations: 13.72 kB / 0.6611 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.1786, allocations: 318.8 kB / 0.6614 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.352e-05/0.1786, allocations: 3.984 kB / 0.6614 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.726e-06/0.1786, allocations: 4 kB / 0.6614 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.242e-05/0.1787, allocations: 16.92 kB / 0.6614 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1787, allocations: 0 / 0.6614 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.243e-05/0.1787, allocations: 33.7 kB / 0.6614 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1788, allocations: 7.984 kB / 0.6614 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1788, allocations: 7.875 kB / 0.6614 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1788, allocations: 0 / 0.6614 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.1789, allocations: 7.938 kB / 0.6614 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1789, allocations: 3.938 kB / 0.6614 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.725e-05/0.1789, allocations: 6.812 kB / 0.6615 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.1789, allocations: 4.031 kB / 0.6615 GB, free: 11.48 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 (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.641e-05/0.179, allocations: 110.5 kB / 0.6616 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/0.179, allocations: 0 / 0.6616 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.881e-05/0.1791, allocations: 48.75 kB / 0.6616 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1791, allocations: 0 / 0.6616 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1791, allocations: 0 / 0.6616 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1791, allocations: 0 / 0.6616 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.1793, allocations: 157.7 kB / 0.6618 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1793, allocations: 0 / 0.6618 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.82e-05/0.1794, allocations: 11.97 kB / 0.6618 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1794, allocations: 0 / 0.6618 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1794, allocations: 3.938 kB / 0.6618 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1794, allocations: 0 / 0.6618 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1794, allocations: 0 / 0.6618 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.429e-05/0.1795, allocations: 65.12 kB / 0.6618 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1796, allocations: 77.11 kB / 0.6619 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1796, allocations: 3.938 kB / 0.6619 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.1796, allocations: 4.031 kB / 0.6619 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.1796, allocations: 3.984 kB / 0.6619 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.1796, allocations: 4 kB / 0.6619 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.538e-05/0.1797, allocations: 79.28 kB / 0.662 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.1797, allocations: 0 / 0.662 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002038/0.1799, allocations: 4 kB / 0.662 GB, free: 10.82 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,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.0004348/0.1803, allocations: 0.6046 MB / 0.6626 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.581e-05/0.1804, allocations: 8 kB / 0.6626 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1804, allocations: 4 kB / 0.6626 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.914e-05/0.1804, allocations: 11.92 kB / 0.6626 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.1806, allocations: 1.562 kB / 0.6626 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003297/0.1809, allocations: 122.7 kB / 0.6627 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1812, allocations: 0.6729 MB / 0.6634 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.633e-05/0.1812, allocations: 3.906 kB / 0.6634 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.1812, allocations: 11.44 kB / 0.6634 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1812, allocations: 0 / 0.6634 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.1996, allocations: 1.056 MB / 0.6644 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.491/7.691, allocations: 3 kB / 0.6644 GB, free: 8.324 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)