Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 183.1 kB / 8.13 MB, free: 2.219 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.219/1.219, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009258/0.0009258, allocations: 89.55 kB / 280.8 MB, free: 1.324 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09103/0.09198, allocations: 55.82 MB / 336.6 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2738, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07837/0.3522, allocations: 75.51 MB / 462.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.3524, allocations: 66.53 kB / 462.6 MB, free: 11.23 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.008695/0.3611, allocations: 3.212 MB / 465.8 MB, free: 7.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.3612, allocations: 12.69 kB / 465.8 MB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.3613, allocations: 19.81 kB / 465.8 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.3615, allocations: 186.8 kB / 466 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.3615, allocations: 0 / 466 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.3615, allocations: 11.98 kB / 466 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001583/0.3617, allocations: 137.4 kB / 466.1 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.362, allocations: 278.7 kB / 466.4 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.362, allocations: 4 kB / 466.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.362, allocations: 0 / 466.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.362, allocations: 0 / 466.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.3622, allocations: 174.8 kB / 466.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.3626, allocations: 491.6 kB / 467.1 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.3629, allocations: 469.6 kB / 467.5 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.3629, allocations: 6.438 kB / 467.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.3633, allocations: 468.9 kB / 468 MB, free: 5.621 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.062e-06/0.3633, allocations: 4 kB / 468 MB, free: 5.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006877/0.364, allocations: 0.5481 MB / 468.5 MB, free: 5.062 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.096e-05/0.3641, allocations: 160.5 kB / 468.7 MB, free: 4.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.933e-05/0.3642, allocations: 96.98 kB / 468.8 MB, free: 4.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.3642, allocations: 25.7 kB / 468.8 MB, free: 4.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.806e-05/0.3642, allocations: 80.92 kB / 468.9 MB, free: 4.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.977e-05/0.3643, allocations: 94.77 kB / 469 MB, free: 4.566 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.3643, allocations: 4 kB / 469 MB, free: 4.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3644, allocations: 326.7 kB / 469.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.835e-05/0.3645, allocations: 84.34 kB / 469.4 MB, free: 4.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.567e-05/0.3646, allocations: 102.2 kB / 469.5 MB, free: 4.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.3648, allocations: 112.1 kB / 469.6 MB, free: 3.938 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3648, allocations: 4 kB / 469.6 MB, free: 3.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003925/0.3652, allocations: 413.3 kB / 470 MB, free: 3.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.3652, allocations: 8.094 kB / 470 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3652, allocations: 4 kB / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.857e-06/0.3652, allocations: 0 / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3652, allocations: 0 / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.3652, allocations: 0 / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/0.3653, allocations: 16.5 kB / 470 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.3653, allocations: 4 kB / 470.1 MB, free: 3.492 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.000208/0.3655, allocations: 262.9 kB / 470.3 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.3656, allocations: 27.81 kB / 470.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.501e-05/0.3656, allocations: 9.438 kB / 470.3 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3656, allocations: 3.906 kB / 470.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3656, allocations: 1.031 kB / 470.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3656, allocations: 4 kB / 470.4 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.3658, allocations: 206.8 kB / 470.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3658, allocations: 0 / 470.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.17e-06/0.3658, allocations: 4 kB / 470.6 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3658, allocations: 7.875 kB / 470.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.3658, allocations: 23.97 kB / 470.6 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3658, allocations: 0.875 kB / 470.6 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3659, allocations: 4 kB / 470.6 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008373/0.3667, allocations: 0.7348 MB / 471.3 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00147/0.3682, allocations: 1.628 MB / 473 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.3682, allocations: 103 kB / 473.1 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3684, allocations: 79.91 kB / 473.1 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.348e-05/0.3685, allocations: 12.06 kB / 473.1 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.3685, allocations: 13.75 kB / 473.2 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.3686, allocations: 23.98 kB / 473.2 MB, free: 232 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.252e-05/0.3686, allocations: 87.27 kB / 473.3 MB, free: 144 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009506/0.3696, allocations: 87.88 kB / 473.4 MB, free: 56 kB / 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.0005109/0.3701, allocations: 296.7 kB / 473.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004627/0.3706, allocations: 0.5148 MB / 474.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3706, allocations: 0 / 474.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.3721, allocations: 2.143 MB / 476.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3722, allocations: 22.77 kB / 476.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004436/0.3726, allocations: 297.2 kB / 476.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.3729, allocations: 0.7475 MB / 477.4 MB, free: 12 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3729, allocations: 0 / 477.4 MB, free: 12 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1)