Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001586/0.001586, allocations: 180 kB / 8.478 MB, free: 1.879 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.147/1.147, allocations: 205.2 MB / 214.1 MB, free: 5.438 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009262/0.0009262, allocations: 82.33 kB / 262.1 MB, free: 5.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1552/0.1562, allocations: 52.97 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06312/0.2193, allocations: 47.57 MB / 362.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2088/0.4281, allocations: 74.56 MB / 437.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.4283, allocations: 59.14 kB / 437.2 MB, free: 10.73 MB / 314.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.007523/0.4359, allocations: 3.194 MB / 440.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.4359, allocations: 11.69 kB / 440.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.436, allocations: 20.84 kB / 440.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.4361, allocations: 187.6 kB / 440.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.4362, allocations: 0 / 440.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.4362, allocations: 4.719 kB / 440.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001295/0.4363, allocations: 147.6 kB / 440.8 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.4366, allocations: 271.4 kB / 441.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.4366, allocations: 0 / 441.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.4366, allocations: 0 / 441.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.4367, allocations: 0.6562 kB / 441.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.4368, allocations: 178 kB / 441.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.437, allocations: 498.1 kB / 441.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.4373, allocations: 473.5 kB / 442.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.4373, allocations: 0.75 kB / 442.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002807/0.4376, allocations: 474.4 kB / 442.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 1.172e-06/0.4376, allocations: 0 / 442.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005733/0.4381, allocations: 0.5479 MB / 443.2 MB, free: 9.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.4382, allocations: 159.7 kB / 443.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.416e-05/0.4383, allocations: 97.53 kB / 443.5 MB, free: 9.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-06/0.4383, allocations: 25.7 kB / 443.5 MB, free: 9.059 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.204e-05/0.4383, allocations: 81.58 kB / 443.6 MB, free: 8.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.4383, allocations: 86.75 kB / 443.6 MB, free: 8.922 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.4384, allocations: 7.844 kB / 443.7 MB, free: 8.918 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.139e-05/0.4384, allocations: 331.7 kB / 444 MB, free: 8.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.76e-05/0.4385, allocations: 83.84 kB / 444.1 MB, free: 8.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.874e-05/0.4386, allocations: 110.6 kB / 444.2 MB, free: 8.578 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.4387, allocations: 108.9 kB / 444.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4387, allocations: 0 / 444.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003115/0.439, allocations: 413.3 kB / 444.7 MB, free: 8.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.439, allocations: 7.656 kB / 444.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.439, allocations: 0 / 444.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.4391, allocations: 3.781 kB / 444.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.4391, allocations: 0.8438 kB / 444.7 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.4391, allocations: 3.938 kB / 444.7 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.485e-05/0.4391, allocations: 15.88 kB / 444.7 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.4391, allocations: 8.641 kB / 444.7 MB, free: 8.504 MB / 314.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.0001793/0.4393, allocations: 258.7 kB / 445 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.4394, allocations: 31.36 kB / 445 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.524e-05/0.4394, allocations: 13.91 kB / 445 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4394, allocations: 0.6562 kB / 445 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4394, allocations: 0 / 445 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.4394, allocations: 0 / 445 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.4396, allocations: 210 kB / 445.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4396, allocations: 0 / 445.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.4396, allocations: 0 / 445.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4396, allocations: 3.781 kB / 445.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.4396, allocations: 23.89 kB / 445.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4396, allocations: 4 kB / 445.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4396, allocations: 8.875 kB / 445.3 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006598/0.4403, allocations: 0.7386 MB / 446 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001155/0.4415, allocations: 1.633 MB / 447.6 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.006e-05/0.4415, allocations: 93.83 kB / 447.7 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.4416, allocations: 80.5 kB / 447.8 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.145e-05/0.4417, allocations: 15.44 kB / 447.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.136e-05/0.4418, allocations: 10.45 kB / 447.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.4418, allocations: 28.44 kB / 447.9 MB, free: 7.426 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.837e-05/0.4418, allocations: 76.27 kB / 447.9 MB, free: 7.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009843/0.4428, allocations: 93.88 kB / 448 MB, free: 7.34 MB / 314.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.0005028/0.4433, allocations: 304.2 kB / 448.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.4437, allocations: 0.5008 MB / 448.8 MB, free: 7.125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.4437, allocations: 0 / 448.8 MB, free: 7.125 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4448, allocations: 2.146 MB / 451 MB, free: 7.062 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.445, allocations: 15.44 kB / 451 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.4454, allocations: 308.2 kB / 451.3 MB, free: 6.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.4455, allocations: 0.7379 MB / 452 MB, free: 6.238 MB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4455, allocations: 0 / 452 MB, free: 6.238 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1)