Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.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.7644/0.7644, allocations: 141.8 MB / 149.1 MB, free: 12.25 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.001106/0.001106, allocations: 175.2 kB / 181.9 MB, free: 8.988 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.292/1.292, allocations: 221.4 MB / 436 MB, free: 1.281 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.0009584/0.0009584, allocations: 99.3 kB / 0.507 GB, free: 10.18 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 267.7 kB / 0.5884 GB, free: 7.027 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.524e-06, allocations: 0 / 0.6759 GB, free: 13.39 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4291, allocations: 82.77 MB / 0.7567 GB, free: 138.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.5501, allocations: 108.2 MB / 0.8624 GB, free: 29.75 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.5504, allocations: 76.67 kB / 0.8625 GB, free: 29.68 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.002789/0.5532, allocations: 0.7509 MB / 0.8632 GB, free: 28.95 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.5532, allocations: 1.406 kB / 0.8632 GB, free: 28.95 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002987/0.5535, allocations: 352.7 kB / 0.8636 GB, free: 28.56 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.5535, allocations: 9.281 kB / 0.8636 GB, free: 28.55 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.118e-05/0.5536, allocations: 4.875 kB / 0.8636 GB, free: 28.55 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.901e-05/0.5537, allocations: 163.1 kB / 0.8637 GB, free: 28.35 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.5537, allocations: 3.938 kB / 0.8637 GB, free: 28.34 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.5537, allocations: 8.5 kB / 0.8637 GB, free: 28.34 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.157e-05/0.5538, allocations: 24.59 kB / 0.8638 GB, free: 28.31 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.887e-05/0.5539, allocations: 45.67 kB / 0.8638 GB, free: 28.26 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5539, allocations: 4.609 kB / 0.8638 GB, free: 28.26 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.5539, allocations: 0.875 kB / 0.8638 GB, free: 28.26 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.5539, allocations: 4 kB / 0.8638 GB, free: 28.25 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003196/0.5543, allocations: 250.8 kB / 0.8641 GB, free: 27.97 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.5545, allocations: 43.78 kB / 0.8641 GB, free: 27.92 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.969e-05/0.5545, allocations: 13.42 kB / 0.8641 GB, free: 27.91 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/0.5548, allocations: 406.2 kB / 0.8645 GB, free: 27.42 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.598e-05/0.5548, allocations: 36 kB / 0.8645 GB, free: 27.38 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.5548, allocations: 0 / 0.8645 GB, free: 27.38 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3): time 0.0002057/0.555, allocations: 50.25 kB / 0.8646 GB, free: 27.32 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.303e-05/0.555, allocations: 53.22 kB / 0.8646 GB, free: 27.26 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.117e-05/0.5551, allocations: 97 kB / 0.8647 GB, free: 27.16 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.5551, allocations: 25.7 kB / 0.8648 GB, free: 27.12 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.339e-05/0.5552, allocations: 84.05 kB / 0.8648 GB, free: 27.04 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.5552, allocations: 16.33 kB / 0.8649 GB, free: 27.02 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.5552, allocations: 0.5625 kB / 0.8649 GB, free: 27.02 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 6.657e-05/0.5553, allocations: 319.5 kB / 0.8652 GB, free: 26.7 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.059e-05/0.5553, allocations: 8 kB / 0.8652 GB, free: 26.7 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.574e-05/0.5553, allocations: 8.656 kB / 0.8652 GB, free: 26.69 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.889e-05/0.5554, allocations: 8 kB / 0.8652 GB, free: 26.68 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5554, allocations: 1.188 kB / 0.8652 GB, free: 26.68 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.865e-05/0.5555, allocations: 49.69 kB / 0.8652 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.5555, allocations: 4 kB / 0.8652 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.5555, allocations: 0.5 kB / 0.8652 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.5555, allocations: 4.516 kB / 0.8652 GB, free: 26.62 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.706e-05/0.5556, allocations: 17.12 kB / 0.8653 GB, free: 26.6 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.5556, allocations: 1.062 kB / 0.8653 GB, free: 26.6 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.924e-05/0.5557, allocations: 13.36 kB / 0.8653 GB, free: 26.59 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.5557, allocations: 0 / 0.8653 GB, free: 26.59 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 (falFac.y,falFac.k) * 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 5.487e-05/0.5558, allocations: 101.7 kB / 0.8654 GB, free: 26.48 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.5558, allocations: 12.56 kB / 0.8654 GB, free: 26.47 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.556, allocations: 64.36 kB / 0.8654 GB, free: 26.41 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.556, allocations: 0 / 0.8654 GB, free: 26.41 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.556, allocations: 0 / 0.8654 GB, free: 26.41 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.556, allocations: 1.188 kB / 0.8654 GB, free: 26.41 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.5561, allocations: 146.2 kB / 0.8656 GB, free: 26.23 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.5561, allocations: 0 / 0.8656 GB, free: 26.23 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.768e-05/0.5562, allocations: 18.02 kB / 0.8656 GB, free: 26.21 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5562, allocations: 3.906 kB / 0.8656 GB, free: 26.21 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.5562, allocations: 0 / 0.8656 GB, free: 26.21 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.5562, allocations: 1.531 kB / 0.8656 GB, free: 26.21 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5562, allocations: 0 / 0.8656 GB, free: 26.21 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001168/0.5564, allocations: 152.9 kB / 0.8657 GB, free: 26.04 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.5564, allocations: 85.09 kB / 0.8658 GB, free: 25.94 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.5564, allocations: 4 kB / 0.8658 GB, free: 25.94 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.903e-05/0.5565, allocations: 6.844 kB / 0.8658 GB, free: 25.93 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.5566, allocations: 11.92 kB / 0.8659 GB, free: 25.92 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.5566, allocations: 0 / 0.8659 GB, free: 25.92 MB / 0.5575 GB Notification: Performance of sort global known variables: time 2.206e-05/0.5566, allocations: 83.28 kB / 0.8659 GB, free: 25.84 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002199/0.5568, allocations: 29.14 kB / 0.866 GB, free: 25.81 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 (falFac.y,falFac.k) * 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.0001512/0.557, allocations: 99.25 kB / 0.8661 GB, free: 25.71 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 8.629e-05/0.5571, allocations: 21.3 kB / 0.8661 GB, free: 25.69 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5571, allocations: 0 / 0.8661 GB, free: 25.69 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 3.102e-05/0.5571, allocations: 19.94 kB / 0.8661 GB, free: 25.67 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.5573, allocations: 4.906 kB / 0.8661 GB, free: 25.66 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002406/0.5576, allocations: 69.41 kB / 0.8662 GB, free: 25.57 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.5578, allocations: 0.6961 MB / 0.8668 GB, free: 24.86 MB / 0.5575 GB Notification: Performance of SimCode: time 2.3e-07/0.5578, allocations: 0.5 kB / 0.8668 GB, free: 24.86 MB / 0.5575 GB Notification: Performance of Templates: time 0.002622/0.5604, allocations: 0.6979 MB / 0.8675 GB, free: 24.18 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)