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.001778/0.001779, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009502/0.0009501, allocations: 100.5 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4478/0.4478, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003353, allocations: 8.219 kB / 468.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4682/0.4686, allocations: 63.24 MB / 0.5193 GB, free: 43.36 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.6023, allocations: 87.6 MB / 0.6048 GB, free: 1.922 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.6026, allocations: 63.94 kB / 0.6049 GB, free: 1.863 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01452/0.6172, allocations: 5.795 MB / 0.6105 GB, free: 12.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.6173, allocations: 0 / 0.6105 GB, free: 12.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.6173, allocations: 5.469 kB / 0.6105 GB, free: 12.07 MB / 426.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.0009768/0.6183, allocations: 484 kB / 0.611 GB, free: 11.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.504e-05/0.6184, allocations: 8.031 kB / 0.611 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000299/0.6187, allocations: 158.5 kB / 0.6112 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.6188, allocations: 35.53 kB / 0.6112 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.6191, allocations: 187.3 kB / 0.6114 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.787e-05/0.6192, allocations: 25.28 kB / 0.6114 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.827e-05/0.6193, allocations: 40 kB / 0.6114 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005443/0.6198, allocations: 303.4 kB / 0.6117 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.718e-05/0.6199, allocations: 0 / 0.6117 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.6199, allocations: 12.75 kB / 0.6117 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.6199, allocations: 4 kB / 0.6117 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.6203, allocations: 219.9 kB / 0.612 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.6217, allocations: 0.6377 MB / 0.6126 GB, free: 9.852 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.622, allocations: 191.1 kB / 0.6128 GB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.6221, allocations: 4 kB / 0.6128 GB, free: 9.652 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.6224, allocations: 178.6 kB / 0.6129 GB, free: 9.469 MB / 426.7 MB Notification: Performance of pre-optimization done (n=60): time 1.654e-06/0.6224, allocations: 3.938 kB / 0.6129 GB, free: 9.465 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001593/0.624, allocations: 0.938 MB / 0.6139 GB, free: 8.504 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.6241, allocations: 108 kB / 0.614 GB, free: 8.387 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.419e-05/0.6242, allocations: 112.8 kB / 0.6141 GB, free: 8.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.85e-05/0.6243, allocations: 73.69 kB / 0.6141 GB, free: 8.191 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.6245, allocations: 145.4 kB / 0.6143 GB, free: 8.043 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.6247, allocations: 209.3 kB / 0.6145 GB, free: 7.836 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.6248, allocations: 24 kB / 0.6145 GB, free: 7.812 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.625, allocations: 350.8 kB / 0.6148 GB, free: 7.461 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.6255, allocations: 302.1 kB / 0.6151 GB, free: 7.168 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008207/0.6263, allocations: 0.6557 MB / 0.6158 GB, free: 6.348 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004593/0.6309, allocations: 5.736 MB / 0.6214 GB, free: 15.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.6309, allocations: 0 / 0.6214 GB, free: 15.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001213/0.6322, allocations: 0.7623 MB / 0.6221 GB, free: 14.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.6322, allocations: 12 kB / 0.6221 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.6322, allocations: 15.94 kB / 0.6221 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.615e-05/0.6323, allocations: 16 kB / 0.6221 GB, free: 14.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.6327, allocations: 124.4 kB / 0.6223 GB, free: 14.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.441e-05/0.6327, allocations: 31.86 kB / 0.6223 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.633, allocations: 71.28 kB / 0.6224 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.246e-05/0.633, allocations: 44 kB / 0.6224 GB, free: 14.38 MB / 442.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 () * Number of clocked 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.0005707/0.6336, allocations: 482.4 kB / 0.6229 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.6337, allocations: 15.8 kB / 0.6229 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.6337, allocations: 17.86 kB / 0.6229 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.6337, allocations: 0 / 0.6229 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.6337, allocations: 0 / 0.6229 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.6337, allocations: 0 / 0.6229 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.6353, allocations: 0.9954 MB / 0.6239 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.6353, allocations: 4 kB / 0.6239 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.067e-05/0.6353, allocations: 8 kB / 0.6239 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.6353, allocations: 0 / 0.6239 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.6354, allocations: 4 kB / 0.6239 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.6354, allocations: 8 kB / 0.6239 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6354, allocations: 0 / 0.6239 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.6366, allocations: 0.7509 MB / 0.6246 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.841e-05/0.6367, allocations: 100.8 kB / 0.6247 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.6367, allocations: 0 / 0.6247 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.632e-05/0.6368, allocations: 0 / 0.6247 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.484e-05/0.6368, allocations: 11.97 kB / 0.6247 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.6368, allocations: 4 kB / 0.6247 GB, free: 11.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.718e-05/0.6369, allocations: 79.28 kB / 0.6248 GB, free: 11.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6369, allocations: 0 / 0.6248 GB, free: 11.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008709/0.6378, allocations: 167.6 kB / 0.625 GB, free: 11.66 MB / 442.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 () * Number of clocked 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.002274/0.6401, allocations: 1.647 MB / 0.6266 GB, free: 10.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.6413, allocations: 0.5666 MB / 0.6271 GB, free: 9.453 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6413, allocations: 1.812 kB / 0.6271 GB, free: 9.453 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.6415, allocations: 168.5 kB / 0.6273 GB, free: 9.285 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.6417, allocations: 8 kB / 0.6273 GB, free: 9.277 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006553/0.6483, allocations: 10.22 MB / 0.6373 GB, free: 14.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.6488, allocations: 0.7857 MB / 0.6381 GB, free: 13.95 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.6489, allocations: 56.33 kB / 0.6381 GB, free: 13.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.6491, allocations: 91.41 kB / 0.6382 GB, free: 13.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6491, allocations: 0 / 0.6382 GB, free: 13.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.6681, allocations: 6.293 MB / 0.6443 GB, free: 7.656 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.6683, allocations: 210.2 kB / 0.6445 GB, free: 7.422 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.499, allocations: 0 / 0.6445 GB, free: 7.422 MB / 458.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