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.8236/0.8236, allocations: 128.7 MB / 143.7 MB, free: 2.301 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.001109/0.001109, allocations: 180.4 kB / 173.8 MB, free: 6.117 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.807/1.807, allocations: 205.4 MB / 409 MB, free: 10.5 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.0009948/0.0009949, allocations: 88.42 kB / 486.6 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 15.39 kB / 0.5604 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1567, allocations: 76.76 MB / 0.6353 GB, free: 30.54 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.2941, allocations: 101.9 MB / 0.7349 GB, free: 8.484 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.2944, allocations: 79.94 kB / 0.7349 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.001257/0.2957, allocations: 0.5357 MB / 0.7355 GB, free: 7.867 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.744e-06/0.2957, allocations: 0 / 0.7355 GB, free: 7.867 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.2957, allocations: 0 / 0.7355 GB, free: 7.867 MB / 0.5105 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.0002421/0.296, allocations: 311.7 kB / 0.7357 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.296, allocations: 8.031 kB / 0.7358 GB, free: 7.508 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.2961, allocations: 3.953 kB / 0.7358 GB, free: 7.504 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.375e-05/0.2962, allocations: 171 kB / 0.7359 GB, free: 7.297 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.2962, allocations: 0 / 0.7359 GB, free: 7.297 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-06/0.2962, allocations: 4 kB / 0.7359 GB, free: 7.293 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.563e-05/0.2963, allocations: 37.7 kB / 0.736 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2963, allocations: 0 / 0.736 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.2963, allocations: 0 / 0.736 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2963, allocations: 3.938 kB / 0.736 GB, free: 7.246 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.435e-05/0.2964, allocations: 7.984 kB / 0.736 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.2965, allocations: 149.6 kB / 0.7361 GB, free: 7.043 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.558e-05/0.2966, allocations: 18.61 kB / 0.7361 GB, free: 7.016 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001541/0.2968, allocations: 89.16 kB / 0.7362 GB, free: 6.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.2968, allocations: 30.56 kB / 0.7362 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.2968, allocations: 0 / 0.7362 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001538/0.297, allocations: 49.62 kB / 0.7363 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.297, allocations: 51.41 kB / 0.7363 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.937e-05/0.2971, allocations: 85 kB / 0.7364 GB, free: 6.664 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2971, allocations: 25.7 kB / 0.7365 GB, free: 6.633 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.229e-05/0.2971, allocations: 80.14 kB / 0.7365 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.2971, allocations: 8.031 kB / 0.7365 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.2972, allocations: 4 kB / 0.7365 GB, free: 6.539 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2973, allocations: 314.8 kB / 0.7368 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-06/0.2973, allocations: 4 kB / 0.7368 GB, free: 6.219 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.39e-06/0.2973, allocations: 0 / 0.7368 GB, free: 6.219 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.024e-05/0.2973, allocations: 4 kB / 0.7368 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2974, allocations: 3.938 kB / 0.7369 GB, free: 6.211 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.072e-05/0.2974, allocations: 45.62 kB / 0.7369 GB, free: 6.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.2974, allocations: 8.094 kB / 0.7369 GB, free: 6.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2975, allocations: 0 / 0.7369 GB, free: 6.152 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2975, allocations: 4 kB / 0.7369 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.419e-05/0.2975, allocations: 3.938 kB / 0.7369 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2975, allocations: 0 / 0.7369 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.584e-05/0.2976, allocations: 4 kB / 0.7369 GB, free: 6.141 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.2976, allocations: 0 / 0.7369 GB, free: 6.141 MB / 0.5105 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 8.922e-05/0.2977, allocations: 117.7 kB / 0.737 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.2977, allocations: 3.984 kB / 0.737 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.62e-05/0.2978, allocations: 52.75 kB / 0.7371 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2978, allocations: 0 / 0.7371 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2978, allocations: 0 / 0.7371 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2978, allocations: 0 / 0.7371 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.2979, allocations: 153.6 kB / 0.7372 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2979, allocations: 0 / 0.7372 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.269e-05/0.298, allocations: 4 kB / 0.7372 GB, free: 5.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.298, allocations: 3.984 kB / 0.7372 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.298, allocations: 4 kB / 0.7372 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.298, allocations: 0 / 0.7372 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.298, allocations: 4.031 kB / 0.7372 GB, free: 5.738 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.039e-05/0.2981, allocations: 61.14 kB / 0.7373 GB, free: 5.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.485e-05/0.2981, allocations: 85.05 kB / 0.7374 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.2981, allocations: 0 / 0.7374 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.084e-05/0.2981, allocations: 0 / 0.7374 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.295e-05/0.2982, allocations: 0 / 0.7374 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2982, allocations: 4 kB / 0.7374 GB, free: 5.555 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.802e-05/0.2982, allocations: 83.25 kB / 0.7375 GB, free: 5.473 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2982, allocations: 0 / 0.7375 GB, free: 5.473 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002002/0.2984, allocations: 4 kB / 0.7375 GB, free: 5.469 MB / 0.5105 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.0001802/0.2986, allocations: 123 kB / 0.7376 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.557e-05/0.2987, allocations: 4 kB / 0.7376 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2987, allocations: 0 / 0.7376 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.2987, allocations: 4 kB / 0.7376 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.335e-05/0.2988, allocations: 8.125 kB / 0.7376 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001814/0.299, allocations: 80.69 kB / 0.7377 GB, free: 5.215 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.2992, allocations: 0.677 MB / 0.7383 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.2993, allocations: 7.938 kB / 0.7383 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.476e-05/0.2993, allocations: 7.438 kB / 0.7384 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of SimCode: time 3.61e-07/0.2993, allocations: 0 / 0.7384 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of Templates: time 0.001937/0.3012, allocations: 309.7 kB / 0.7386 GB, free: 4.195 MB / 0.5105 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)