Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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.TestRandomNumbers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers",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.00112/0.00112, allocations: 195.7 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 225.5 MB / 234.4 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008451/0.0008451, allocations: 93.23 kB / 286.3 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.167/0.167, allocations: 45.14 MB / 383.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1941/0.3611, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.4465, allocations: 63.25 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2536/0.7002, allocations: 86.78 MB / 0.5886 GB, free: 15.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001778/0.7004, allocations: 61.47 kB / 0.5887 GB, free: 15.93 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01354/0.7139, allocations: 5.97 MB / 0.5945 GB, free: 10.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.714, allocations: 8 kB / 0.5945 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.714, allocations: 15.81 kB / 0.5945 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.719e-05/0.7141, allocations: 178.8 kB / 0.5947 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.7142, allocations: 0 / 0.5947 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.7142, allocations: 12 kB / 0.5947 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001071/0.7143, allocations: 99.38 kB / 0.5948 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.7144, allocations: 134.5 kB / 0.5949 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.7144, allocations: 0 / 0.5949 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.7145, allocations: 0 / 0.5949 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.7145, allocations: 0 / 0.5949 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001396/0.7146, allocations: 164.8 kB / 0.5951 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.7147, allocations: 166 kB / 0.5952 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.755e-05/0.7148, allocations: 155.5 kB / 0.5954 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.7149, allocations: 0 / 0.5954 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001423/0.715, allocations: 173 kB / 0.5956 GB, free: 9.867 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 9.92e-07/0.715, allocations: 0 / 0.5956 GB, free: 9.867 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0005011/0.7155, allocations: 0.5351 MB / 0.5961 GB, free: 9.395 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.7156, allocations: 101.4 kB / 0.5962 GB, free: 9.289 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.42e-05/0.7157, allocations: 114.6 kB / 0.5963 GB, free: 9.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.7157, allocations: 52.5 kB / 0.5963 GB, free: 9.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.7158, allocations: 85.48 kB / 0.5964 GB, free: 9.035 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.7159, allocations: 131.3 kB / 0.5965 GB, free: 8.934 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.428e-05/0.7159, allocations: 4 kB / 0.5966 GB, free: 8.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.716, allocations: 344.3 kB / 0.5969 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.7163, allocations: 172.9 kB / 0.597 GB, free: 8.465 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.7167, allocations: 0.5129 MB / 0.5975 GB, free: 7.848 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.717, allocations: 254.9 kB / 0.5978 GB, free: 7.641 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.717, allocations: 8 kB / 0.5978 GB, free: 7.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008504/0.7179, allocations: 0.6398 MB / 0.5984 GB, free: 7.066 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.7179, allocations: 4 kB / 0.5984 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.7179, allocations: 12 kB / 0.5984 GB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.718, allocations: 20 kB / 0.5985 GB, free: 7.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.7183, allocations: 118 kB / 0.5986 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.7183, allocations: 23.92 kB / 0.5986 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.7185, allocations: 47.38 kB / 0.5986 GB, free: 6.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.7186, allocations: 39.28 kB / 0.5987 GB, free: 6.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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 0.0001616/0.7188, allocations: 202.4 kB / 0.5989 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.7188, allocations: 19.31 kB / 0.5989 GB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.039e-05/0.7188, allocations: 5.594 kB / 0.5989 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.7188, allocations: 0 / 0.5989 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7188, allocations: 0 / 0.5989 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.7188, allocations: 3.984 kB / 0.5989 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.7189, allocations: 150.3 kB / 0.599 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7189, allocations: 3.984 kB / 0.599 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.719, allocations: 0 / 0.599 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.719, allocations: 0 / 0.599 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.719, allocations: 4 kB / 0.599 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.719, allocations: 0 / 0.599 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.719, allocations: 4 kB / 0.599 GB, free: 6.402 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004444/0.7194, allocations: 0.5712 MB / 0.5996 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008308/0.7203, allocations: 1.28 MB / 0.6009 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.7203, allocations: 99.55 kB / 0.601 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.7203, allocations: 64 / 0.601 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.369e-05/0.7204, allocations: 4 kB / 0.601 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.7204, allocations: 7.984 kB / 0.601 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.7204, allocations: 0 / 0.601 GB, free: 4.652 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.889e-05/0.7204, allocations: 75.28 kB / 0.601 GB, free: 4.578 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001032/0.7215, allocations: 102.8 kB / 0.6011 GB, free: 4.484 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004918/0.722, allocations: 282.5 kB / 0.6014 GB, free: 4.234 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004761/0.7225, allocations: 437.3 kB / 0.6018 GB, free: 3.891 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7225, allocations: 4 kB / 0.6018 GB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.7226, allocations: 162.6 kB / 0.602 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.612e-05/0.7227, allocations: 0 / 0.602 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005496/0.7232, allocations: 0.4904 MB / 0.6025 GB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.7236, allocations: 0.8243 MB / 0.6033 GB, free: 2.477 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.7236, allocations: 7.938 kB / 0.6033 GB, free: 2.469 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1)