Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",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.001133/0.001133, 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.212/1.212, 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.0009115/0.0009115, allocations: 91.38 kB / 286.3 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09115/0.09209, allocations: 56.9 MB / 343.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0806/0.1727, allocations: 51.48 MB / 394.7 MB, free: 5.031 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2094/0.3822, allocations: 76.31 MB / 471 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001557/0.3824, allocations: 60.64 kB / 471.1 MB, free: 15.16 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.007591/0.39, allocations: 3.223 MB / 474.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.8e-05/0.39, allocations: 8 kB / 474.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.3901, allocations: 19.14 kB / 474.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.879e-05/0.3902, allocations: 185.8 kB / 474.5 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3902, allocations: 0 / 474.5 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3903, allocations: 7.938 kB / 474.5 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000122/0.3904, allocations: 141.4 kB / 474.7 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.3906, allocations: 265.8 kB / 474.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.3906, allocations: 4 kB / 474.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3907, allocations: 4 kB / 474.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.3907, allocations: 0 / 474.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001143/0.3908, allocations: 175.1 kB / 475.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.391, allocations: 496 kB / 475.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.3912, allocations: 467 kB / 476 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.3912, allocations: 4 kB / 476 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.3915, allocations: 465.7 kB / 476.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.002e-06/0.3915, allocations: 0 / 476.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005462/0.3921, allocations: 0.5516 MB / 477 MB, free: 11.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3921, allocations: 159 kB / 477.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.063e-05/0.3922, allocations: 104.8 kB / 477.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.3922, allocations: 25.7 kB / 477.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-06/0.3922, allocations: 84.16 kB / 477.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.3922, allocations: 85.42 kB / 477.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.3923, allocations: 0.75 kB / 477.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.3923, allocations: 336.9 kB / 477.8 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.397e-05/0.3924, allocations: 74.5 kB / 477.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.042e-05/0.3924, allocations: 109.6 kB / 478 MB, free: 10.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.3926, allocations: 115.2 kB / 478.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.3926, allocations: 0 / 478.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002908/0.3929, allocations: 409.5 kB / 478.5 MB, free: 10 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.3929, allocations: 4 kB / 478.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.3929, allocations: 3.188 kB / 478.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.3929, allocations: 4 kB / 478.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.3929, allocations: 0 / 478.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.3929, allocations: 5.422 kB / 478.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.418e-05/0.393, allocations: 15.75 kB / 478.5 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.393, allocations: 4 kB / 478.6 MB, free: 9.973 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.000149/0.3931, allocations: 265 kB / 478.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.3932, allocations: 31.62 kB / 478.8 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.297e-05/0.3932, allocations: 16.58 kB / 478.9 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3932, allocations: 0 / 478.9 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3932, allocations: 3.984 kB / 478.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3932, allocations: 0 / 478.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.3933, allocations: 216.1 kB / 479.1 MB, free: 9.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3934, allocations: 0 / 479.1 MB, free: 9.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.3934, allocations: 0 / 479.1 MB, free: 9.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3934, allocations: 4 kB / 479.1 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.3934, allocations: 15.23 kB / 479.1 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3934, allocations: 0 / 479.1 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3934, allocations: 0 / 479.1 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00065/0.3941, allocations: 0.7469 MB / 479.8 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001133/0.3952, allocations: 1.631 MB / 481.5 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.618e-05/0.3953, allocations: 96.89 kB / 481.6 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3954, allocations: 79.72 kB / 481.6 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.3955, allocations: 8 kB / 481.6 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.3955, allocations: 10.72 kB / 481.7 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.661e-05/0.3956, allocations: 29.89 kB / 481.7 MB, free: 7.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.703e-05/0.3956, allocations: 79.28 kB / 481.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000921/0.3965, allocations: 93.97 kB / 481.9 MB, free: 7.254 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0004552/0.397, allocations: 296.4 kB / 482.1 MB, free: 7.023 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.3973, allocations: 0.5027 MB / 482.7 MB, free: 6.734 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3973, allocations: 0 / 482.7 MB, free: 6.734 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.3984, allocations: 2.149 MB / 484.8 MB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.3985, allocations: 15.41 kB / 484.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.3989, allocations: 309.2 kB / 485.1 MB, free: 5.609 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3991, allocations: 0.7374 MB / 485.9 MB, free: 4.855 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3991, allocations: 0 / 485.9 MB, free: 4.855 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1)