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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008988, allocations: 100.7 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.0002899, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2721, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1014/0.3736, allocations: 76.31 MB / 477.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.3738, allocations: 69.98 kB / 478 MB, free: 4.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008759/0.3826, allocations: 2.997 MB / 480.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3826, allocations: 0 / 480.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3827, allocations: 0 / 480.9 MB, free: 1.082 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.0005637/0.3832, allocations: 0.5682 MB / 481.5 MB, free: 464 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3833, allocations: 12.03 kB / 481.5 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.715e-05/0.3834, allocations: 54.44 kB / 481.6 MB, free: 388 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.3835, allocations: 23.8 kB / 481.6 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3836, allocations: 178.9 kB / 481.8 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.3837, allocations: 4 kB / 481.8 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3837, allocations: 4 kB / 481.8 MB, free: 136 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.3841, allocations: 286.3 kB / 482.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3842, allocations: 4 kB / 482.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.3842, allocations: 0 / 482.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.3843, allocations: 3.953 kB / 482.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.3844, allocations: 152.2 kB / 482.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.3849, allocations: 389.5 kB / 482.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004341/0.3853, allocations: 0.4975 MB / 483.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.3853, allocations: 3.938 kB / 483.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/0.3858, allocations: 490.7 kB / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.192e-06/0.3859, allocations: 0 / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001142/0.387, allocations: 0.9154 MB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.3871, allocations: 168.4 kB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.242e-05/0.3872, allocations: 96.97 kB / 484.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3872, allocations: 33.7 kB / 484.8 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.341e-05/0.3873, allocations: 81.14 kB / 484.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.3873, allocations: 86.72 kB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-06/0.3874, allocations: 8 kB / 485 MB, free: 12.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3875, allocations: 326.8 kB / 485.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.672e-05/0.3876, allocations: 88.41 kB / 485.4 MB, free: 12.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.631e-05/0.3877, allocations: 116.3 kB / 485.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.3879, allocations: 204.2 kB / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3879, allocations: 0 / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003489/0.3882, allocations: 372.1 kB / 486 MB, free: 11.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.825e-05/0.3883, allocations: 107.3 kB / 486.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3883, allocations: 4 kB / 486.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3884, allocations: 3.953 kB / 486.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.386e-05/0.3884, allocations: 4 kB / 486.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3884, allocations: 0 / 486.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.106e-05/0.3885, allocations: 31.72 kB / 486.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.3885, allocations: 8 kB / 486.2 MB, free: 11.43 MB / 362.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.0002503/0.3888, allocations: 299.7 kB / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.3888, allocations: 27.81 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.3889, allocations: 5.562 kB / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3889, allocations: 0 / 486.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.3889, allocations: 7.953 kB / 486.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3889, allocations: 3.938 kB / 486.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.3904, allocations: 1.448 MB / 488 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.3904, allocations: 8.047 kB / 488 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.223e-05/0.3904, allocations: 4 kB / 488 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3904, allocations: 4 kB / 488 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.3905, allocations: 27.94 kB / 488 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3905, allocations: 0 / 488 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3905, allocations: 7.922 kB / 488 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.3918, allocations: 1.321 MB / 489.4 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.3918, allocations: 92.86 kB / 489.4 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.392, allocations: 79.86 kB / 489.5 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.3921, allocations: 8 kB / 489.5 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.3921, allocations: 12 kB / 489.5 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.3922, allocations: 31.97 kB / 489.6 MB, free: 7.906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.483e-05/0.3922, allocations: 83.22 kB / 489.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3922, allocations: 0 / 489.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004176/0.3926, allocations: 111.9 kB / 489.8 MB, free: 7.715 MB / 362.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.002416/0.3951, allocations: 2.414 MB / 492.2 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.3968, allocations: 2.14 MB / 494.3 MB, free: 3.133 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3969, allocations: 0 / 494.3 MB, free: 3.133 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.3984, allocations: 2.186 MB / 496.5 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.3986, allocations: 18.98 kB / 496.5 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.4005, allocations: 1.521 MB / 498 MB, free: 15.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.4008, allocations: 0.7322 MB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.573e-05/0.4008, allocations: 4 kB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.4009, allocations: 35.42 kB / 498.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4009, allocations: 0 / 498.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.4194, allocations: 5.066 MB / 0.4921 GB, free: 9.582 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002547/0.4198, allocations: 219.6 kB / 0.4923 GB, free: 9.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.228, allocations: 0 / 0.4923 GB, free: 9.34 MB / 378.7 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