Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.001014/0.001014, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001276/0.001276, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.919/0.919, allocations: 135.3 MB / 426.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004779/0.0004782, allocations: 8.219 kB / 0.5071 GB, free: 5.039 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1792, allocations: 82.32 MB / 0.5875 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0006985/0.18, allocations: 303.1 kB / 0.5878 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002262/0.1802, allocations: 35.91 kB / 0.5878 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.308e-06/0.1803, allocations: 0 / 0.5878 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1803, allocations: 0 / 0.5878 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.1803, allocations: 7.938 kB / 0.5878 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001744/0.1805, allocations: 7.984 kB / 0.5878 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.88e-05/0.1805, allocations: 4 kB / 0.5878 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.177e-05/0.1806, allocations: 0 / 0.5878 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.475e-05/0.1806, allocations: 7.984 kB / 0.5878 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.778e-05/0.1806, allocations: 8 kB / 0.5878 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.626e-06/0.1806, allocations: 0 / 0.5878 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.1807, allocations: 4 kB / 0.5878 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.735e-06/0.1807, allocations: 3.984 kB / 0.5878 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.446e-05/0.1808, allocations: 25.7 kB / 0.5879 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.332e-05/0.1808, allocations: 7.938 kB / 0.5879 GB, free: 2.469 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1808, allocations: 0 / 0.5879 GB, free: 2.469 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1808, allocations: 0 / 0.5879 GB, free: 2.469 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1808, allocations: 0 / 0.5879 GB, free: 2.469 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.0002779/0.1811, allocations: 323.4 kB / 0.5882 GB, free: 2.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1812, allocations: 8.031 kB / 0.5882 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.1812, allocations: 34.5 kB / 0.5882 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.757e-05/0.1812, allocations: 0 / 0.5882 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.023e-05/0.1813, allocations: 163 kB / 0.5884 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.1813, allocations: 4 kB / 0.5884 GB, free: 1.852 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-06/0.1814, allocations: 0 / 0.5884 GB, free: 1.852 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.472e-05/0.1814, allocations: 37.69 kB / 0.5884 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.1815, allocations: 0 / 0.5884 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-06/0.1815, allocations: 0 / 0.5884 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1815, allocations: 4 kB / 0.5884 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.805e-05/0.1815, allocations: 4 kB / 0.5884 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.1816, allocations: 149.6 kB / 0.5886 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.141e-05/0.1817, allocations: 26.55 kB / 0.5886 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.8e-05/0.1817, allocations: 8.922 kB / 0.5886 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.1819, allocations: 81.11 kB / 0.5887 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.1819, allocations: 38.55 kB / 0.5887 GB, free: 1.414 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1819, allocations: 3.938 kB / 0.5887 GB, free: 1.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001284/0.182, allocations: 45.55 kB / 0.5888 GB, free: 1.359 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.1821, allocations: 51.41 kB / 0.5888 GB, free: 1.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.282e-05/0.1821, allocations: 89.86 kB / 0.5889 GB, free: 1.199 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1821, allocations: 25.7 kB / 0.5889 GB, free: 1.168 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.255e-05/0.1822, allocations: 84.14 kB / 0.589 GB, free: 1.082 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1822, allocations: 4 kB / 0.589 GB, free: 1.078 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.1822, allocations: 128 / 0.589 GB, free: 1.078 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.1823, allocations: 322.8 kB / 0.5893 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.917e-06/0.1823, allocations: 0 / 0.5893 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-06/0.1823, allocations: 4 kB / 0.5893 GB, free: 0.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.153e-05/0.1824, allocations: 7.953 kB / 0.5893 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1824, allocations: 3.938 kB / 0.5893 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.952e-05/0.1824, allocations: 37.7 kB / 0.5894 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1825, allocations: 7.984 kB / 0.5894 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.1825, allocations: 0 / 0.5894 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.228e-06/0.1825, allocations: 4.094 kB / 0.5894 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.236e-05/0.1825, allocations: 11.94 kB / 0.5894 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1826, allocations: 3.984 kB / 0.5894 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.326e-05/0.1826, allocations: 288 / 0.5894 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-06/0.1826, allocations: 0 / 0.5894 GB, free: 0.668 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.42e-05/0.1827, allocations: 113.8 kB / 0.5895 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-06/0.1827, allocations: 4 kB / 0.5895 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.213e-05/0.1828, allocations: 44.75 kB / 0.5896 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1828, allocations: 4.031 kB / 0.5896 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1828, allocations: 0 / 0.5896 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1828, allocations: 0 / 0.5896 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.647e-05/0.1829, allocations: 157.7 kB / 0.5897 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1829, allocations: 3.953 kB / 0.5897 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.151e-05/0.1829, allocations: 0 / 0.5897 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.1829, allocations: 4 kB / 0.5897 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1829, allocations: 0 / 0.5897 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1829, allocations: 3.938 kB / 0.5897 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1829, allocations: 0 / 0.5897 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.229e-05/0.183, allocations: 69.03 kB / 0.5898 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.1831, allocations: 81.06 kB / 0.5899 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1831, allocations: 4 kB / 0.5899 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.1831, allocations: 0 / 0.5899 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.1831, allocations: 3.984 kB / 0.5899 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1831, allocations: 0 / 0.5899 GB, free: 84 kB / 494.1 MB Notification: Performance of sorting global known variables: time 2.5e-05/0.1832, allocations: 75.28 kB / 0.5899 GB, free: 8 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1832, allocations: 0 / 0.5899 GB, free: 8 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.1834, allocations: 12.02 kB / 0.59 GB, free: 15.99 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004243/0.1838, allocations: 0.6123 MB / 0.5906 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.243e-05/0.1839, allocations: 4 kB / 0.5906 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1839, allocations: 8.031 kB / 0.5906 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.458e-05/0.1839, allocations: 7.984 kB / 0.5906 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1841, allocations: 11.72 kB / 0.5906 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002925/0.1844, allocations: 104.4 kB / 0.5907 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.1846, allocations: 0.677 MB / 0.5913 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.295e-05/0.1846, allocations: 0 / 0.5913 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.962e-05/0.1847, allocations: 7.438 kB / 0.5914 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1847, allocations: 0 / 0.5914 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009404/0.1941, allocations: 0.8628 MB / 0.5922 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.1943, allocations: 185.6 kB / 0.5924 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/1.765, allocations: 0 / 0.5924 GB, free: 13.5 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: