Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001333/0.001333, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.518/1.518, allocations: 227.7 MB / 247.2 MB, free: 10.22 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2713, allocations: 50.53 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00222/0.2736, allocations: 1.253 MB / 410.3 MB, free: 100 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009654/0.2746, allocations: 452.8 kB / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.676e-05/0.2746, allocations: 0 / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.2747, allocations: 3.938 kB / 410.8 MB, free: 15.65 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.2751, allocations: 79.73 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00014/0.2753, allocations: 63.8 kB / 410.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2754, allocations: 51.84 kB / 411 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.33e-05/0.2754, allocations: 3.516 kB / 411 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.856e-05/0.2755, allocations: 23.91 kB / 411 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.778e-05/0.2755, allocations: 23.91 kB / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.2756, allocations: 4 kB / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.2758, allocations: 115.8 kB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.2758, allocations: 27.92 kB / 411.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.271e-05/0.2759, allocations: 51.67 kB / 411.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.2762, allocations: 178.2 kB / 411.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2762, allocations: 4 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2762, allocations: 0 / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2762, allocations: 0 / 411.4 MB, free: 15.04 MB / 334.1 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.0006449/0.2769, allocations: 0.5682 MB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.2769, allocations: 8.031 kB / 412 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.76e-05/0.277, allocations: 54.69 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.2771, allocations: 24.83 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.2773, allocations: 180.1 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.2773, allocations: 4.375 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.2773, allocations: 8.375 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.2777, allocations: 294.8 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2777, allocations: 3.938 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.2777, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2777, allocations: 4 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.2779, allocations: 144.3 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.2783, allocations: 381.6 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.2788, allocations: 0.4975 MB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004263/0.2792, allocations: 486 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.2792, allocations: 7.984 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005632/0.2798, allocations: 494.8 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.603e-06/0.2798, allocations: 0 / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.000944/0.2808, allocations: 0.7268 MB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.2809, allocations: 156.5 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.852e-05/0.281, allocations: 109.8 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.281, allocations: 25.7 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.196e-05/0.2811, allocations: 81.14 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/0.2812, allocations: 103.2 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.2812, allocations: 45.69 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.2814, allocations: 326.8 kB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2815, allocations: 88.41 kB / 416.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.2816, allocations: 120.2 kB / 416.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.282, allocations: 431.8 kB / 416.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.282, allocations: 7.875 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004236/0.2825, allocations: 376.2 kB / 417 MB, free: 8.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.2826, allocations: 107.3 kB / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2826, allocations: 0 / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2826, allocations: 0 / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.998e-05/0.2827, allocations: 12.05 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.2827, allocations: 4 kB / 417.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.245e-05/0.2828, allocations: 23.78 kB / 417.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.2828, allocations: 12 kB / 417.2 MB, free: 8.812 MB / 334.1 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 (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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003074/0.2831, allocations: 295.7 kB / 417.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.2832, allocations: 31.91 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.2832, allocations: 9.547 kB / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.2832, allocations: 0 / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2832, allocations: 0 / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2833, allocations: 4 kB / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.2848, allocations: 1.436 MB / 419 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2848, allocations: 0 / 419 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.313e-05/0.2848, allocations: 4 kB / 419 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2848, allocations: 7.984 kB / 419 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.2849, allocations: 16 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2849, allocations: 0 / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2849, allocations: 0 / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.2862, allocations: 1.327 MB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.2863, allocations: 92.95 kB / 420.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.2864, allocations: 67.94 kB / 420.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.378e-05/0.2865, allocations: 8 kB / 420.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.2866, allocations: 16.45 kB / 420.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.2866, allocations: 23.92 kB / 420.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.2867, allocations: 87.2 kB / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2867, allocations: 0 / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2871, allocations: 99.86 kB / 420.7 MB, free: 5.168 MB / 334.1 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002588/0.2897, allocations: 2.307 MB / 423 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.2916, allocations: 2.144 MB / 425.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2916, allocations: 0 / 425.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.2934, allocations: 2.186 MB / 427.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.2937, allocations: 24 kB / 427.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003629/0.2973, allocations: 3.332 MB / 430.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.2977, allocations: 0.7278 MB / 431.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.455e-05/0.2977, allocations: 0 / 431.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.2978, allocations: 35.42 kB / 431.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.214e-06/0.2978, allocations: 4 kB / 431.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.3236, allocations: 4.768 MB / 436.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.379, allocations: 8.641 kB / 436.2 MB, free: 5.539 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_1_0-beta_om_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1)