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/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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.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.6705/0.6705, 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.001055/0.001055, allocations: 172.3 kB / 161.7 MB, free: 13.99 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.806/1.806, allocations: 205.4 MB / 394.8 MB, free: 10.1 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.0008426/0.0008425, allocations: 88.16 kB / 470.1 MB, free: 29.15 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006164/0.0006166, allocations: 12 kB / 0.5423 GB, free: 9.766 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2112, allocations: 74.54 MB / 0.6151 GB, free: 15.17 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5309/0.7421, allocations: 101.7 MB / 0.7145 GB, free: 31.52 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.7424, allocations: 78.44 kB / 0.7146 GB, free: 31.49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002401/0.7448, allocations: 0.94 MB / 0.7155 GB, free: 30.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.256e-06/0.7449, allocations: 0 / 0.7155 GB, free: 30.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.467e-05/0.7449, allocations: 0 / 0.7155 GB, free: 30.83 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003677/0.7453, allocations: 358.1 kB / 0.7158 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.7453, allocations: 8.031 kB / 0.7158 GB, free: 30.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.7454, allocations: 5.688 kB / 0.7158 GB, free: 30.44 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.78e-05/0.7455, allocations: 161 kB / 0.716 GB, free: 30.24 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.7455, allocations: 384 / 0.716 GB, free: 30.24 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.7455, allocations: 7.656 kB / 0.716 GB, free: 30.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.7457, allocations: 60.06 kB / 0.7161 GB, free: 30.19 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.7457, allocations: 4.188 kB / 0.7161 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.7457, allocations: 3.938 kB / 0.7161 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.7457, allocations: 10.3 kB / 0.7161 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.7459, allocations: 48.64 kB / 0.7161 GB, free: 30.14 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004337/0.7464, allocations: 287.3 kB / 0.7164 GB, free: 29.85 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.7467, allocations: 63.33 kB / 0.7164 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.7468, allocations: 34.16 kB / 0.7165 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.7469, allocations: 87.11 kB / 0.7166 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.7469, allocations: 30.56 kB / 0.7166 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.747, allocations: 4 kB / 0.7166 GB, free: 29.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0003931/0.7474, allocations: 108.7 kB / 0.7167 GB, free: 29.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.7474, allocations: 51.41 kB / 0.7168 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.031e-05/0.7475, allocations: 104.1 kB / 0.7168 GB, free: 29.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.7475, allocations: 25.7 kB / 0.7169 GB, free: 29.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.7475, allocations: 84.8 kB / 0.717 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.7475, allocations: 7.172 kB / 0.717 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.7476, allocations: 0 / 0.717 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.293e-05/0.7476, allocations: 316.3 kB / 0.7173 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.693e-05/0.7477, allocations: 25.03 kB / 0.7173 GB, free: 28.92 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.95e-05/0.7478, allocations: 34.88 kB / 0.7173 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.748, allocations: 54.55 kB / 0.7174 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.748, allocations: 3.938 kB / 0.7174 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001891/0.7482, allocations: 89.44 kB / 0.7175 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.7482, allocations: 8 kB / 0.7175 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.7482, allocations: 0.5625 kB / 0.7175 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.7482, allocations: 0 / 0.7175 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.56e-05/0.7483, allocations: 11.89 kB / 0.7175 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.7483, allocations: 0 / 0.7175 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.7484, allocations: 18.28 kB / 0.7175 GB, free: 28.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.7484, allocations: 4.5 kB / 0.7175 GB, free: 28.75 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.y,fac.u) * 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 5.544e-05/0.7485, allocations: 115.1 kB / 0.7176 GB, free: 28.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.7485, allocations: 4.5 kB / 0.7176 GB, free: 28.62 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002442/0.7488, allocations: 94.03 kB / 0.7177 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.7488, allocations: 0.5156 kB / 0.7177 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.7488, allocations: 0 / 0.7177 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.7488, allocations: 0.5156 kB / 0.7177 GB, free: 28.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.7489, allocations: 170.8 kB / 0.7179 GB, free: 28.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.7489, allocations: 0 / 0.7179 GB, free: 28.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.749, allocations: 16.69 kB / 0.7179 GB, free: 28.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.749, allocations: 4.656 kB / 0.7179 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.749, allocations: 0 / 0.7179 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.749, allocations: 0.6562 kB / 0.7179 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.749, allocations: 3.938 kB / 0.7179 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.7493, allocations: 183.2 kB / 0.7181 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.7493, allocations: 85.67 kB / 0.7182 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.7493, allocations: 0.75 kB / 0.7182 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.7495, allocations: 9.562 kB / 0.7182 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.7495, allocations: 6.766 kB / 0.7182 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.7495, allocations: 0 / 0.7182 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.7496, allocations: 84.05 kB / 0.7182 GB, free: 27.97 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7496, allocations: 0 / 0.7182 GB, free: 27.97 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002129/0.7498, allocations: 24.53 kB / 0.7183 GB, free: 27.95 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.y,fac.u) * 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.0001515/0.7499, allocations: 116.2 kB / 0.7184 GB, free: 27.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.7502, allocations: 52.08 kB / 0.7184 GB, free: 27.79 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.7502, allocations: 4 kB / 0.7184 GB, free: 27.79 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.62e-05/0.7503, allocations: 29.7 kB / 0.7185 GB, free: 27.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.7506, allocations: 14.23 kB / 0.7185 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.7509, allocations: 111.2 kB / 0.7186 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.751, allocations: 0.6842 MB / 0.7193 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.233e-05/0.7511, allocations: 0.75 kB / 0.7193 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.7511, allocations: 12.23 kB / 0.7193 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of SimCode: time 2.21e-07/0.7511, allocations: 0 / 0.7193 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of Templates: time 0.002725/0.7539, allocations: 0.6049 MB / 0.7199 GB, free: 26.57 MB / 0.4948 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)