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/BuildSysPro 3.4.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/UsersGuide/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: License Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo): time 0.7575/0.7575, allocations: 117.9 MB / 133.9 MB, free: 9.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 176.5 kB / 161.7 MB, free: 13.98 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205.4 MB / 394.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008439/0.0008438, allocations: 91.62 kB / 470.1 MB, free: 29.09 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005793/0.0005795, allocations: 15.98 kB / 0.5423 GB, free: 9.742 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1972, allocations: 74.54 MB / 0.6151 GB, free: 15.14 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.6632, allocations: 100.8 MB / 0.7136 GB, free: 32.14 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.6635, allocations: 81.95 kB / 0.7136 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001036/0.6645, allocations: 0.5358 MB / 0.7142 GB, free: 31.67 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6646, allocations: 2.25 kB / 0.7142 GB, free: 31.67 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.6646, allocations: 0 / 0.7142 GB, free: 31.67 MB / 0.4948 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.0001821/0.6648, allocations: 314.7 kB / 0.7145 GB, free: 31.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.6648, allocations: 12.03 kB / 0.7145 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.6648, allocations: 0.9375 kB / 0.7145 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.272e-05/0.6649, allocations: 165.7 kB / 0.7146 GB, free: 31.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.6649, allocations: 2.125 kB / 0.7146 GB, free: 31.12 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.6649, allocations: 384 / 0.7146 GB, free: 31.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.917e-05/0.665, allocations: 37.36 kB / 0.7147 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.665, allocations: 5.156 kB / 0.7147 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.6651, allocations: 0 / 0.7147 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.6651, allocations: 0 / 0.7147 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.057e-05/0.6651, allocations: 11.45 kB / 0.7147 GB, free: 31.07 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001092/0.6652, allocations: 153.1 kB / 0.7148 GB, free: 30.88 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.569e-05/0.6653, allocations: 21.95 kB / 0.7149 GB, free: 30.85 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.6653, allocations: 8.172 kB / 0.7149 GB, free: 30.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.6654, allocations: 81.17 kB / 0.7149 GB, free: 30.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.6654, allocations: 30.56 kB / 0.715 GB, free: 30.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.6654, allocations: 4 kB / 0.715 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2): time 0.0001384/0.6656, allocations: 52.5 kB / 0.715 GB, free: 30.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.6656, allocations: 54.25 kB / 0.7151 GB, free: 30.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.112e-05/0.6657, allocations: 90.95 kB / 0.7152 GB, free: 30.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.753e-06/0.6657, allocations: 25.7 kB / 0.7152 GB, free: 30.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 1.061e-05/0.6657, allocations: 80.14 kB / 0.7153 GB, free: 30.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.6657, allocations: 6.391 kB / 0.7153 GB, free: 30.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-06/0.6657, allocations: 3.625 kB / 0.7153 GB, free: 30.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.6658, allocations: 315 kB / 0.7156 GB, free: 30.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.6658, allocations: 4 kB / 0.7156 GB, free: 30.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.681e-06/0.6658, allocations: 0 / 0.7156 GB, free: 30.06 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.763e-05/0.6658, allocations: 16.3 kB / 0.7156 GB, free: 30.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6659, allocations: 0 / 0.7156 GB, free: 30.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.598e-05/0.6659, allocations: 41.16 kB / 0.7156 GB, free: 30 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.6659, allocations: 4 kB / 0.7156 GB, free: 30 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.6659, allocations: 3.938 kB / 0.7156 GB, free: 29.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.6659, allocations: 0 / 0.7156 GB, free: 29.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.373e-05/0.666, allocations: 8.969 kB / 0.7157 GB, free: 29.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.666, allocations: 0 / 0.7157 GB, free: 29.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.666, allocations: 3.312 kB / 0.7157 GB, free: 29.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.666, allocations: 0 / 0.7157 GB, free: 29.98 MB / 0.4948 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 5.456e-05/0.6661, allocations: 113.3 kB / 0.7158 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-06/0.6661, allocations: 1.531 kB / 0.7158 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.181e-05/0.6662, allocations: 51.31 kB / 0.7158 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.6662, allocations: 0 / 0.7158 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.6662, allocations: 4.031 kB / 0.7158 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.6662, allocations: 0 / 0.7158 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.643e-05/0.6663, allocations: 153.3 kB / 0.716 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.6663, allocations: 0 / 0.716 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.904e-05/0.6663, allocations: 3.938 kB / 0.716 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.6663, allocations: 4 kB / 0.716 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.6663, allocations: 3.938 kB / 0.716 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.6663, allocations: 0.5625 kB / 0.716 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6664, allocations: 0 / 0.716 GB, free: 29.61 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.331e-05/0.6664, allocations: 67.92 kB / 0.716 GB, free: 29.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.978e-05/0.6664, allocations: 77.73 kB / 0.7161 GB, free: 29.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.6665, allocations: 8.562 kB / 0.7161 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.6665, allocations: 3.984 kB / 0.7161 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.942e-05/0.6665, allocations: 3.422 kB / 0.7161 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.6665, allocations: 0 / 0.7161 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 1.23e-05/0.6665, allocations: 79.22 kB / 0.7162 GB, free: 29.35 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9e-08/0.6665, allocations: 0 / 0.7162 GB, free: 29.35 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001973/0.6667, allocations: 11.44 kB / 0.7162 GB, free: 29.34 MB / 0.4948 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.0001423/0.6669, allocations: 111.9 kB / 0.7163 GB, free: 29.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 6.729e-05/0.667, allocations: 8 kB / 0.7163 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.667, allocations: 0 / 0.7163 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.312e-05/0.667, allocations: 4 kB / 0.7163 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.6671, allocations: 3.5 kB / 0.7163 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001716/0.6673, allocations: 87.78 kB / 0.7164 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.6674, allocations: 0.677 MB / 0.7171 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.068e-05/0.6675, allocations: 7.453 kB / 0.7171 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.315e-05/0.6675, allocations: 10.88 kB / 0.7171 GB, free: 28.4 MB / 0.4948 GB Notification: Performance of SimCode: time 2.9e-07/0.6675, allocations: 0 / 0.7171 GB, free: 28.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.001884/0.6694, allocations: 315.4 kB / 0.7174 GB, free: 28.21 MB / 0.4948 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)