Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_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.001468/0.001468, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001831/0.001832, allocations: 177.3 kB / 15.95 MB, free: 216 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.389/1.389, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.02/1.02, allocations: 143.3 MB / 434.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003532, allocations: 16 kB / 0.5159 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1813, allocations: 83.42 MB / 0.5974 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001847/0.1832, allocations: 1.219 MB / 0.5986 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003061/0.1835, allocations: 116.6 kB / 0.5987 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.1835, allocations: 0 / 0.5987 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.1836, allocations: 3.984 kB / 0.5987 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.619e-05/0.1836, allocations: 3.984 kB / 0.5987 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.1838, allocations: 19.92 kB / 0.5987 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.233e-05/0.1839, allocations: 15.98 kB / 0.5987 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.43e-05/0.184, allocations: 11.98 kB / 0.5987 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.001e-05/0.184, allocations: 8 kB / 0.5987 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.966e-05/0.1841, allocations: 15.91 kB / 0.5987 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.1841, allocations: 0 / 0.5987 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.613e-05/0.1842, allocations: 15.98 kB / 0.5988 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.904e-06/0.1842, allocations: 0 / 0.5988 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.1842, allocations: 29.64 kB / 0.5988 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.059e-05/0.1843, allocations: 23.91 kB / 0.5988 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1843, allocations: 0 / 0.5988 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.804e-06/0.1843, allocations: 0 / 0.5988 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.1843, allocations: 4 kB / 0.5988 GB, free: 6.211 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004866/0.1848, allocations: 351.5 kB / 0.5991 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.1849, allocations: 8.031 kB / 0.5992 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.1849, allocations: 30.56 kB / 0.5992 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.185, allocations: 0 / 0.5992 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.1851, allocations: 167 kB / 0.5993 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.1851, allocations: 0 / 0.5993 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.1851, allocations: 8 kB / 0.5993 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.1853, allocations: 61.66 kB / 0.5994 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1854, allocations: 0 / 0.5994 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.1854, allocations: 4 kB / 0.5994 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1854, allocations: 0 / 0.5994 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1856, allocations: 63.89 kB / 0.5995 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000408/0.186, allocations: 260.8 kB / 0.5997 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.1863, allocations: 66.53 kB / 0.5998 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.1865, allocations: 85.16 kB / 0.5999 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1865, allocations: 38.58 kB / 0.5999 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 2.755e-06/0.1865, allocations: 7.922 kB / 0.5999 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004014/0.1869, allocations: 109.6 kB / 0.6 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.187, allocations: 51.41 kB / 0.6001 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.77e-05/0.1871, allocations: 105.8 kB / 0.6002 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1871, allocations: 25.7 kB / 0.6002 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.796e-05/0.1871, allocations: 84.14 kB / 0.6003 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.1872, allocations: 7.844 kB / 0.6003 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-06/0.1872, allocations: 4 kB / 0.6003 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1873, allocations: 318.8 kB / 0.6006 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.315e-05/0.1874, allocations: 19.98 kB / 0.6006 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.622e-05/0.1875, allocations: 27.92 kB / 0.6006 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.954e-05/0.1876, allocations: 31.97 kB / 0.6007 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1877, allocations: 3.938 kB / 0.6007 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002178/0.1879, allocations: 81.66 kB / 0.6007 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1879, allocations: 8 kB / 0.6007 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1879, allocations: 0 / 0.6007 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1879, allocations: 4 kB / 0.6008 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.561e-05/0.188, allocations: 11.98 kB / 0.6008 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.188, allocations: 0 / 0.6008 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.2e-05/0.1881, allocations: 19.84 kB / 0.6008 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1881, allocations: 0 / 0.6008 GB, free: 3.945 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 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.381e-05/0.1882, allocations: 117.8 kB / 0.6009 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.155e-05/0.1882, allocations: 0 / 0.6009 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003216/0.1886, allocations: 93.08 kB / 0.601 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1886, allocations: 0 / 0.601 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1886, allocations: 0 / 0.601 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1886, allocations: 4 kB / 0.601 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.1888, allocations: 165.6 kB / 0.6011 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1888, allocations: 0 / 0.6011 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.328e-05/0.1889, allocations: 11.98 kB / 0.6012 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1889, allocations: 0 / 0.6012 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1889, allocations: 8 kB / 0.6012 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1889, allocations: 0 / 0.6012 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1889, allocations: 0 / 0.6012 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.1892, allocations: 188 kB / 0.6013 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.1893, allocations: 81.02 kB / 0.6014 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1893, allocations: 0 / 0.6014 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.1894, allocations: 15.98 kB / 0.6014 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.1894, allocations: 7.984 kB / 0.6014 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.1894, allocations: 4 kB / 0.6014 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.706e-05/0.1895, allocations: 83.31 kB / 0.6015 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1895, allocations: 0 / 0.6015 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003285/0.1898, allocations: 11.94 kB / 0.6015 GB, free: 3.066 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005936/0.1904, allocations: 0.7199 MB / 0.6022 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002367/0.1907, allocations: 59.89 kB / 0.6023 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1907, allocations: 3.938 kB / 0.6023 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.1908, allocations: 31.97 kB / 0.6023 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.191, allocations: 4 kB / 0.6023 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004133/0.1914, allocations: 142.4 kB / 0.6025 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.1917, allocations: 0.6848 MB / 0.6031 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.081e-05/0.1917, allocations: 4 kB / 0.6031 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.1918, allocations: 11.44 kB / 0.6032 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1918, allocations: 3.938 kB / 0.6032 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01119/0.203, allocations: 1.276 MB / 0.6044 GB, free: 164 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.3176/0.5206, allocations: 188.7 kB / 0.6046 GB, free: 42.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.195, allocations: 0 / 0.6046 GB, free: 42.42 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: