Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/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.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.0009651/0.0009653, allocations: 99.55 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.00101/0.00101, allocations: 177.3 kB / 15.94 MB, free: 228 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.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.015/1.015, allocations: 143.3 MB / 434.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003328, allocations: 12 kB / 0.5159 GB, free: 11.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.182, allocations: 83.42 MB / 0.5974 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0006481/0.1827, allocations: 307.1 kB / 0.5977 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000212/0.1829, allocations: 51.83 kB / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.108e-05/0.1829, allocations: 0 / 0.5977 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.066e-05/0.183, allocations: 4 kB / 0.5977 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.638e-06/0.183, allocations: 0 / 0.5977 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001631/0.1831, allocations: 7.938 kB / 0.5977 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.551e-05/0.1832, allocations: 0 / 0.5977 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.1832, allocations: 0 / 0.5977 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.1833, allocations: 8 kB / 0.5977 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.505e-05/0.1833, allocations: 0 / 0.5977 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.1833, allocations: 0 / 0.5977 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.1834, allocations: 7.984 kB / 0.5977 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.803e-06/0.1834, allocations: 3.984 kB / 0.5977 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.33e-05/0.1834, allocations: 25.7 kB / 0.5978 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 5.142e-05/0.1835, allocations: 8 kB / 0.5978 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1835, allocations: 0 / 0.5978 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.767e-06/0.1835, allocations: 0 / 0.5978 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.1835, allocations: 3.938 kB / 0.5978 GB, free: 7.262 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.0002504/0.1837, allocations: 315.4 kB / 0.5981 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1838, allocations: 8.031 kB / 0.5981 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.784e-05/0.1838, allocations: 30.56 kB / 0.5981 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.027e-05/0.1839, allocations: 4 kB / 0.5981 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.067e-05/0.1839, allocations: 163 kB / 0.5983 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.184, allocations: 0 / 0.5983 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.184, allocations: 7.984 kB / 0.5983 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.22e-05/0.1841, allocations: 33.7 kB / 0.5983 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-06/0.1841, allocations: 0 / 0.5983 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-06/0.1841, allocations: 0 / 0.5983 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1841, allocations: 0 / 0.5983 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.317e-05/0.1841, allocations: 7.938 kB / 0.5983 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001231/0.1843, allocations: 153.6 kB / 0.5985 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.16e-05/0.1843, allocations: 30.61 kB / 0.5985 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.1845, allocations: 81.09 kB / 0.5986 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1845, allocations: 34.62 kB / 0.5986 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1845, allocations: 0 / 0.5986 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001215/0.1846, allocations: 45.58 kB / 0.5986 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.1847, allocations: 51.41 kB / 0.5987 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.442e-05/0.1847, allocations: 89.86 kB / 0.5988 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.1847, allocations: 25.7 kB / 0.5988 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.989e-05/0.1848, allocations: 88.25 kB / 0.5989 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1848, allocations: 7.906 kB / 0.5989 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.1848, allocations: 0 / 0.5989 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.1849, allocations: 318.8 kB / 0.5992 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.1849, allocations: 0 / 0.5992 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.287e-06/0.1849, allocations: 8 kB / 0.5992 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.932e-05/0.185, allocations: 0 / 0.5992 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.185, allocations: 0 / 0.5992 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.628e-05/0.185, allocations: 45.75 kB / 0.5993 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.1851, allocations: 8 kB / 0.5993 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.1851, allocations: 0 / 0.5993 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1851, allocations: 0 / 0.5993 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.354e-05/0.1851, allocations: 7.938 kB / 0.5993 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1851, allocations: 0 / 0.5993 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.463e-05/0.1852, allocations: 4.266 kB / 0.5993 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.1852, allocations: 0 / 0.5993 GB, free: 5.484 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,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 7.273e-05/0.1853, allocations: 112 kB / 0.5994 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-06/0.1853, allocations: 8.031 kB / 0.5994 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.838e-05/0.1854, allocations: 48.73 kB / 0.5994 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1854, allocations: 4 kB / 0.5994 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1854, allocations: 0 / 0.5994 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1854, allocations: 0 / 0.5994 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.381e-05/0.1855, allocations: 153.6 kB / 0.5996 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1855, allocations: 0 / 0.5996 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.287e-05/0.1855, allocations: 4 kB / 0.5996 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1855, allocations: 3.938 kB / 0.5996 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.1855, allocations: 0 / 0.5996 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.1855, allocations: 11.97 kB / 0.5996 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1856, allocations: 4 kB / 0.5996 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.849e-05/0.1856, allocations: 61.12 kB / 0.5997 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.1857, allocations: 81.06 kB / 0.5997 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.1857, allocations: 0 / 0.5997 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.056e-05/0.1857, allocations: 0 / 0.5997 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.1857, allocations: 7.984 kB / 0.5998 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1857, allocations: 4.031 kB / 0.5998 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.327e-05/0.1858, allocations: 75.28 kB / 0.5998 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1858, allocations: 0 / 0.5998 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001918/0.186, allocations: 4 kB / 0.5998 GB, free: 4.816 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.0003881/0.1864, allocations: 0.6163 MB / 0.6004 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.734e-05/0.1864, allocations: 4 kB / 0.6004 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.1864, allocations: 0 / 0.6004 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.1865, allocations: 11.98 kB / 0.6004 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.241e-05/0.1866, allocations: 0 / 0.6004 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.1868, allocations: 112.3 kB / 0.6006 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.1871, allocations: 0.6731 MB / 0.6012 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.424e-05/0.1871, allocations: 3.906 kB / 0.6012 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.1871, allocations: 15.56 kB / 0.6012 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/0.1871, allocations: 0 / 0.6012 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0101/0.1972, allocations: 0.865 MB / 0.6021 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.1974, allocations: 188.8 kB / 0.6023 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.777, allocations: 2.25 kB / 0.6023 GB, free: 2.328 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: