Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_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.0009339/0.0009338, allocations: 101.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001043/0.001043, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.00022, allocations: 8 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1097, allocations: 51.48 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001627/0.1114, allocations: 0.9627 MB / 359.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009929/0.1124, allocations: 428.4 kB / 359.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.976e-05/0.1125, allocations: 7.938 kB / 359.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.1125, allocations: 0 / 359.7 MB, free: 12.37 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0004836/0.113, allocations: 59.86 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001242/0.1131, allocations: 47.89 kB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.608e-05/0.1132, allocations: 39.84 kB / 359.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.605e-05/0.1133, allocations: 3.984 kB / 359.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.423e-05/0.1133, allocations: 15.98 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.1134, allocations: 23.91 kB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.1134, allocations: 0 / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.1136, allocations: 103.8 kB / 360 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.1137, allocations: 39.91 kB / 360 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.599e-05/0.1137, allocations: 45.58 kB / 360 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.1139, allocations: 119.8 kB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.066e-05/0.114, allocations: 7.938 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.541e-06/0.114, allocations: 0 / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.114, allocations: 0 / 360.2 MB, free: 11.86 MB / 302.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.0006336/0.1147, allocations: 0.5491 MB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1147, allocations: 8.031 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.475e-05/0.1148, allocations: 50.48 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.115, allocations: 27.7 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.1151, allocations: 179 kB / 361 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1151, allocations: 4 kB / 361 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.1152, allocations: 7.953 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.1155, allocations: 282.3 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1155, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.1155, allocations: 0 / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1155, allocations: 7.984 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.1157, allocations: 144.3 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003524/0.116, allocations: 389.5 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.1165, allocations: 0.4975 MB / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.1169, allocations: 486.1 kB / 362.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.1169, allocations: 4 kB / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005387/0.1175, allocations: 494.7 kB / 363.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.042e-06/0.1175, allocations: 4 kB / 363.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009522/0.1184, allocations: 0.7253 MB / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.1186, allocations: 160.5 kB / 364.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1187, allocations: 106 kB / 364.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1187, allocations: 29.73 kB / 364.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.571e-05/0.1188, allocations: 85.14 kB / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1189, allocations: 94.66 kB / 364.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.1189, allocations: 0 / 364.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1191, allocations: 330.8 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.783e-05/0.1192, allocations: 84.41 kB / 364.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.1194, allocations: 112.3 kB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.1197, allocations: 216.1 kB / 365.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1198, allocations: 3.953 kB / 365.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004918/0.1203, allocations: 368.1 kB / 365.5 MB, free: 6.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.1204, allocations: 114.1 kB / 365.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1204, allocations: 0 / 365.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.1204, allocations: 0 / 365.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.286e-05/0.1205, allocations: 8 kB / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1206, allocations: 3.938 kB / 365.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/0.1206, allocations: 23.91 kB / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.1207, allocations: 8 kB / 365.7 MB, free: 5.969 MB / 302.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.0003352/0.121, allocations: 300.8 kB / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/0.1211, allocations: 39.61 kB / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.1211, allocations: 9.5 kB / 366 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1211, allocations: 4 kB / 366 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1211, allocations: 0 / 366 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1211, allocations: 4 kB / 366 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.1226, allocations: 1.436 MB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1226, allocations: 0 / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.091e-05/0.1226, allocations: 4 kB / 367.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.1226, allocations: 0 / 367.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.1226, allocations: 19.98 kB / 367.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1227, allocations: 0 / 367.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1227, allocations: 4 kB / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.1241, allocations: 1.307 MB / 368.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.1242, allocations: 96.86 kB / 368.9 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.1243, allocations: 67.94 kB / 369 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.1244, allocations: 8 kB / 369 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.785e-05/0.1245, allocations: 15.92 kB / 369 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.1245, allocations: 20 kB / 369 MB, free: 2.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.421e-05/0.1246, allocations: 87.27 kB / 369.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1246, allocations: 0 / 369.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000376/0.125, allocations: 84 kB / 369.2 MB, free: 2.344 MB / 302.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.002214/0.1272, allocations: 2.332 MB / 371.5 MB, free: 0 / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1961/0.3233, allocations: 2.13 MB / 373.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.3234, allocations: 0 / 373.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001589/0.325, allocations: 2.194 MB / 375.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.3253, allocations: 20.09 kB / 375.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.3272, allocations: 1.35 MB / 377.2 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.3274, allocations: 0.7301 MB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.655e-05/0.3274, allocations: 2.016 kB / 377.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.3274, allocations: 36.58 kB / 378 MB, free: 17.18 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3274, allocations: 0 / 378 MB, free: 17.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.3457, allocations: 4.542 MB / 382.5 MB, free: 16.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.346, allocations: 227.1 kB / 382.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.219, allocations: 0 / 382.7 MB, free: 16.52 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat