Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",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/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.164/1.164, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009865/0.0009866, allocations: 84.11 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1709/0.1709, allocations: 45.14 MB / 383.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2001/0.371, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.4592, allocations: 63.25 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2583/0.7176, allocations: 86.14 MB / 0.588 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001581/0.7178, allocations: 60.34 kB / 0.588 GB, free: 0.5195 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.009989/0.7278, allocations: 3.424 MB / 0.5914 GB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.7278, allocations: 12 kB / 0.5914 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.7279, allocations: 11.84 kB / 0.5914 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.7281, allocations: 179 kB / 0.5916 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.7281, allocations: 4 kB / 0.5916 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.7281, allocations: 4 kB / 0.5916 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.135e-05/0.7282, allocations: 15.3 kB / 0.5916 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.7283, allocations: 86.27 kB / 0.5917 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.7283, allocations: 3.906 kB / 0.5917 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.7284, allocations: 3.984 kB / 0.5917 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.7284, allocations: 4 kB / 0.5917 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.7285, allocations: 149.7 kB / 0.5918 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.617e-05/0.7286, allocations: 49.69 kB / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.52e-05/0.7287, allocations: 20.8 kB / 0.5919 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.7287, allocations: 0 / 0.5919 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.7289, allocations: 137.7 kB / 0.592 GB, free: 12.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.7289, allocations: 0 / 0.592 GB, free: 12.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002325/0.7291, allocations: 84.41 kB / 0.5921 GB, free: 12.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.7292, allocations: 59.34 kB / 0.5922 GB, free: 12.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.243e-05/0.7292, allocations: 100.6 kB / 0.5923 GB, free: 12.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.7292, allocations: 29.7 kB / 0.5923 GB, free: 12.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.586e-05/0.7293, allocations: 80.42 kB / 0.5924 GB, free: 12.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.7293, allocations: 34.89 kB / 0.5924 GB, free: 12.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.7293, allocations: 0 / 0.5924 GB, free: 12.47 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/0.7294, allocations: 314.8 kB / 0.5927 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.716e-05/0.7295, allocations: 23.48 kB / 0.5927 GB, free: 12.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.97e-05/0.7295, allocations: 65.75 kB / 0.5928 GB, free: 12.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.796e-05/0.7296, allocations: 30.97 kB / 0.5928 GB, free: 12.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.7296, allocations: 11.94 kB / 0.5928 GB, free: 12.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000205/0.7298, allocations: 115.1 kB / 0.5929 GB, free: 11.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.7298, allocations: 4 kB / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.7299, allocations: 0 / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.7299, allocations: 4 kB / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.209e-05/0.73, allocations: 18.42 kB / 0.593 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.73, allocations: 4 kB / 0.593 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.304e-05/0.73, allocations: 12.06 kB / 0.593 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.7301, allocations: 11.44 kB / 0.593 GB, free: 11.87 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001045/0.7302, allocations: 124.6 kB / 0.5931 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.7302, allocations: 7.906 kB / 0.5931 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.7302, allocations: 8.062 kB / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.7303, allocations: 0 / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.7303, allocations: 0 / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.7303, allocations: 0 / 0.5931 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.7304, allocations: 161.1 kB / 0.5933 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7304, allocations: 0 / 0.5933 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.002e-05/0.7304, allocations: 7.938 kB / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.7305, allocations: 4 kB / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.7305, allocations: 3.984 kB / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7305, allocations: 0 / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7305, allocations: 0 / 0.5933 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001827/0.7307, allocations: 114.9 kB / 0.5934 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002554/0.7309, allocations: 0.4914 MB / 0.5939 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.731, allocations: 85.52 kB / 0.594 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.731, allocations: 7.984 kB / 0.594 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.7312, allocations: 31.41 kB / 0.594 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.045e-05/0.7312, allocations: 0 / 0.594 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.7313, allocations: 12.05 kB / 0.594 GB, free: 10.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-05/0.7313, allocations: 86.22 kB / 0.5941 GB, free: 10.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008872/0.7322, allocations: 58.36 kB / 0.5942 GB, free: 10.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003454/0.7325, allocations: 186.4 kB / 0.5943 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.7327, allocations: 92 kB / 0.5944 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7327, allocations: 0 / 0.5944 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.483e-05/0.7328, allocations: 26.62 kB / 0.5945 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001007/0.7329, allocations: 15.12 kB / 0.5945 GB, free: 10.33 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003081/0.7332, allocations: 110.8 kB / 0.5946 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.7334, allocations: 0.6997 MB / 0.5953 GB, free: 9.477 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7334, allocations: 0 / 0.5953 GB, free: 9.477 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)