Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.76/0.76, allocations: 141.8 MB / 149.1 MB, free: 13.1 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001147, allocations: 188.5 kB / 181.9 MB, free: 9.797 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.4 MB / 436 MB, free: 2.305 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 91.52 kB / 0.507 GB, free: 11.01 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00193/0.00193, allocations: 275.8 kB / 0.5884 GB, free: 7.852 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.319e-05, allocations: 4 kB / 0.6759 GB, free: 14.21 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4401/0.4402, allocations: 82.78 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.5634, allocations: 107.1 MB / 0.8614 GB, free: 31.75 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.5636, allocations: 80.34 kB / 0.8614 GB, free: 31.68 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.0009509/0.5646, allocations: 215 kB / 0.8616 GB, free: 31.47 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.5646, allocations: 4.719 kB / 0.8617 GB, free: 31.46 MB / 0.5575 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.0001769/0.5648, allocations: 303.1 kB / 0.8619 GB, free: 31.12 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.5648, allocations: 14.47 kB / 0.862 GB, free: 31.11 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.5649, allocations: 0 / 0.862 GB, free: 31.11 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.997e-05/0.5649, allocations: 163.1 kB / 0.8621 GB, free: 30.91 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.565, allocations: 1.094 kB / 0.8621 GB, free: 30.91 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.565, allocations: 7.875 kB / 0.8621 GB, free: 30.91 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.898e-05/0.565, allocations: 7.906 kB / 0.8621 GB, free: 30.9 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.4e-05/0.5651, allocations: 34.36 kB / 0.8622 GB, free: 30.86 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-06/0.5651, allocations: 0.5 kB / 0.8622 GB, free: 30.86 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.5651, allocations: 0 / 0.8622 GB, free: 30.86 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.5651, allocations: 0.5 kB / 0.8622 GB, free: 30.86 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.518e-05/0.5652, allocations: 126.8 kB / 0.8623 GB, free: 30.7 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.994e-05/0.5653, allocations: 28.73 kB / 0.8623 GB, free: 30.66 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.512e-05/0.5653, allocations: 4.859 kB / 0.8623 GB, free: 30.66 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.5654, allocations: 81.17 kB / 0.8624 GB, free: 30.56 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.5655, allocations: 39.3 kB / 0.8624 GB, free: 30.51 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.5655, allocations: 0.5625 kB / 0.8624 GB, free: 30.51 MB / 0.5575 GB Notification: Performance of matching and sorting (n=2): time 0.0001496/0.5656, allocations: 42.11 kB / 0.8625 GB, free: 30.46 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.592e-05/0.5657, allocations: 52.03 kB / 0.8625 GB, free: 30.4 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.355e-05/0.5657, allocations: 85.53 kB / 0.8626 GB, free: 30.31 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 6.172e-06/0.5657, allocations: 27.02 kB / 0.8626 GB, free: 30.28 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 1.269e-05/0.5657, allocations: 80.14 kB / 0.8627 GB, free: 30.2 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.5657, allocations: 0 / 0.8627 GB, free: 30.2 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-06/0.5657, allocations: 0 / 0.8627 GB, free: 30.2 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.5658, allocations: 320 kB / 0.863 GB, free: 29.88 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.5658, allocations: 7.984 kB / 0.863 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.571e-06/0.5658, allocations: 0.7188 kB / 0.863 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.143e-05/0.5659, allocations: 4.531 kB / 0.863 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.5659, allocations: 0.5312 kB / 0.863 GB, free: 29.87 MB / 0.5575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.96e-05/0.5659, allocations: 38.36 kB / 0.8631 GB, free: 29.82 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 9.348e-06/0.5659, allocations: 4 kB / 0.8631 GB, free: 29.82 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.566, allocations: 0.75 kB / 0.8631 GB, free: 29.82 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.566, allocations: 0 / 0.8631 GB, free: 29.82 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.074e-05/0.566, allocations: 8.578 kB / 0.8631 GB, free: 29.81 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.566, allocations: 3.781 kB / 0.8631 GB, free: 29.81 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.5661, allocations: 3.938 kB / 0.8631 GB, free: 29.81 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.5661, allocations: 4.625 kB / 0.8631 GB, free: 29.8 MB / 0.5575 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 4.334e-05/0.5661, allocations: 105.6 kB / 0.8632 GB, free: 29.7 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-06/0.5661, allocations: 0.9375 kB / 0.8632 GB, free: 29.7 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.479e-05/0.5662, allocations: 48.17 kB / 0.8632 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5662, allocations: 0 / 0.8632 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.5663, allocations: 4.672 kB / 0.8632 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5663, allocations: 0 / 0.8632 GB, free: 29.64 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.693e-05/0.5663, allocations: 135.7 kB / 0.8634 GB, free: 29.47 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.5663, allocations: 0 / 0.8634 GB, free: 29.47 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.178e-05/0.5663, allocations: 11.98 kB / 0.8634 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.5663, allocations: 0 / 0.8634 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.5664, allocations: 0 / 0.8634 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.5664, allocations: 1.312 kB / 0.8634 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5664, allocations: 3.938 kB / 0.8634 GB, free: 29.46 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.712e-05/0.5664, allocations: 66.28 kB / 0.8634 GB, free: 29.38 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.5665, allocations: 78.67 kB / 0.8635 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.5665, allocations: 4 kB / 0.8635 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.5665, allocations: 0 / 0.8635 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.5665, allocations: 0 / 0.8635 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.5665, allocations: 1.281 kB / 0.8635 GB, free: 29.28 MB / 0.5575 GB Notification: Performance of sort global known variables: time 1.237e-05/0.5666, allocations: 75.28 kB / 0.8636 GB, free: 29.2 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002039/0.5668, allocations: 16 kB / 0.8636 GB, free: 29.19 MB / 0.5575 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.00013/0.5669, allocations: 108.5 kB / 0.8637 GB, free: 29.07 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 6.347e-05/0.567, allocations: 12.88 kB / 0.8637 GB, free: 29.06 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.567, allocations: 0 / 0.8637 GB, free: 29.06 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 1.129e-05/0.567, allocations: 5.219 kB / 0.8637 GB, free: 29.05 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.198e-05/0.5671, allocations: 0 / 0.8637 GB, free: 29.05 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001465/0.5673, allocations: 52.81 kB / 0.8638 GB, free: 28.98 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.5674, allocations: 0.6841 MB / 0.8645 GB, free: 28.27 MB / 0.5575 GB Notification: Performance of SimCode: time 2.3e-07/0.5674, allocations: 0.5 kB / 0.8645 GB, free: 28.27 MB / 0.5575 GB Notification: Performance of Templates: time 0.001872/0.5692, allocations: 342.5 kB / 0.8648 GB, free: 27.95 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)