Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001538, allocations: 200.6 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, 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.001021/0.001021, allocations: 102.1 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.212/0.212, allocations: 45.14 MB / 383.8 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-05/1.859e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 63.24 MB / 0.5044 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3929/0.5101, allocations: 86.87 MB / 0.5893 GB, free: 15.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000159/0.5103, allocations: 62.34 kB / 0.5893 GB, free: 15.28 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01271/0.523, allocations: 5.811 MB / 0.595 GB, free: 10.35 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5231, allocations: 0 / 0.595 GB, free: 10.35 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.5231, allocations: 4 kB / 0.595 GB, free: 10.34 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005157/0.5236, allocations: 470.3 kB / 0.5955 GB, free: 9.855 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.5236, allocations: 15.95 kB / 0.5955 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.5237, allocations: 19.81 kB / 0.5955 GB, free: 9.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.5238, allocations: 178.8 kB / 0.5957 GB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.5238, allocations: 4 kB / 0.5957 GB, free: 9.602 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.5239, allocations: 12 kB / 0.5957 GB, free: 9.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001129/0.524, allocations: 93.53 kB / 0.5958 GB, free: 9.531 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.5241, allocations: 124.9 kB / 0.5959 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.5241, allocations: 0 / 0.5959 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.5241, allocations: 0 / 0.5959 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.5241, allocations: 0 / 0.5959 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.5243, allocations: 173.6 kB / 0.5961 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.5244, allocations: 171.2 kB / 0.5962 GB, free: 9.133 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.938e-05/0.5246, allocations: 150.2 kB / 0.5964 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.5246, allocations: 0 / 0.5964 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.5248, allocations: 160.9 kB / 0.5965 GB, free: 8.922 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 1.543e-06/0.5248, allocations: 0 / 0.5965 GB, free: 8.922 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0008291/0.5256, allocations: 0.5828 MB / 0.5971 GB, free: 8.453 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/0.5257, allocations: 107.3 kB / 0.5972 GB, free: 8.344 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.387e-05/0.5258, allocations: 115.5 kB / 0.5973 GB, free: 8.234 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.5258, allocations: 48.31 kB / 0.5974 GB, free: 8.184 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.517e-05/0.5259, allocations: 85.45 kB / 0.5974 GB, free: 8.098 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.526, allocations: 126.4 kB / 0.5976 GB, free: 8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.526, allocations: 0 / 0.5976 GB, free: 8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.5261, allocations: 348 kB / 0.5979 GB, free: 7.664 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.5263, allocations: 160.7 kB / 0.598 GB, free: 7.543 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.5267, allocations: 0.503 MB / 0.5985 GB, free: 6.934 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.5271, allocations: 251.4 kB / 0.5988 GB, free: 6.727 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.5271, allocations: 4 kB / 0.5988 GB, free: 6.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008764/0.528, allocations: 0.6368 MB / 0.5994 GB, free: 6.164 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.528, allocations: 8.938 kB / 0.5994 GB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.528, allocations: 12 kB / 0.5994 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.5281, allocations: 20 kB / 0.5994 GB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003557/0.5284, allocations: 119 kB / 0.5995 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.5285, allocations: 23.92 kB / 0.5996 GB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.5287, allocations: 46.75 kB / 0.5996 GB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.5287, allocations: 42.5 kB / 0.5997 GB, free: 5.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.000176/0.5289, allocations: 202.7 kB / 0.5999 GB, free: 5.715 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007617/0.5297, allocations: 0.5741 MB / 0.6004 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.5297, allocations: 7.812 kB / 0.6004 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.5297, allocations: 9.969 kB / 0.6004 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.5297, allocations: 0 / 0.6004 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.5298, allocations: 0 / 0.6004 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.5298, allocations: 3.938 kB / 0.6004 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.5299, allocations: 150.4 kB / 0.6006 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.5299, allocations: 7.984 kB / 0.6006 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-06/0.5299, allocations: 3 kB / 0.6006 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.5299, allocations: 0 / 0.6006 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.53, allocations: 7.938 kB / 0.6006 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.53, allocations: 0 / 0.6006 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.53, allocations: 0 / 0.6006 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008679/0.5308, allocations: 0.6043 MB / 0.6012 GB, free: 4.527 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.5309, allocations: 100.6 kB / 0.6013 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.5309, allocations: 12.02 kB / 0.6013 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.26e-05/0.5309, allocations: 0 / 0.6013 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-05/0.531, allocations: 0 / 0.6013 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.531, allocations: 0 / 0.6013 GB, free: 4.402 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.798e-05/0.531, allocations: 83.22 kB / 0.6014 GB, free: 4.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.531, allocations: 0 / 0.6014 GB, free: 4.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005696/0.5316, allocations: 91.91 kB / 0.6015 GB, free: 4.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001792/0.5334, allocations: 1.511 MB / 0.6029 GB, free: 2.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.5339, allocations: 428.8 kB / 0.6033 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.534, allocations: 1.312 kB / 0.6033 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.5341, allocations: 157.8 kB / 0.6035 GB, free: 2.496 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.883e-05/0.5342, allocations: 1.625 kB / 0.6035 GB, free: 2.496 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008594/0.535, allocations: 480.4 kB / 0.604 GB, free: 2.031 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.5354, allocations: 0.7338 MB / 0.6047 GB, free: 1.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.409e-05/0.5355, allocations: 43.38 kB / 0.6047 GB, free: 1.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.5356, allocations: 56.48 kB / 0.6048 GB, free: 1.195 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5356, allocations: 0 / 0.6048 GB, free: 1.195 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0257/0.5613, allocations: 4.739 MB / 0.6094 GB, free: 12.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002454/0.5616, allocations: 172.4 kB / 0.6096 GB, free: 12.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.258, allocations: 0 / 0.6096 GB, free: 12.27 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat