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.001001/0.001001, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008098/0.0008098, allocations: 87.83 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1759/0.1759, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.624e-05, allocations: 4 kB / 460.5 MB, free: 69.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09121/0.09125, allocations: 63.25 MB / 0.5115 GB, free: 6.719 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3395/0.4308, allocations: 87.53 MB / 0.5969 GB, free: 6.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4311, allocations: 59.66 kB / 0.597 GB, free: 6.336 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01251/0.4436, allocations: 5.776 MB / 0.6026 GB, free: 1.379 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4436, allocations: 0 / 0.6026 GB, free: 1.379 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.4436, allocations: 4 kB / 0.6026 GB, free: 1.375 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.0003969/0.444, allocations: 477.6 kB / 0.6031 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.4441, allocations: 11.97 kB / 0.6031 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.4442, allocations: 149.7 kB / 0.6032 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.4443, allocations: 35.53 kB / 0.6033 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.534e-05/0.4444, allocations: 190.7 kB / 0.6035 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.4444, allocations: 29.75 kB / 0.6035 GB, free: 464 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.4445, allocations: 45.5 kB / 0.6035 GB, free: 432 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.4448, allocations: 290.6 kB / 0.6038 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.4448, allocations: 0 / 0.6038 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.4448, allocations: 10.75 kB / 0.6038 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.4448, allocations: 12 kB / 0.6038 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.4451, allocations: 210.5 kB / 0.604 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008008/0.4459, allocations: 0.6357 MB / 0.6047 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.446, allocations: 191.9 kB / 0.6048 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.4462, allocations: 178 kB / 0.605 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.876e-06/0.4462, allocations: 0 / 0.605 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.4463, allocations: 184.2 kB / 0.6052 GB, free: 15.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=60): time 2.695e-06/0.4463, allocations: 11.86 kB / 0.6052 GB, free: 15.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.0008149/0.4472, allocations: 0.6363 MB / 0.6058 GB, free: 14.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.4472, allocations: 111.2 kB / 0.6059 GB, free: 14.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.771e-05/0.4473, allocations: 108.6 kB / 0.606 GB, free: 14.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.4474, allocations: 75.3 kB / 0.6061 GB, free: 14.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.4474, allocations: 143.3 kB / 0.6062 GB, free: 14.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.4476, allocations: 207.9 kB / 0.6064 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.4476, allocations: 24 kB / 0.6065 GB, free: 13.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4477, allocations: 351.6 kB / 0.6068 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.4481, allocations: 291.2 kB / 0.6071 GB, free: 13.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.4486, allocations: 0.6429 MB / 0.6077 GB, free: 12.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.4517, allocations: 5.735 MB / 0.6133 GB, free: 5.938 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4517, allocations: 4 kB / 0.6133 GB, free: 5.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0009315/0.4527, allocations: 0.7499 MB / 0.614 GB, free: 5.301 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.4527, allocations: 8.938 kB / 0.614 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.4527, allocations: 12 kB / 0.6141 GB, free: 5.281 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.4527, allocations: 20 kB / 0.6141 GB, free: 5.262 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.4531, allocations: 130.5 kB / 0.6142 GB, free: 5.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.659e-05/0.4531, allocations: 27.86 kB / 0.6142 GB, free: 5.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.4533, allocations: 68.22 kB / 0.6143 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.4534, allocations: 43.08 kB / 0.6143 GB, free: 5.023 MB / 410.7 MB Warning: The initial conditions are over specified. The following 47 initial equations are redundant, so they are removed from the initialization sytem: $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]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 108 ($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],$whenCondition1,result,$PRE.$outputAlias_result,$outputAlias_result,$PRE.$outputAlias_r2,$outputAlias_r2,$PRE.$outputAlias_r4a,$outputAlias_r4a,$PRE.$outputAlias_r4b,$outputAlias_r4b,$PRE.$outputAlias_r4c,$outputAlias_r4c,$PRE.$outputAlias_r33,$outputAlias_r33) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0003738/0.4538, allocations: 442.8 kB / 0.6148 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.4538, allocations: 15.81 kB / 0.6148 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.359e-05/0.4538, allocations: 9 kB / 0.6148 GB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.4538, allocations: 4 kB / 0.6148 GB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4538, allocations: 0 / 0.6148 GB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4538, allocations: 0 / 0.6148 GB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4549, allocations: 0.994 MB / 0.6158 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4549, allocations: 0 / 0.6158 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/0.4549, allocations: 11.98 kB / 0.6158 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4549, allocations: 4 kB / 0.6158 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.4549, allocations: 4 kB / 0.6158 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.455, allocations: 0 / 0.6158 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.455, allocations: 0 / 0.6158 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008043/0.4558, allocations: 0.7414 MB / 0.6165 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.4558, allocations: 100.8 kB / 0.6166 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.4558, allocations: 7.422 kB / 0.6166 GB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.932e-05/0.4559, allocations: 3.938 kB / 0.6166 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.4559, allocations: 11.98 kB / 0.6166 GB, free: 2.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.4559, allocations: 4 kB / 0.6166 GB, free: 2.906 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.151e-05/0.456, allocations: 75.28 kB / 0.6167 GB, free: 2.832 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.456, allocations: 0 / 0.6167 GB, free: 2.832 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005562/0.4565, allocations: 179.2 kB / 0.6169 GB, free: 2.68 MB / 410.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: 55 ($whenCondition1,result,$outputAlias_result,$outputAlias_r2,$outputAlias_r4a,$outputAlias_r4b,$outputAlias_r4c,$outputAlias_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 (8): * Single equations (assignments): 7 * 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.001629/0.4582, allocations: 1.643 MB / 0.6185 GB, free: 1.242 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009398/0.4591, allocations: 0.5511 MB / 0.619 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4591, allocations: 0 / 0.619 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.4593, allocations: 173.2 kB / 0.6192 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.4594, allocations: 8.656 kB / 0.6192 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009338/0.4603, allocations: 0.7038 MB / 0.6199 GB, free: 12 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.4607, allocations: 0.7816 MB / 0.6206 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.819e-05/0.4608, allocations: 52.27 kB / 0.6207 GB, free: 15.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.4609, allocations: 96.41 kB / 0.6208 GB, free: 15.11 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4609, allocations: 4 kB / 0.6208 GB, free: 15.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.4777, allocations: 6.431 MB / 0.6271 GB, free: 8.785 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.478, allocations: 187.8 kB / 0.6272 GB, free: 8.562 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.147, allocations: 4 kB / 0.6272 GB, free: 8.559 MB / 426.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