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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) [: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.7008/0.7008, allocations: 141.8 MB / 149.1 MB, free: 13.41 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.001055/0.001055, allocations: 190.4 kB / 181.9 MB, free: 10.07 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.256/1.256, allocations: 221.3 MB / 436 MB, free: 2.566 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.0009828/0.0009829, allocations: 95.19 kB / 0.507 GB, free: 17.64 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001937/0.001937, allocations: 284.7 kB / 0.5885 GB, free: 4.055 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3526/0.3546, allocations: 89.63 MB / 0.676 GB, free: 136.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.4911, allocations: 82.78 MB / 0.7568 GB, free: 83.6 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.6061, allocations: 108.5 MB / 0.8628 GB, free: 6.945 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.6064, allocations: 68.64 kB / 0.8628 GB, free: 6.879 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.004583/0.611, allocations: 1.386 MB / 0.8642 GB, free: 5.445 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.611, allocations: 8 kB / 0.8642 GB, free: 5.438 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.226e-05/0.6111, allocations: 11.91 kB / 0.8642 GB, free: 5.426 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.6112, allocations: 159.1 kB / 0.8644 GB, free: 5.23 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.6112, allocations: 4 kB / 0.8644 GB, free: 5.227 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.6112, allocations: 3.906 kB / 0.8644 GB, free: 5.223 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.618e-05/0.6113, allocations: 23.94 kB / 0.8644 GB, free: 5.199 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.612e-05/0.6114, allocations: 49.66 kB / 0.8644 GB, free: 5.145 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.6114, allocations: 4 kB / 0.8644 GB, free: 5.141 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.6114, allocations: 4 kB / 0.8645 GB, free: 5.137 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.6115, allocations: 0 / 0.8645 GB, free: 5.137 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003423/0.6118, allocations: 253.4 kB / 0.8647 GB, free: 4.848 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.612, allocations: 42.5 kB / 0.8647 GB, free: 4.797 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.011e-05/0.6121, allocations: 12.92 kB / 0.8647 GB, free: 4.781 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000335/0.6124, allocations: 409.6 kB / 0.8651 GB, free: 4.289 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.6124, allocations: 38.55 kB / 0.8652 GB, free: 4.242 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.6125, allocations: 0 / 0.8652 GB, free: 4.242 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.0001904/0.6127, allocations: 45.61 kB / 0.8652 GB, free: 4.191 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.6127, allocations: 55.39 kB / 0.8653 GB, free: 4.125 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.533e-05/0.6128, allocations: 97 kB / 0.8654 GB, free: 4.023 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.6128, allocations: 29.64 kB / 0.8654 GB, free: 3.988 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/0.6128, allocations: 91.98 kB / 0.8655 GB, free: 3.895 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.6128, allocations: 15.84 kB / 0.8655 GB, free: 3.879 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-06/0.6129, allocations: 0 / 0.8655 GB, free: 3.879 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.878e-05/0.613, allocations: 314.8 kB / 0.8658 GB, free: 3.562 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.233e-05/0.613, allocations: 8 kB / 0.8658 GB, free: 3.555 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.88e-05/0.613, allocations: 8 kB / 0.8658 GB, free: 3.547 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.819e-05/0.6131, allocations: 4 kB / 0.8658 GB, free: 3.543 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.6131, allocations: 0 / 0.8658 GB, free: 3.543 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001064/0.6132, allocations: 53.69 kB / 0.8659 GB, free: 3.484 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.6132, allocations: 4 kB / 0.8659 GB, free: 3.48 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6132, allocations: 0 / 0.8659 GB, free: 3.48 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.6132, allocations: 4 kB / 0.8659 GB, free: 3.477 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.6133, allocations: 19.89 kB / 0.8659 GB, free: 3.457 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.6134, allocations: 3.938 kB / 0.8659 GB, free: 3.453 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.985e-05/0.6134, allocations: 11.98 kB / 0.8659 GB, free: 3.441 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.6134, allocations: 0 / 0.8659 GB, free: 3.441 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 6.384e-05/0.6135, allocations: 105 kB / 0.866 GB, free: 3.332 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.6136, allocations: 11.84 kB / 0.866 GB, free: 3.32 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.6137, allocations: 57.36 kB / 0.8661 GB, free: 3.258 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.6137, allocations: 240 / 0.8661 GB, free: 3.258 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6137, allocations: 0 / 0.8661 GB, free: 3.258 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6137, allocations: 0 / 0.8661 GB, free: 3.258 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.6139, allocations: 150.1 kB / 0.8662 GB, free: 3.074 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6139, allocations: 0 / 0.8662 GB, free: 3.074 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.16e-05/0.614, allocations: 19.98 kB / 0.8662 GB, free: 3.055 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.614, allocations: 3.906 kB / 0.8662 GB, free: 3.051 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.614, allocations: 0 / 0.8662 GB, free: 3.051 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.614, allocations: 0 / 0.8662 GB, free: 3.051 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.614, allocations: 0 / 0.8662 GB, free: 3.051 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001362/0.6141, allocations: 151.4 kB / 0.8664 GB, free: 2.887 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002618/0.6144, allocations: 0.5156 MB / 0.8669 GB, free: 2.352 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.6145, allocations: 81.02 kB / 0.867 GB, free: 2.254 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.6145, allocations: 256 / 0.867 GB, free: 2.254 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.6146, allocations: 8 kB / 0.867 GB, free: 2.246 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.6146, allocations: 19.98 kB / 0.867 GB, free: 2.227 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-06/0.6147, allocations: 0 / 0.867 GB, free: 2.227 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.543e-05/0.6147, allocations: 79.28 kB / 0.8671 GB, free: 2.148 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008258/0.6155, allocations: 31.89 kB / 0.8671 GB, free: 2.117 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.0002058/0.6157, allocations: 127.2 kB / 0.8672 GB, free: 1.984 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 8.276e-05/0.6158, allocations: 20 kB / 0.8672 GB, free: 1.965 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.6158, allocations: 4 kB / 0.8672 GB, free: 1.961 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.298e-05/0.6159, allocations: 16 kB / 0.8673 GB, free: 1.945 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.616, allocations: 3.984 kB / 0.8673 GB, free: 1.941 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.6163, allocations: 63.92 kB / 0.8673 GB, free: 1.855 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002694/0.6166, allocations: 0.6954 MB / 0.868 GB, free: 1.137 MB / 0.5419 GB Notification: Performance of SimCode: time 2.4e-07/0.6166, allocations: 0 / 0.868 GB, free: 1.137 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)