Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001347/0.001347, allocations: 181.3 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007894/0.0007895, allocations: 93.34 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002516, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2421, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0964/0.3386, allocations: 75.38 MB / 451.3 MB, free: 5.266 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.3389, allocations: 59.97 kB / 451.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008303/0.3472, allocations: 2.973 MB / 454.3 MB, free: 2.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3472, allocations: 0 / 454.3 MB, free: 2.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.3472, allocations: 4 kB / 454.3 MB, free: 2.227 MB / 330.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.0006458/0.3479, allocations: 0.5682 MB / 454.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.348, allocations: 8.031 kB / 454.9 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.15e-05/0.348, allocations: 54.55 kB / 455 MB, free: 1.527 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.3482, allocations: 19.81 kB / 455 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.3483, allocations: 186.8 kB / 455.2 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3484, allocations: 0 / 455.2 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.3484, allocations: 11.95 kB / 455.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.3488, allocations: 282.2 kB / 455.4 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3488, allocations: 0 / 455.4 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.3488, allocations: 4 kB / 455.4 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3488, allocations: 0 / 455.4 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.349, allocations: 152.3 kB / 455.6 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.3494, allocations: 405.4 kB / 456 MB, free: 384 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004148/0.3498, allocations: 0.4999 MB / 456.5 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.3498, allocations: 3.938 kB / 456.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004626/0.3503, allocations: 482.8 kB / 457 MB, free: 15.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.262e-06/0.3503, allocations: 4 kB / 457 MB, free: 15.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001075/0.3514, allocations: 0.9077 MB / 457.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.3515, allocations: 160.5 kB / 458 MB, free: 14.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.241e-05/0.3516, allocations: 96.98 kB / 458.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.3516, allocations: 25.7 kB / 458.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.362e-05/0.3517, allocations: 89.17 kB / 458.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.312e-05/0.3518, allocations: 90.64 kB / 458.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.3518, allocations: 0 / 458.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3519, allocations: 334.7 kB / 458.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.059e-05/0.352, allocations: 84.41 kB / 458.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.3522, allocations: 120.2 kB / 458.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.3524, allocations: 215.9 kB / 459.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3524, allocations: 0 / 459.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003958/0.3528, allocations: 364.4 kB / 459.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.3529, allocations: 111.3 kB / 459.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3529, allocations: 3.984 kB / 459.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.3529, allocations: 0 / 459.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.952e-05/0.353, allocations: 7.938 kB / 459.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.353, allocations: 4 kB / 459.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.025e-05/0.3531, allocations: 23.69 kB / 459.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.3531, allocations: 8 kB / 459.6 MB, free: 12.57 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,$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.0002855/0.3534, allocations: 299.8 kB / 459.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.3535, allocations: 27.77 kB / 459.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.3535, allocations: 13.56 kB / 459.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3536, allocations: 0 / 459.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3536, allocations: 4 kB / 459.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3536, allocations: 0 / 459.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.355, allocations: 1.452 MB / 461.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.355, allocations: 0 / 461.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.414e-05/0.355, allocations: 4 kB / 461.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.355, allocations: 0 / 461.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.16e-05/0.3551, allocations: 27.97 kB / 461.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3551, allocations: 0 / 461.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3551, allocations: 0 / 461.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.3565, allocations: 1.325 MB / 462.7 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.3566, allocations: 104.8 kB / 462.8 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.3567, allocations: 71.92 kB / 462.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.8e-05/0.3568, allocations: 8 kB / 462.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.3569, allocations: 11.98 kB / 462.9 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.3569, allocations: 27.98 kB / 462.9 MB, free: 9.066 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.036e-05/0.357, allocations: 87.73 kB / 463 MB, free: 8.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.357, allocations: 0 / 463 MB, free: 8.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004447/0.3574, allocations: 107.9 kB / 463.1 MB, free: 8.875 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 ($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.002883/0.3603, allocations: 2.426 MB / 465.6 MB, free: 6.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.3622, allocations: 2.132 MB / 467.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.3622, allocations: 0 / 467.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.364, allocations: 2.198 MB / 469.9 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.3642, allocations: 15.98 kB / 469.9 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.3662, allocations: 1.533 MB / 471.4 MB, free: 444 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.3666, allocations: 0.7322 MB / 472.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.786e-05/0.3666, allocations: 0 / 472.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.3667, allocations: 39.36 kB / 472.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3667, allocations: 0 / 472.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.3844, allocations: 5.06 MB / 477.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.3847, allocations: 227.7 kB / 477.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.065, allocations: 3.938 kB / 477.5 MB, free: 10.32 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat