Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009456/0.0009456, allocations: 190.2 kB / 8.522 MB, free: 1.738 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 221.4 MB / 230.3 MB, free: 7.691 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009548/0.0009547, allocations: 97.91 kB / 281.2 MB, free: 5.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1576/0.1576, allocations: 44.16 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1837/0.3413, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.4703, allocations: 61.92 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2681/0.7385, allocations: 85.74 MB / 0.5779 GB, free: 10.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.7388, allocations: 65.41 kB / 0.578 GB, free: 10.89 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.01318/0.752, allocations: 5.969 MB / 0.5838 GB, free: 4.898 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.752, allocations: 15.94 kB / 0.5838 GB, free: 4.883 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.7521, allocations: 15.81 kB / 0.5838 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.544e-05/0.7522, allocations: 171 kB / 0.584 GB, free: 4.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.7522, allocations: 3.938 kB / 0.584 GB, free: 4.656 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.7522, allocations: 12 kB / 0.584 GB, free: 4.645 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000109/0.7523, allocations: 100.3 kB / 0.5841 GB, free: 4.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.7524, allocations: 136.2 kB / 0.5842 GB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.7525, allocations: 7.984 kB / 0.5842 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.7525, allocations: 0 / 0.5842 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.7525, allocations: 0 / 0.5842 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.7526, allocations: 162.4 kB / 0.5844 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.7528, allocations: 163 kB / 0.5846 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.7529, allocations: 157.7 kB / 0.5847 GB, free: 3.871 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-06/0.7529, allocations: 0 / 0.5847 GB, free: 3.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.753, allocations: 169.9 kB / 0.5849 GB, free: 3.695 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 1.132e-06/0.7531, allocations: 0 / 0.5849 GB, free: 3.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0005062/0.7536, allocations: 0.5324 MB / 0.5854 GB, free: 3.156 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.7536, allocations: 99.8 kB / 0.5855 GB, free: 3.043 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.709e-05/0.7537, allocations: 116.8 kB / 0.5856 GB, free: 2.922 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.706e-05/0.7538, allocations: 57.67 kB / 0.5856 GB, free: 2.859 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.364e-05/0.7538, allocations: 85.45 kB / 0.5857 GB, free: 2.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.7539, allocations: 122.5 kB / 0.5858 GB, free: 2.648 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.754, allocations: 4.031 kB / 0.5858 GB, free: 2.645 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.7541, allocations: 350.8 kB / 0.5862 GB, free: 2.293 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.7543, allocations: 169.9 kB / 0.5863 GB, free: 2.125 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004284/0.7547, allocations: 0.5038 MB / 0.5868 GB, free: 1.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.7551, allocations: 260.1 kB / 0.5871 GB, free: 1.203 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.7551, allocations: 4 kB / 0.5871 GB, free: 1.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00088/0.756, allocations: 0.6421 MB / 0.5877 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.756, allocations: 4 kB / 0.5877 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.756, allocations: 12 kB / 0.5877 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.7561, allocations: 20.75 kB / 0.5878 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.7564, allocations: 115.7 kB / 0.5879 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.7564, allocations: 31.86 kB / 0.5879 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.7566, allocations: 51.38 kB / 0.5879 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.7567, allocations: 40 kB / 0.588 GB, free: 288 kB / 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.000158/0.7568, allocations: 188.9 kB / 0.5882 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.7569, allocations: 15.72 kB / 0.5882 GB, free: 76 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.7569, allocations: 13.59 kB / 0.5882 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.7569, allocations: 7.875 kB / 0.5882 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7569, allocations: 0 / 0.5882 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.7569, allocations: 0 / 0.5882 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.757, allocations: 150.3 kB / 0.5883 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.7571, allocations: 0 / 0.5883 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-06/0.7571, allocations: 0 / 0.5883 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.7571, allocations: 7.922 kB / 0.5883 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.7571, allocations: 4 kB / 0.5884 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7571, allocations: 0 / 0.5884 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7571, allocations: 0 / 0.5884 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000481/0.7576, allocations: 0.5718 MB / 0.5889 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008863/0.7585, allocations: 1.285 MB / 0.5902 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.7585, allocations: 92.86 kB / 0.5903 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.7586, allocations: 3.906 kB / 0.5903 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.405e-05/0.7586, allocations: 0 / 0.5903 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/0.7586, allocations: 4.062 kB / 0.5903 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.7586, allocations: 7.984 kB / 0.5903 GB, free: 13.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.933e-05/0.7587, allocations: 75.28 kB / 0.5903 GB, free: 13.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001092/0.7598, allocations: 95.94 kB / 0.5904 GB, free: 13.67 MB / 410.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.0004806/0.7603, allocations: 275 kB / 0.5907 GB, free: 13.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000486/0.7608, allocations: 441.7 kB / 0.5911 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7608, allocations: 4.125 kB / 0.5911 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.7609, allocations: 156.4 kB / 0.5913 GB, free: 12.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.005e-05/0.761, allocations: 3.984 kB / 0.5913 GB, free: 12.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.7616, allocations: 0.4919 MB / 0.5918 GB, free: 12.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/0.7619, allocations: 0.82 MB / 0.5926 GB, free: 11.47 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.762, allocations: 0 / 0.5926 GB, free: 11.47 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1)