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.001363/0.001363, allocations: 175.6 kB / 13.63 MB, free: 1.684 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.392/1.392, allocations: 221.3 MB / 235.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 97.98 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.857e-05/3.86e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1188, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4797, allocations: 76.24 MB / 470.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.48, allocations: 71.95 kB / 470.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008514/0.4885, allocations: 2.979 MB / 473.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4886, allocations: 0 / 473.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.4886, allocations: 0 / 473.6 MB, free: 8.18 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.0006022/0.4892, allocations: 0.5565 MB / 474.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/0.4893, allocations: 12.03 kB / 474.2 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.325e-05/0.4894, allocations: 54.41 kB / 474.2 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.4895, allocations: 27.8 kB / 474.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.4897, allocations: 178.9 kB / 474.5 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.4897, allocations: 4 kB / 474.5 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.4898, allocations: 7.984 kB / 474.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.4901, allocations: 278.3 kB / 474.7 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4902, allocations: 7.938 kB / 474.7 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.4902, allocations: 0 / 474.7 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.4902, allocations: 3.953 kB / 474.7 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.4904, allocations: 148.3 kB / 474.9 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004057/0.4908, allocations: 405.4 kB / 475.3 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/0.4912, allocations: 0.4937 MB / 475.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.4916, allocations: 486.1 kB / 476.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.4916, allocations: 0 / 476.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004761/0.4921, allocations: 486.7 kB / 476.7 MB, free: 4.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/0.4921, allocations: 0 / 476.7 MB, free: 4.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007885/0.4929, allocations: 0.5223 MB / 477.3 MB, free: 4.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.4931, allocations: 156.5 kB / 477.4 MB, free: 4.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.441e-05/0.4932, allocations: 104.9 kB / 477.5 MB, free: 4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.4932, allocations: 29.73 kB / 477.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.4933, allocations: 84.92 kB / 477.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.4933, allocations: 94.62 kB / 477.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-06/0.4934, allocations: 0 / 477.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4935, allocations: 330.8 kB / 478 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.309e-05/0.4936, allocations: 80.42 kB / 478.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.4937, allocations: 120.3 kB / 478.2 MB, free: 3.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.4939, allocations: 199.3 kB / 478.4 MB, free: 3.047 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4939, allocations: 4 kB / 478.4 MB, free: 3.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003811/0.4943, allocations: 371.9 kB / 478.8 MB, free: 2.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.965e-05/0.4944, allocations: 107.3 kB / 478.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4944, allocations: 0 / 478.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4944, allocations: 3.953 kB / 478.9 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.728e-05/0.4945, allocations: 7.984 kB / 478.9 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.4945, allocations: 0 / 478.9 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.354e-05/0.4946, allocations: 31.69 kB / 478.9 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.4946, allocations: 8 kB / 478.9 MB, free: 2.492 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 () * 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.0002312/0.4948, allocations: 279.4 kB / 479.2 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.4949, allocations: 27.81 kB / 479.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.4949, allocations: 5.344 kB / 479.3 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4949, allocations: 8.234 kB / 479.3 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.495, allocations: 0 / 479.3 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.495, allocations: 4 kB / 479.3 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.4963, allocations: 1.444 MB / 480.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.4963, allocations: 1.438 kB / 480.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.398e-05/0.4963, allocations: 11.92 kB / 480.7 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.4963, allocations: 0 / 480.7 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.4964, allocations: 27.94 kB / 480.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4964, allocations: 0 / 480.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4964, allocations: 4 kB / 480.8 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.4977, allocations: 1.313 MB / 482.1 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.4977, allocations: 100.8 kB / 482.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.4979, allocations: 71.91 kB / 482.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.498, allocations: 16.81 kB / 482.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.498, allocations: 4 kB / 482.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.4981, allocations: 35.97 kB / 482.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.28e-05/0.4982, allocations: 83.28 kB / 482.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.442e-06/0.4982, allocations: 0 / 482.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004372/0.4986, allocations: 115.9 kB / 482.5 MB, free: 14.81 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) * 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.002488/0.5011, allocations: 2.394 MB / 484.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.5028, allocations: 2.132 MB / 487 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.5028, allocations: 0 / 487 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.5043, allocations: 2.19 MB / 489.2 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.5045, allocations: 8 kB / 489.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000738/0.5052, allocations: 408.9 kB / 489.6 MB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.5055, allocations: 0.7283 MB / 490.3 MB, free: 6.828 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.381e-05/0.5056, allocations: 0 / 490.3 MB, free: 6.828 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.694e-05/0.5056, allocations: 39.42 kB / 490.4 MB, free: 6.789 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5056, allocations: 0 / 490.4 MB, free: 6.789 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.5228, allocations: 5.027 MB / 495.4 MB, free: 1.863 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.5231, allocations: 193.2 kB / 495.6 MB, free: 1.637 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.25, allocations: 4 kB / 495.6 MB, free: 1.633 MB / 362.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