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.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7351/0.7351, allocations: 127.4 MB / 134.9 MB, free: 3.504 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.001034/0.001034, allocations: 180.7 kB / 164.6 MB, free: 11.63 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.36/1.36, 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.0007973/0.0007973, allocations: 87.38 kB / 476.7 MB, free: 1.527 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.107e-05, allocations: 5.969 kB / 0.5466 GB, free: 95.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1379, allocations: 76.76 MB / 0.6215 GB, free: 43.12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.2627, allocations: 102.1 MB / 0.7212 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.263, allocations: 75.89 kB / 0.7213 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002644/0.2657, allocations: 0.9418 MB / 0.7222 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2657, allocations: 0 / 0.7222 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.2657, allocations: 4 kB / 0.7222 GB, free: 3.855 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.0003593/0.2661, allocations: 338.5 kB / 0.7226 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2661, allocations: 12.03 kB / 0.7226 GB, free: 3.469 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.2662, allocations: 3.953 kB / 0.7226 GB, free: 3.465 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.2663, allocations: 163.1 kB / 0.7227 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.2664, allocations: 3.938 kB / 0.7227 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.2664, allocations: 0 / 0.7227 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.886e-05/0.2665, allocations: 27.98 kB / 0.7228 GB, free: 3.234 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.2666, allocations: 45.62 kB / 0.7228 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2666, allocations: 0 / 0.7228 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.2667, allocations: 0 / 0.7228 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2667, allocations: 0 / 0.7228 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.2673, allocations: 261.4 kB / 0.723 GB, free: 2.891 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.2675, allocations: 38.56 kB / 0.7231 GB, free: 2.844 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.157e-05/0.2676, allocations: 17 kB / 0.7231 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.2677, allocations: 81.11 kB / 0.7232 GB, free: 2.727 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.2678, allocations: 34.5 kB / 0.7232 GB, free: 2.684 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 8.376e-06/0.2678, allocations: 3.984 kB / 0.7232 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0002109/0.268, allocations: 49.69 kB / 0.7233 GB, free: 2.625 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.268, allocations: 59.36 kB / 0.7233 GB, free: 2.555 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.2681, allocations: 89 kB / 0.7234 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.2681, allocations: 33.69 kB / 0.7234 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.2682, allocations: 84.14 kB / 0.7235 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.2682, allocations: 3.906 kB / 0.7235 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.2682, allocations: 0 / 0.7235 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2683, allocations: 310.8 kB / 0.7238 GB, free: 2.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.92e-05/0.2684, allocations: 8 kB / 0.7238 GB, free: 2.012 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.741e-05/0.2684, allocations: 16 kB / 0.7238 GB, free: 1.996 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.812e-05/0.2684, allocations: 7.984 kB / 0.7238 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2685, allocations: 0 / 0.7238 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001022/0.2686, allocations: 57.53 kB / 0.7239 GB, free: 1.926 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.2686, allocations: 5.875 kB / 0.7239 GB, free: 1.922 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2686, allocations: 7.875 kB / 0.7239 GB, free: 1.914 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2686, allocations: 0 / 0.7239 GB, free: 1.914 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.557e-05/0.2687, allocations: 15.98 kB / 0.7239 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2687, allocations: 0 / 0.7239 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.97e-05/0.2688, allocations: 19.89 kB / 0.724 GB, free: 1.879 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.2688, allocations: 3.984 kB / 0.724 GB, free: 1.875 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 () * 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 9.137e-05/0.2689, allocations: 101 kB / 0.7241 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.269, allocations: 4 kB / 0.7241 GB, free: 1.766 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.2692, allocations: 57.8 kB / 0.7241 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2692, allocations: 0 / 0.7241 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2692, allocations: 7.922 kB / 0.7241 GB, free: 1.691 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2692, allocations: 4 kB / 0.7241 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.2694, allocations: 142.2 kB / 0.7243 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2694, allocations: 0 / 0.7243 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.111e-05/0.2695, allocations: 19.98 kB / 0.7243 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2695, allocations: 0 / 0.7243 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2695, allocations: 0 / 0.7243 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2695, allocations: 0 / 0.7243 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/0.2695, allocations: 4 kB / 0.7243 GB, free: 1.488 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.2697, allocations: 157.5 kB / 0.7244 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/0.2698, allocations: 77.11 kB / 0.7245 GB, free: 1.227 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.2698, allocations: 0 / 0.7245 GB, free: 1.227 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.2699, allocations: 11.98 kB / 0.7245 GB, free: 1.215 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.2699, allocations: 4.469 kB / 0.7245 GB, free: 1.211 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.27, allocations: 0 / 0.7245 GB, free: 1.211 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.325e-05/0.27, allocations: 91.25 kB / 0.7246 GB, free: 1.121 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/0.27, allocations: 0 / 0.7246 GB, free: 1.121 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002407/0.2703, allocations: 15.94 kB / 0.7246 GB, free: 1.105 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 () * 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.000225/0.2705, allocations: 107.2 kB / 0.7247 GB, free: 0.9922 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 9.628e-05/0.2706, allocations: 19.98 kB / 0.7247 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2706, allocations: 0 / 0.7247 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.925e-05/0.2707, allocations: 12 kB / 0.7248 GB, free: 0.9609 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.2709, allocations: 7.953 kB / 0.7248 GB, free: 0.9531 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002753/0.2712, allocations: 64 kB / 0.7248 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.2715, allocations: 0.6768 MB / 0.7255 GB, free: 168 kB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.709e-05/0.2715, allocations: 11.92 kB / 0.7255 GB, free: 156 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.857e-05/0.2716, allocations: 7.438 kB / 0.7255 GB, free: 148 kB / 0.4948 GB Notification: Performance of SimCode: time 2.5e-07/0.2716, allocations: 4 kB / 0.7255 GB, free: 144 kB / 0.4948 GB Notification: Performance of Templates: time 0.002872/0.2744, allocations: 0.5586 MB / 0.7261 GB, free: 15.59 MB / 0.5105 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)