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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008538/0.0008538, allocations: 88.16 kB / 16.31 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 177.8 kB / 17.2 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 241.2 MB, free: 5.355 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002615, allocations: 5.781 kB / 300.9 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00134/0.1083, allocations: 0.939 MB / 352.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008484/0.1091, allocations: 433.9 kB / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.1092, allocations: 0 / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.1092, allocations: 0 / 352.7 MB, free: 10.2 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.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.0004441/0.1097, allocations: 55.81 kB / 352.8 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.1098, allocations: 55.81 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.392e-05/0.1099, allocations: 43.84 kB / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.976e-05/0.1099, allocations: 288 / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.531e-05/0.11, allocations: 23.91 kB / 352.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.837e-05/0.11, allocations: 11.98 kB / 352.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.11, allocations: 4 kB / 352.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.1102, allocations: 111.8 kB / 353 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.1103, allocations: 35.84 kB / 353 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.764e-05/0.1104, allocations: 45.64 kB / 353.1 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.1105, allocations: 119.8 kB / 353.2 MB, free: 9.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1105, allocations: 0 / 353.2 MB, free: 9.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1106, allocations: 0 / 353.2 MB, free: 9.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1106, allocations: 0 / 353.2 MB, free: 9.695 MB / 286.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.0005303/0.1111, allocations: 0.5527 MB / 353.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1112, allocations: 12.03 kB / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.946e-05/0.1112, allocations: 46.55 kB / 353.8 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.1114, allocations: 35.66 kB / 353.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.1115, allocations: 178.9 kB / 354 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1116, allocations: 4 kB / 354 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.1116, allocations: 7.984 kB / 354 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.1119, allocations: 278.3 kB / 354.3 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1119, allocations: 0 / 354.3 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1119, allocations: 4 kB / 354.3 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.112, allocations: 3.953 kB / 354.3 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.1121, allocations: 156.3 kB / 354.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.1125, allocations: 377.5 kB / 354.8 MB, free: 7.883 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004808/0.1129, allocations: 0.4937 MB / 355.3 MB, free: 7.371 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003668/0.1133, allocations: 486 kB / 355.8 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.1133, allocations: 4 kB / 355.8 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005047/0.1139, allocations: 486.8 kB / 356.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.222e-06/0.1139, allocations: 0 / 356.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008758/0.1147, allocations: 0.737 MB / 357 MB, free: 5.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.457e-05/0.1148, allocations: 156.5 kB / 357.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.019e-05/0.1149, allocations: 113.8 kB / 357.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.115, allocations: 25.7 kB / 357.3 MB, free: 5.277 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.115, allocations: 81.14 kB / 357.4 MB, free: 5.195 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.1151, allocations: 90.72 kB / 357.5 MB, free: 5.105 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.1151, allocations: 4 kB / 357.5 MB, free: 5.102 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1152, allocations: 330.8 kB / 357.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.199e-05/0.1153, allocations: 84.41 kB / 357.9 MB, free: 4.688 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.1154, allocations: 116.2 kB / 358 MB, free: 4.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.1157, allocations: 216.1 kB / 358.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1157, allocations: 0 / 358.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004004/0.1161, allocations: 368.1 kB / 358.6 MB, free: 3.969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.562e-05/0.1162, allocations: 111.3 kB / 358.7 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1162, allocations: 3.938 kB / 358.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1162, allocations: 3.953 kB / 358.7 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.977e-05/0.1163, allocations: 4 kB / 358.7 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1163, allocations: 0 / 358.7 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.392e-05/0.1164, allocations: 23.78 kB / 358.7 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1164, allocations: 12 kB / 358.7 MB, free: 3.801 MB / 286.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 ($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],$whenCondition1,rImpure,iImpure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002878/0.1167, allocations: 299.8 kB / 359 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.1167, allocations: 27.72 kB / 359 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.944e-05/0.1168, allocations: 9.562 kB / 359 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1168, allocations: 8.375 kB / 359.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1168, allocations: 0 / 359.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1168, allocations: 64 / 359.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.1182, allocations: 1.433 MB / 360.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1182, allocations: 0 / 360.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.539e-05/0.1182, allocations: 4 kB / 360.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1182, allocations: 8.031 kB / 360.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.1183, allocations: 19.94 kB / 360.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.1183, allocations: 8 kB / 360.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1183, allocations: 0 / 360.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1195, allocations: 1.315 MB / 361.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.1196, allocations: 96.84 kB / 361.9 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.1197, allocations: 67.94 kB / 362 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.1198, allocations: 15.95 kB / 362 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1199, allocations: 15.98 kB / 362 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.1199, allocations: 16 kB / 362 MB, free: 340 kB / 286.1 MB Notification: Performance of sorting global known variables: time 4.394e-05/0.12, allocations: 87.27 kB / 362.1 MB, free: 252 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.12, allocations: 0 / 362.1 MB, free: 252 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000402/0.1204, allocations: 88 kB / 362.2 MB, free: 164 kB / 286.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 (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.002491/0.1229, allocations: 2.316 MB / 364.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.1248, allocations: 2.136 MB / 366.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1249, allocations: 0 / 366.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.1265, allocations: 2.194 MB / 368.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.1268, allocations: 19.95 kB / 368.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.1289, allocations: 1.37 MB / 370.3 MB, free: 8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.1293, allocations: 0.7244 MB / 371 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.208e-05/0.1293, allocations: 0 / 371 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.559e-05/0.1294, allocations: 39.42 kB / 371 MB, free: 7.207 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1294, allocations: 0 / 371 MB, free: 7.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.1453, allocations: 4.539 MB / 375.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.1456, allocations: 244.5 kB / 375.8 MB, free: 2.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/1.912, allocations: 0 / 375.8 MB, free: 2.539 MB / 302.1 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat