Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.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.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") translateModel(BuildingSystems.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") [: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.7992/0.7992, allocations: 141.8 MB / 149.1 MB, free: 10.05 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.001035/0.001035, allocations: 186.1 kB / 181.9 MB, free: 6.941 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.386/1.386, allocations: 221.4 MB / 436 MB, free: 14.93 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009854/0.0009854, allocations: 100.1 kB / 0.507 GB, free: 8.145 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001819/0.001819, allocations: 281.9 kB / 0.5884 GB, free: 4.953 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.205e-05/1.215e-05, allocations: 3.562 kB / 0.6759 GB, free: 166.6 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1684, allocations: 82.77 MB / 0.7567 GB, free: 113.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.2916, allocations: 108.5 MB / 0.8627 GB, free: 5.25 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.2919, allocations: 75.94 kB / 0.8628 GB, free: 5.176 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.003686/0.2956, allocations: 1.033 MB / 0.8638 GB, free: 4.141 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.2956, allocations: 0 / 0.8638 GB, free: 4.141 MB / 0.5419 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.00032/0.2959, allocations: 358.3 kB / 0.8641 GB, free: 3.746 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.296, allocations: 9.031 kB / 0.8641 GB, free: 3.738 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.296, allocations: 7.906 kB / 0.8641 GB, free: 3.73 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.176e-05/0.2961, allocations: 159.1 kB / 0.8643 GB, free: 3.535 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.2961, allocations: 11.89 kB / 0.8643 GB, free: 3.523 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.2961, allocations: 0 / 0.8643 GB, free: 3.523 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.168e-05/0.2962, allocations: 27.92 kB / 0.8643 GB, free: 3.496 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.093e-05/0.2963, allocations: 50.69 kB / 0.8644 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2963, allocations: 0 / 0.8644 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.2964, allocations: 0 / 0.8644 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2964, allocations: 4 kB / 0.8644 GB, free: 3.438 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.2967, allocations: 245.4 kB / 0.8646 GB, free: 3.16 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.2969, allocations: 46.5 kB / 0.8646 GB, free: 3.105 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.106e-05/0.297, allocations: 21 kB / 0.8647 GB, free: 3.082 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002848/0.2973, allocations: 409.5 kB / 0.8651 GB, free: 2.59 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.2973, allocations: 32.31 kB / 0.8651 GB, free: 2.551 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2973, allocations: 3.938 kB / 0.8651 GB, free: 2.547 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.000185/0.2975, allocations: 49.59 kB / 0.8651 GB, free: 2.492 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.238e-05/0.2975, allocations: 55.41 kB / 0.8652 GB, free: 2.426 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.871e-05/0.2976, allocations: 93 kB / 0.8653 GB, free: 2.328 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 7.825e-06/0.2976, allocations: 25.7 kB / 0.8653 GB, free: 2.297 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.777e-05/0.2976, allocations: 96.03 kB / 0.8654 GB, free: 2.199 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.2976, allocations: 7.906 kB / 0.8654 GB, free: 2.191 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-06/0.2976, allocations: 0 / 0.8654 GB, free: 2.191 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 5.09e-05/0.2977, allocations: 310.8 kB / 0.8657 GB, free: 1.879 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.2977, allocations: 11.94 kB / 0.8657 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.537e-05/0.2977, allocations: 8 kB / 0.8657 GB, free: 1.859 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.67e-05/0.2978, allocations: 7.984 kB / 0.8657 GB, free: 1.852 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2978, allocations: 0 / 0.8657 GB, free: 1.852 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.507e-05/0.2979, allocations: 45.7 kB / 0.8658 GB, free: 1.801 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.2979, allocations: 15.92 kB / 0.8658 GB, free: 1.785 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2979, allocations: 3.906 kB / 0.8658 GB, free: 1.781 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2979, allocations: 0 / 0.8658 GB, free: 1.781 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.533e-05/0.298, allocations: 19.98 kB / 0.8658 GB, free: 1.762 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.298, allocations: 0 / 0.8658 GB, free: 1.762 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.345e-05/0.2981, allocations: 12 kB / 0.8658 GB, free: 1.75 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.2981, allocations: 256 / 0.8658 GB, free: 1.75 MB / 0.5419 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 (bin.y,bin.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 4.523e-05/0.2982, allocations: 101 kB / 0.8659 GB, free: 1.645 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.2982, allocations: 7.906 kB / 0.8659 GB, free: 1.637 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.2983, allocations: 66.25 kB / 0.866 GB, free: 1.566 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2984, allocations: 0 / 0.866 GB, free: 1.566 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2984, allocations: 4 kB / 0.866 GB, free: 1.562 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2984, allocations: 0 / 0.866 GB, free: 1.562 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.2985, allocations: 150.1 kB / 0.8661 GB, free: 1.379 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2985, allocations: 0 / 0.8661 GB, free: 1.379 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.265e-05/0.2986, allocations: 16.22 kB / 0.8661 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2986, allocations: 0 / 0.8661 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.2986, allocations: 0 / 0.8661 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2986, allocations: 0 / 0.8661 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.2986, allocations: 0 / 0.8661 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001215/0.2988, allocations: 159.4 kB / 0.8663 GB, free: 1.191 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.2988, allocations: 85.03 kB / 0.8664 GB, free: 1.09 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.2988, allocations: 4 kB / 0.8664 GB, free: 1.086 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.486e-05/0.2989, allocations: 4 kB / 0.8664 GB, free: 1.082 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.299, allocations: 7.984 kB / 0.8664 GB, free: 1.074 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.299, allocations: 0 / 0.8664 GB, free: 1.074 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.306e-05/0.299, allocations: 91.19 kB / 0.8665 GB, free: 0.9844 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002388/0.2993, allocations: 23.98 kB / 0.8665 GB, free: 0.9609 MB / 0.5419 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 (bin.y,bin.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.0001962/0.2995, allocations: 130 kB / 0.8666 GB, free: 0.8281 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 9.124e-05/0.2996, allocations: 16 kB / 0.8666 GB, free: 0.8125 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2996, allocations: 4 kB / 0.8666 GB, free: 0.8086 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.301e-05/0.2996, allocations: 15.94 kB / 0.8667 GB, free: 0.793 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.2998, allocations: 3.984 kB / 0.8667 GB, free: 0.7891 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.3001, allocations: 71.78 kB / 0.8667 GB, free: 0.6953 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.3003, allocations: 0.6915 MB / 0.8674 GB, free: 15.98 MB / 0.5575 GB Notification: Performance of SimCode: time 2.6e-07/0.3003, allocations: 0 / 0.8674 GB, free: 15.98 MB / 0.5575 GB Notification: Performance of Templates: time 0.004017/0.3043, allocations: 0.9093 MB / 0.8683 GB, free: 15.08 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)