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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 91.16 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.531e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1361, allocations: 51.48 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.6087, allocations: 76.38 MB / 471.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.609, allocations: 59.62 kB / 471.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008011/0.617, allocations: 2.978 MB / 474.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.617, allocations: 0 / 474.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.6171, allocations: 0 / 474.7 MB, free: 12.97 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.0004219/0.6175, allocations: 0.5536 MB / 475.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.6175, allocations: 8.031 kB / 475.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.6177, allocations: 21.45 kB / 475.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.6178, allocations: 172.2 kB / 475.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.6178, allocations: 4.859 kB / 475.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.6178, allocations: 7.984 kB / 475.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001419/0.618, allocations: 147.4 kB / 475.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.6183, allocations: 271.4 kB / 475.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6183, allocations: 0 / 475.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.6183, allocations: 0 / 475.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.6183, allocations: 0 / 475.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.6185, allocations: 175.1 kB / 476 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.6188, allocations: 494 kB / 476.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.6191, allocations: 474 kB / 477 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.6191, allocations: 0 / 477 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003385/0.6194, allocations: 470.1 kB / 477.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.595e-06/0.6194, allocations: 0 / 477.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006183/0.6201, allocations: 413 kB / 477.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.6201, allocations: 156.8 kB / 478 MB, free: 10.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.714e-05/0.6202, allocations: 98.23 kB / 478.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.6202, allocations: 29.7 kB / 478.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/0.6202, allocations: 82.56 kB / 478.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.6203, allocations: 87.89 kB / 478.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-06/0.6203, allocations: 0 / 478.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.084e-05/0.6204, allocations: 327.2 kB / 478.6 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.899e-05/0.6204, allocations: 83.8 kB / 478.7 MB, free: 9.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.7e-05/0.6205, allocations: 104.6 kB / 478.8 MB, free: 9.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.6207, allocations: 107.9 kB / 478.9 MB, free: 9.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.6207, allocations: 0 / 478.9 MB, free: 9.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002805/0.621, allocations: 248 kB / 479.1 MB, free: 9.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.6211, allocations: 113.2 kB / 479.2 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6211, allocations: 3.062 kB / 479.2 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.6211, allocations: 3.953 kB / 479.2 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.6211, allocations: 0 / 479.2 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.6211, allocations: 4.094 kB / 479.2 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.433e-05/0.6212, allocations: 19.84 kB / 479.3 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.6212, allocations: 8 kB / 479.3 MB, free: 9.402 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.0002267/0.6215, allocations: 274.9 kB / 479.5 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006544/0.6221, allocations: 0.5355 MB / 480.1 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.6222, allocations: 31.77 kB / 480.1 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.108e-05/0.6222, allocations: 5.969 kB / 480.1 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.6222, allocations: 3.938 kB / 480.1 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.6222, allocations: 3.234 kB / 480.1 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.6222, allocations: 0 / 480.1 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.6224, allocations: 207.5 kB / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.6224, allocations: 0 / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.6224, allocations: 0 / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.6224, allocations: 8.25 kB / 480.3 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.6225, allocations: 20.42 kB / 480.3 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.6225, allocations: 3.953 kB / 480.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.6225, allocations: 5.156 kB / 480.4 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007182/0.6232, allocations: 0.5883 MB / 480.9 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.257e-05/0.6233, allocations: 94.55 kB / 481 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.6234, allocations: 77.83 kB / 481.1 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.81e-05/0.6235, allocations: 12 kB / 481.1 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.6235, allocations: 9.531 kB / 481.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/0.6236, allocations: 26.55 kB / 481.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.392e-05/0.6236, allocations: 84.59 kB / 481.2 MB, free: 7.832 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6236, allocations: 0 / 481.2 MB, free: 7.832 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004551/0.6241, allocations: 105.4 kB / 481.3 MB, free: 7.73 MB / 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.001845/0.626, allocations: 1.651 MB / 483 MB, free: 6.414 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.6274, allocations: 2.089 MB / 485.1 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6274, allocations: 4.062 kB / 485.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.6287, allocations: 2.173 MB / 487.3 MB, free: 4.645 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.629, allocations: 13.38 kB / 487.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007451/0.6297, allocations: 369.6 kB / 487.6 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.6299, allocations: 0.7324 MB / 488.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.157e-05/0.63, allocations: 0 / 488.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.114e-05/0.63, allocations: 34.55 kB / 488.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.63, allocations: 0 / 488.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.6551, allocations: 4.607 MB / 493 MB, free: 14.94 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/0.6554, allocations: 162.1 kB / 493.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/2.366, allocations: 0 / 493.2 MB, free: 14.75 MB / 362.7 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