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.5.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.5.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7152/0.7152, allocations: 127.4 MB / 134.9 MB, free: 3.496 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.0009753/0.0009754, allocations: 184 kB / 164.6 MB, free: 11.58 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.444/1.444, allocations: 205.2 MB / 399.5 MB, free: 13.55 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.0009037/0.0009038, allocations: 95.48 kB / 476.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.238e-05/2.243e-05, allocations: 7.688 kB / 0.5466 GB, free: 95.44 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 76.76 MB / 0.6215 GB, free: 43.1 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.2639, allocations: 101.2 MB / 0.7203 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.2642, allocations: 79.94 kB / 0.7204 GB, free: 5.73 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001253/0.2655, allocations: 0.5357 MB / 0.7209 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.996e-06/0.2656, allocations: 0 / 0.7209 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.2656, allocations: 4 kB / 0.7209 GB, free: 5.188 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.0002484/0.2658, allocations: 315.1 kB / 0.7212 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2659, allocations: 8.031 kB / 0.7212 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.2659, allocations: 3.953 kB / 0.7212 GB, free: 4.824 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.98e-05/0.266, allocations: 159.1 kB / 0.7214 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.266, allocations: 4 kB / 0.7214 GB, free: 4.625 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.2661, allocations: 3.984 kB / 0.7214 GB, free: 4.621 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.966e-05/0.2661, allocations: 4 kB / 0.7214 GB, free: 4.617 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.34e-05/0.2662, allocations: 29.7 kB / 0.7214 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.2662, allocations: 4 kB / 0.7214 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.2662, allocations: 0 / 0.7214 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.2662, allocations: 0 / 0.7214 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.2664, allocations: 138.1 kB / 0.7216 GB, free: 4.406 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.659e-05/0.2664, allocations: 22.55 kB / 0.7216 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.004e-05/0.2665, allocations: 12.92 kB / 0.7216 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/0.2666, allocations: 77.11 kB / 0.7217 GB, free: 4.266 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.2666, allocations: 38.56 kB / 0.7217 GB, free: 4.219 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2666, allocations: 0 / 0.7217 GB, free: 4.219 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2): time 0.000146/0.2668, allocations: 33.69 kB / 0.7217 GB, free: 4.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.2668, allocations: 51.41 kB / 0.7218 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.07e-05/0.2669, allocations: 85 kB / 0.7219 GB, free: 4.027 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.2669, allocations: 29.7 kB / 0.7219 GB, free: 3.992 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 2.753e-05/0.2669, allocations: 84.14 kB / 0.722 GB, free: 3.906 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.2669, allocations: 0 / 0.722 GB, free: 3.906 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-06/0.267, allocations: 4.031 kB / 0.722 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2671, allocations: 310.8 kB / 0.7223 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.2671, allocations: 0 / 0.7223 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.962e-06/0.2671, allocations: 7.938 kB / 0.7223 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.661e-05/0.2671, allocations: 11.94 kB / 0.7223 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2671, allocations: 0 / 0.7223 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.221e-05/0.2672, allocations: 37.7 kB / 0.7223 GB, free: 3.527 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2672, allocations: 4 kB / 0.7223 GB, free: 3.523 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2673, allocations: 96 / 0.7223 GB, free: 3.523 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.2673, allocations: 4 kB / 0.7223 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.2673, allocations: 7.984 kB / 0.7224 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.2674, allocations: 3.938 kB / 0.7224 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.2674, allocations: 3.906 kB / 0.7224 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.2674, allocations: 0 / 0.7224 GB, free: 3.504 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 () * 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.188e-05/0.2674, allocations: 108.9 kB / 0.7225 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-06/0.2675, allocations: 0 / 0.7225 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.675e-05/0.2676, allocations: 41.38 kB / 0.7225 GB, free: 3.348 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2676, allocations: 8.031 kB / 0.7225 GB, free: 3.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2676, allocations: 3.938 kB / 0.7225 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.2676, allocations: 0 / 0.7225 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.692e-05/0.2677, allocations: 126.2 kB / 0.7226 GB, free: 3.176 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2677, allocations: 0 / 0.7226 GB, free: 3.176 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.458e-05/0.2677, allocations: 8 kB / 0.7226 GB, free: 3.168 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2677, allocations: 7.938 kB / 0.7226 GB, free: 3.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.2677, allocations: 0 / 0.7226 GB, free: 3.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2677, allocations: 0 / 0.7226 GB, free: 3.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.2677, allocations: 7.984 kB / 0.7227 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.853e-05/0.2678, allocations: 61.14 kB / 0.7227 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.2679, allocations: 81.09 kB / 0.7228 GB, free: 2.977 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2679, allocations: 3.953 kB / 0.7228 GB, free: 2.973 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.2679, allocations: 3.938 kB / 0.7228 GB, free: 2.969 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.268, allocations: 4 kB / 0.7228 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.268, allocations: 0 / 0.7228 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.407e-05/0.268, allocations: 75.28 kB / 0.7229 GB, free: 2.891 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.31e-07/0.268, allocations: 4.031 kB / 0.7229 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002047/0.2682, allocations: 8.219 kB / 0.7229 GB, free: 2.879 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 () * 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.0001651/0.2684, allocations: 107.2 kB / 0.723 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 6.329e-05/0.2685, allocations: 4 kB / 0.723 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2685, allocations: 0 / 0.723 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.346e-05/0.2685, allocations: 8 kB / 0.723 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.2686, allocations: 0 / 0.723 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.2688, allocations: 60.06 kB / 0.7231 GB, free: 2.668 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.269, allocations: 0.6729 MB / 0.7237 GB, free: 1.969 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.312e-05/0.2691, allocations: 0 / 0.7237 GB, free: 1.969 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.725e-05/0.2691, allocations: 11.42 kB / 0.7237 GB, free: 1.957 MB / 0.4948 GB Notification: Performance of SimCode: time 2.7e-07/0.2691, allocations: 0 / 0.7237 GB, free: 1.957 MB / 0.4948 GB Notification: Performance of Templates: time 0.001987/0.2711, allocations: 308 kB / 0.724 GB, free: 1.656 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)