Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") [: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.8107/0.8107, allocations: 141.8 MB / 149.1 MB, free: 4.207 MB / 122.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.001146, allocations: 178.6 kB / 181.9 MB, free: 15.9 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.367/1.367, allocations: 221.3 MB / 436 MB, free: 9.051 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.001159/0.001159, allocations: 97.23 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001905/0.001905, allocations: 274.6 kB / 0.5884 GB, free: 12.06 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.227e-06/9.247e-06, allocations: 4 kB / 0.6759 GB, free: 2.395 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4432/0.4432, allocations: 82.76 MB / 0.7567 GB, free: 112.6 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.5658, allocations: 107.1 MB / 0.8614 GB, free: 5.32 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.566, allocations: 84.34 kB / 0.8615 GB, free: 5.242 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.001467/0.5675, allocations: 0.5186 MB / 0.862 GB, free: 4.734 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.5675, allocations: 0 / 0.862 GB, free: 4.734 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.00016/0.5676, allocations: 323.3 kB / 0.8623 GB, free: 4.375 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.5677, allocations: 12.03 kB / 0.8623 GB, free: 4.363 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.5677, allocations: 9 kB / 0.8623 GB, free: 4.355 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.734e-05/0.5678, allocations: 163 kB / 0.8624 GB, free: 4.156 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.5678, allocations: 4 kB / 0.8624 GB, free: 4.152 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.5678, allocations: 4.531 kB / 0.8625 GB, free: 4.148 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001295/0.5679, allocations: 101.2 kB / 0.8625 GB, free: 4.051 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.025e-05/0.568, allocations: 54.33 kB / 0.8626 GB, free: 3.992 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-06/0.568, allocations: 0 / 0.8626 GB, free: 3.992 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.568, allocations: 3.906 kB / 0.8626 GB, free: 3.988 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.568, allocations: 4.562 kB / 0.8626 GB, free: 3.984 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001008/0.5682, allocations: 142.7 kB / 0.8627 GB, free: 3.809 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 7.351e-05/0.5682, allocations: 73.19 kB / 0.8628 GB, free: 3.73 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.509e-05/0.5683, allocations: 29.67 kB / 0.8628 GB, free: 3.699 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001903/0.5685, allocations: 405.5 kB / 0.8632 GB, free: 3.211 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.5685, allocations: 35.7 kB / 0.8633 GB, free: 3.168 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.5685, allocations: 0.6562 kB / 0.8633 GB, free: 3.168 MB / 0.5263 GB Notification: Performance of matching and sorting (n=11): time 0.0002935/0.5688, allocations: 95.02 kB / 0.8634 GB, free: 3.07 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.6e-05/0.5688, allocations: 52 kB / 0.8634 GB, free: 3.008 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.895e-05/0.5689, allocations: 93.62 kB / 0.8635 GB, free: 2.91 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.5689, allocations: 25.7 kB / 0.8635 GB, free: 2.879 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.163e-05/0.5689, allocations: 81.33 kB / 0.8636 GB, free: 2.797 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.5689, allocations: 19.75 kB / 0.8636 GB, free: 2.777 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-06/0.5689, allocations: 4.969 kB / 0.8636 GB, free: 2.773 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 4.665e-05/0.569, allocations: 318.8 kB / 0.8639 GB, free: 2.453 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.438e-05/0.569, allocations: 16.56 kB / 0.8639 GB, free: 2.438 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.254e-05/0.569, allocations: 20.55 kB / 0.864 GB, free: 2.418 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.5692, allocations: 34.83 kB / 0.864 GB, free: 2.387 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.5692, allocations: 0 / 0.864 GB, free: 2.387 MB / 0.5263 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002189/0.5694, allocations: 90.25 kB / 0.8641 GB, free: 2.293 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 9.357e-06/0.5694, allocations: 4 kB / 0.8641 GB, free: 2.289 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.5695, allocations: 0.75 kB / 0.8641 GB, free: 2.289 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.5695, allocations: 4 kB / 0.8641 GB, free: 2.285 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.539e-05/0.5696, allocations: 16.7 kB / 0.8641 GB, free: 2.27 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.5696, allocations: 4.75 kB / 0.8641 GB, free: 2.266 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.5696, allocations: 8.5 kB / 0.8641 GB, free: 2.258 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.5696, allocations: 5.812 kB / 0.8641 GB, free: 2.254 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.293e-05/0.5697, allocations: 109 kB / 0.8642 GB, free: 2.141 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.5697, allocations: 7.891 kB / 0.8642 GB, free: 2.133 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.57, allocations: 122.1 kB / 0.8643 GB, free: 2.012 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.57, allocations: 0 / 0.8643 GB, free: 2.012 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.57, allocations: 5 kB / 0.8644 GB, free: 2.008 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.57, allocations: 3.375 kB / 0.8644 GB, free: 2.008 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.779e-05/0.5701, allocations: 146.2 kB / 0.8645 GB, free: 1.828 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5701, allocations: 1.094 kB / 0.8645 GB, free: 1.828 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.5702, allocations: 23.94 kB / 0.8645 GB, free: 1.805 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5702, allocations: 4.656 kB / 0.8645 GB, free: 1.801 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.5702, allocations: 3.984 kB / 0.8645 GB, free: 1.797 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5702, allocations: 4.656 kB / 0.8645 GB, free: 1.793 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5702, allocations: 0 / 0.8645 GB, free: 1.793 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002297/0.5705, allocations: 119.7 kB / 0.8646 GB, free: 1.66 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.5705, allocations: 85.09 kB / 0.8647 GB, free: 1.559 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.5705, allocations: 0.7188 kB / 0.8647 GB, free: 1.559 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.585e-05/0.5705, allocations: 5.656 kB / 0.8647 GB, free: 1.555 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/0.5706, allocations: 11.89 kB / 0.8647 GB, free: 1.543 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.5706, allocations: 4 kB / 0.8647 GB, free: 1.539 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.368e-05/0.5706, allocations: 75.28 kB / 0.8648 GB, free: 1.465 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.0002073/0.5708, allocations: 16.66 kB / 0.8648 GB, free: 1.449 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.000163/0.571, allocations: 127.1 kB / 0.865 GB, free: 1.32 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 9.518e-05/0.5711, allocations: 52.55 kB / 0.865 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.5711, allocations: 0.7188 kB / 0.865 GB, free: 1.27 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 3.517e-05/0.5711, allocations: 35.92 kB / 0.865 GB, free: 1.234 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.682e-05/0.5712, allocations: 1.312 kB / 0.865 GB, free: 1.234 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001925/0.5714, allocations: 93.02 kB / 0.8651 GB, free: 1.121 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.5716, allocations: 0.7042 MB / 0.8658 GB, free: 400 kB / 0.5263 GB Notification: Performance of SimCode: time 2.51e-07/0.5716, allocations: 0 / 0.8658 GB, free: 400 kB / 0.5263 GB Notification: Performance of Templates: time 0.002584/0.5742, allocations: 0.8977 MB / 0.8667 GB, free: 15.54 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)