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.0011/0.001101, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002275/0.0002275, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1112, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001541/0.1128, allocations: 0.9628 MB / 359.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008696/0.1137, allocations: 420.3 kB / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.1138, allocations: 3.938 kB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.853e-05/0.1138, allocations: 4 kB / 359.6 MB, free: 12.39 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.0004644/0.1143, allocations: 55.8 kB / 359.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.1145, allocations: 55.81 kB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.742e-05/0.1146, allocations: 27.95 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.713e-05/0.1146, allocations: 0 / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.826e-05/0.1147, allocations: 19.92 kB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.1147, allocations: 27.84 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.1148, allocations: 4 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.115, allocations: 79.86 kB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.583e-05/0.115, allocations: 39.84 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.487e-05/0.1151, allocations: 45.64 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.1153, allocations: 111.7 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.1153, allocations: 4 kB / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1153, allocations: 0 / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1153, allocations: 0 / 360 MB, free: 11.92 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.0005431/0.1159, allocations: 0.5492 MB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1159, allocations: 12.03 kB / 360.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.27e-05/0.116, allocations: 54.47 kB / 360.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.1162, allocations: 23.72 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.1163, allocations: 178.9 kB / 360.8 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.1164, allocations: 7.938 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.1164, allocations: 11.95 kB / 360.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.1168, allocations: 278.3 kB / 361.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1168, allocations: 0 / 361.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1168, allocations: 4 kB / 361.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1168, allocations: 0 / 361.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.117, allocations: 156.3 kB / 361.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.1174, allocations: 385.5 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.1178, allocations: 0.4937 MB / 362.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.1178, allocations: 0 / 362.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004706/0.1183, allocations: 494.8 kB / 362.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.022e-06/0.1183, allocations: 0 / 362.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009855/0.1193, allocations: 0.8997 MB / 363.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.563e-05/0.1194, allocations: 164.5 kB / 363.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.1195, allocations: 97.86 kB / 363.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1195, allocations: 29.7 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.1196, allocations: 93.12 kB / 363.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.1196, allocations: 90.66 kB / 364 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-06/0.1197, allocations: 0 / 364 MB, free: 7.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1198, allocations: 334.9 kB / 364.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.116e-05/0.1199, allocations: 84.41 kB / 364.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.12, allocations: 116.3 kB / 364.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.1202, allocations: 212.1 kB / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1202, allocations: 0 / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003898/0.1206, allocations: 372.1 kB / 365.1 MB, free: 6.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/0.1207, allocations: 107.3 kB / 365.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1207, allocations: 0 / 365.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.1207, allocations: 7.969 kB / 365.2 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/0.1208, allocations: 15.92 kB / 365.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1208, allocations: 0 / 365.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.185e-05/0.1209, allocations: 23.78 kB / 365.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.1209, allocations: 8 kB / 365.3 MB, free: 6.285 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.0002566/0.1212, allocations: 295.7 kB / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.502e-05/0.1212, allocations: 39.66 kB / 365.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.468e-05/0.1213, allocations: 5.562 kB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1213, allocations: 0 / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.1213, allocations: 0 / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1213, allocations: 4 kB / 365.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.1227, allocations: 1.429 MB / 367 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1227, allocations: 0 / 367 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.419e-05/0.1228, allocations: 7.984 kB / 367 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.1228, allocations: 0 / 367 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.1228, allocations: 16 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1228, allocations: 3.984 kB / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1228, allocations: 0 / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.1241, allocations: 1.329 MB / 368.4 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.1242, allocations: 104.8 kB / 368.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.1243, allocations: 63.95 kB / 368.6 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.1244, allocations: 8 kB / 368.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.1244, allocations: 11.98 kB / 368.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.1245, allocations: 19.98 kB / 368.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.941e-05/0.1245, allocations: 87.27 kB / 368.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1245, allocations: 0 / 368.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.1249, allocations: 91.92 kB / 368.8 MB, free: 2.645 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.002693/0.1276, allocations: 2.4 MB / 371.2 MB, free: 236 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1948/0.3224, allocations: 2.132 MB / 373.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3225, allocations: 0.5938 kB / 373.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.3241, allocations: 2.192 MB / 375.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.3243, allocations: 11.05 kB / 375.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.3262, allocations: 1.51 MB / 377 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.3264, allocations: 0.7302 MB / 377.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.8e-05/0.3264, allocations: 6.203 kB / 377.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.3265, allocations: 36.38 kB / 377.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3265, allocations: 0 / 377.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.3444, allocations: 4.523 MB / 382.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/0.3446, allocations: 216.6 kB / 382.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.271, allocations: 1.375 kB / 382.5 MB, free: 16.39 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