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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001848/0.001848, allocations: 193.2 kB / 16.25 MB, free: 6.637 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002476, allocations: 283.7 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.078/1.078, allocations: 178.6 MB / 0.507 GB, free: 4.719 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004513/0.004513, allocations: 105.4 kB / 0.6059 GB, free: 24.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1956, allocations: 89.15 MB / 0.693 GB, free: 4.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001763/0.1974, allocations: 0.6499 MB / 0.6936 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002164/0.1976, allocations: 48.44 kB / 0.6937 GB, free: 4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.186e-05/0.1976, allocations: 0 / 0.6937 GB, free: 4 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.1976, allocations: 5.562 kB / 0.6937 GB, free: 3.996 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.028e-06/0.1977, allocations: 0 / 0.6937 GB, free: 3.996 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.1978, allocations: 8 kB / 0.6937 GB, free: 3.988 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.586e-05/0.1979, allocations: 7.922 kB / 0.6937 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.511e-05/0.1979, allocations: 4.625 kB / 0.6937 GB, free: 3.977 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.187e-05/0.198, allocations: 0 / 0.6937 GB, free: 3.977 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.198, allocations: 4.516 kB / 0.6937 GB, free: 3.973 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.634e-06/0.198, allocations: 2.75 kB / 0.6937 GB, free: 3.973 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.087e-05/0.1981, allocations: 12 kB / 0.6937 GB, free: 3.961 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1981, allocations: 0 / 0.6937 GB, free: 3.961 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.411e-05/0.1981, allocations: 4 kB / 0.6937 GB, free: 3.957 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.803e-05/0.1982, allocations: 15.91 kB / 0.6937 GB, free: 3.941 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1982, allocations: 0 / 0.6937 GB, free: 3.941 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1982, allocations: 0 / 0.6937 GB, free: 3.941 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1982, allocations: 0 / 0.6937 GB, free: 3.941 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.0003137/0.1985, allocations: 313.1 kB / 0.694 GB, free: 3.586 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1985, allocations: 8.031 kB / 0.694 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1986, allocations: 8.938 kB / 0.694 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.1987, allocations: 172.3 kB / 0.6942 GB, free: 3.363 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.1987, allocations: 4.359 kB / 0.6942 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.263e-06/0.1987, allocations: 384 / 0.6942 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.544e-05/0.1988, allocations: 34.27 kB / 0.6942 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.1988, allocations: 192 / 0.6942 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.1988, allocations: 3.938 kB / 0.6943 GB, free: 3.316 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1988, allocations: 0 / 0.6943 GB, free: 3.316 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.083e-05/0.1989, allocations: 7.984 kB / 0.6943 GB, free: 3.309 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.199, allocations: 145.7 kB / 0.6944 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.067e-05/0.1991, allocations: 30.55 kB / 0.6944 GB, free: 3.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.1991, allocations: 8.844 kB / 0.6944 GB, free: 3.066 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.1993, allocations: 81.17 kB / 0.6945 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1993, allocations: 30.56 kB / 0.6945 GB, free: 2.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.61e-07/0.1993, allocations: 0 / 0.6945 GB, free: 2.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000134/0.1994, allocations: 49.72 kB / 0.6946 GB, free: 2.875 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.1995, allocations: 55.44 kB / 0.6946 GB, free: 2.809 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.592e-05/0.1995, allocations: 89.86 kB / 0.6947 GB, free: 2.711 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1996, allocations: 29.64 kB / 0.6948 GB, free: 2.676 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.32e-05/0.1996, allocations: 88.08 kB / 0.6948 GB, free: 2.586 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.1996, allocations: 4.188 kB / 0.6948 GB, free: 2.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.1997, allocations: 13.72 kB / 0.6949 GB, free: 2.562 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1998, allocations: 310.8 kB / 0.6952 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.442e-05/0.1998, allocations: 7.984 kB / 0.6952 GB, free: 2.242 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-06/0.1998, allocations: 8 kB / 0.6952 GB, free: 2.234 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.885e-05/0.1999, allocations: 8.859 kB / 0.6952 GB, free: 2.223 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1999, allocations: 0 / 0.6952 GB, free: 2.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.932e-05/0.2, allocations: 45.64 kB / 0.6952 GB, free: 2.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.2, allocations: 11.98 kB / 0.6952 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.2, allocations: 0 / 0.6952 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.2, allocations: 3.938 kB / 0.6952 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.807e-05/0.2001, allocations: 7.938 kB / 0.6952 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.2001, allocations: 4.094 kB / 0.6952 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.2001, allocations: 3.938 kB / 0.6953 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.2001, allocations: 0 / 0.6953 GB, free: 2.141 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 (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 6.809e-05/0.2002, allocations: 105.8 kB / 0.6954 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-06/0.2002, allocations: 4 kB / 0.6954 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.334e-05/0.2003, allocations: 44.75 kB / 0.6954 GB, free: 1.977 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2003, allocations: 4 kB / 0.6954 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2003, allocations: 0 / 0.6954 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2003, allocations: 4.031 kB / 0.6954 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.2004, allocations: 149.7 kB / 0.6956 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2004, allocations: 0 / 0.6956 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-05/0.2004, allocations: 4 kB / 0.6956 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2005, allocations: 0 / 0.6956 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.2005, allocations: 3.938 kB / 0.6956 GB, free: 1.766 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2005, allocations: 7.938 kB / 0.6956 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2005, allocations: 0 / 0.6956 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.955e-05/0.2006, allocations: 67.02 kB / 0.6956 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.2006, allocations: 77.11 kB / 0.6957 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.2006, allocations: 3.938 kB / 0.6957 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.023e-05/0.2007, allocations: 0 / 0.6957 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.576e-05/0.2007, allocations: 7.984 kB / 0.6957 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.2007, allocations: 0 / 0.6957 GB, free: 1.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.08e-05/0.2007, allocations: 75.28 kB / 0.6958 GB, free: 1.496 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2007, allocations: 0 / 0.6958 GB, free: 1.496 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001795/0.2009, allocations: 4 kB / 0.6958 GB, free: 1.492 MB / 494.1 MB 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.0001498/0.2011, allocations: 107.3 kB / 0.6959 GB, free: 1.375 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.821e-05/0.2011, allocations: 11.94 kB / 0.6959 GB, free: 1.363 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.2012, allocations: 0 / 0.6959 GB, free: 1.363 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.574e-05/0.2012, allocations: 15.86 kB / 0.6959 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.2013, allocations: 4 kB / 0.6959 GB, free: 1.344 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001668/0.2015, allocations: 86.95 kB / 0.696 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2018, allocations: 0.673 MB / 0.6967 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.323e-05/0.2018, allocations: 8 kB / 0.6967 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.296e-05/0.2018, allocations: 7.438 kB / 0.6967 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2018, allocations: 0 / 0.6967 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of Templates: time 0.002382/0.2042, allocations: 324.5 kB / 0.697 GB, free: 208 kB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)