Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 189.3 kB / 7.805 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009079/0.000908, allocations: 93.56 kB / 261.4 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1934/0.1934, allocations: 43.49 MB / 352.8 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.222/0.4155, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.7613, allocations: 58.83 MB / 476.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.8902, allocations: 84.54 MB / 0.548 GB, free: 14.47 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.8905, allocations: 67.47 kB / 0.5481 GB, free: 14.41 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.01266/0.9031, allocations: 5.162 MB / 0.5531 GB, free: 9.207 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.9032, allocations: 12 kB / 0.5532 GB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.9033, allocations: 19.8 kB / 0.5532 GB, free: 9.176 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.9034, allocations: 171 kB / 0.5533 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.9034, allocations: 3.984 kB / 0.5533 GB, free: 8.965 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.9035, allocations: 12 kB / 0.5534 GB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001559/0.9036, allocations: 100.3 kB / 0.5535 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.9038, allocations: 128.3 kB / 0.5536 GB, free: 8.723 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.9038, allocations: 0 / 0.5536 GB, free: 8.723 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.9038, allocations: 3.938 kB / 0.5536 GB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.9038, allocations: 3.938 kB / 0.5536 GB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.904, allocations: 170.4 kB / 0.5537 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.9042, allocations: 159 kB / 0.5539 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.9044, allocations: 153.7 kB / 0.554 GB, free: 8.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.9044, allocations: 0 / 0.554 GB, free: 8.195 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.9046, allocations: 161.9 kB / 0.5542 GB, free: 8.027 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 1.563e-06/0.9046, allocations: 8 kB / 0.5542 GB, free: 8.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0006249/0.9052, allocations: 0.5325 MB / 0.5547 GB, free: 7.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.9053, allocations: 107.8 kB / 0.5548 GB, free: 7.359 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.242e-05/0.9054, allocations: 116.8 kB / 0.5549 GB, free: 7.238 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/0.9055, allocations: 53.67 kB / 0.555 GB, free: 7.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.9055, allocations: 89.45 kB / 0.5551 GB, free: 7.086 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.9056, allocations: 122.5 kB / 0.5552 GB, free: 6.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.758e-05/0.9056, allocations: 0 / 0.5552 GB, free: 6.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.9058, allocations: 350.8 kB / 0.5555 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.9061, allocations: 170 kB / 0.5557 GB, free: 6.445 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.9067, allocations: 0.5039 MB / 0.5562 GB, free: 5.773 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004307/0.9071, allocations: 255.6 kB / 0.5564 GB, free: 5.523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.9072, allocations: 4 kB / 0.5564 GB, free: 5.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001133/0.9083, allocations: 0.6382 MB / 0.557 GB, free: 4.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.9083, allocations: 8.25 kB / 0.5571 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.9084, allocations: 12 kB / 0.5571 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.732e-05/0.9084, allocations: 20 kB / 0.5571 GB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.9088, allocations: 123.6 kB / 0.5572 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-05/0.9089, allocations: 23.94 kB / 0.5572 GB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.9091, allocations: 47.38 kB / 0.5573 GB, free: 4.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-05/0.9092, allocations: 40 kB / 0.5573 GB, free: 4.605 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.0002384/0.9095, allocations: 205.3 kB / 0.5575 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.9095, allocations: 7.812 kB / 0.5575 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.9095, allocations: 9.594 kB / 0.5575 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.9095, allocations: 0 / 0.5575 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.9096, allocations: 0 / 0.5575 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.9096, allocations: 4 kB / 0.5575 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.9097, allocations: 154.3 kB / 0.5577 GB, free: 4.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.9097, allocations: 4 kB / 0.5577 GB, free: 4.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-06/0.9097, allocations: 0 / 0.5577 GB, free: 4.188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.9098, allocations: 0 / 0.5577 GB, free: 4.188 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.9098, allocations: 4 kB / 0.5577 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9098, allocations: 0 / 0.5577 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.319e-06/0.9098, allocations: 3.938 kB / 0.5577 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006494/0.9104, allocations: 0.5757 MB / 0.5582 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001153/0.9116, allocations: 1.274 MB / 0.5595 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.9117, allocations: 112.7 kB / 0.5596 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.9117, allocations: 0 / 0.5596 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.414e-05/0.9117, allocations: 0 / 0.5596 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.9118, allocations: 0 / 0.5596 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.9118, allocations: 4 kB / 0.5596 GB, free: 2.152 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.729e-05/0.9118, allocations: 79.34 kB / 0.5597 GB, free: 2.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001191/0.913, allocations: 99.86 kB / 0.5598 GB, free: 1.977 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.0007031/0.9137, allocations: 253.3 kB / 0.56 GB, free: 1.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.9146, allocations: 444.7 kB / 0.5604 GB, free: 1.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.9146, allocations: 0 / 0.5604 GB, free: 1.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.9148, allocations: 165.5 kB / 0.5606 GB, free: 1.137 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.9149, allocations: 4 kB / 0.5606 GB, free: 1.133 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007929/0.9157, allocations: 0.4919 MB / 0.5611 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005723/0.9163, allocations: 0.82 MB / 0.5619 GB, free: 15.77 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.9163, allocations: 0 / 0.5619 GB, free: 15.77 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1)