Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers",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.001809/0.001809, allocations: 181.6 kB / 14.15 MB, free: 1.164 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.634/1.634, allocations: 221.3 MB / 236 MB, free: 2.934 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.0009458/0.0009458, allocations: 99.48 kB / 287 MB, free: 204 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2399/0.2399, allocations: 44.14 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.606e-05/5.608e-05, allocations: 4.219 kB / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1559, allocations: 61.9 MB / 0.5018 GB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4635/0.6194, allocations: 86.48 MB / 0.5862 GB, free: 2.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.6196, allocations: 59.97 kB / 0.5863 GB, free: 2.758 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01329/0.6329, allocations: 5.771 MB / 0.5919 GB, free: 13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6329, allocations: 0 / 0.5919 GB, free: 13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.633, allocations: 4 kB / 0.5919 GB, free: 13 MB / 410.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.0004854/0.6335, allocations: 485.2 kB / 0.5924 GB, free: 12.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.6335, allocations: 12.02 kB / 0.5924 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001483/0.6337, allocations: 149.8 kB / 0.5926 GB, free: 12.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.839e-05/0.6337, allocations: 35.53 kB / 0.5926 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.6339, allocations: 182.8 kB / 0.5928 GB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.6339, allocations: 32.44 kB / 0.5928 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.634, allocations: 43.89 kB / 0.5928 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.6344, allocations: 290.6 kB / 0.5931 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.6345, allocations: 4 kB / 0.5931 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.6345, allocations: 15.98 kB / 0.5931 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.6345, allocations: 4 kB / 0.5931 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.6348, allocations: 202.2 kB / 0.5933 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009688/0.6358, allocations: 0.6435 MB / 0.594 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.636, allocations: 189.3 kB / 0.5941 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.6362, allocations: 185.9 kB / 0.5943 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.6362, allocations: 0 / 0.5943 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.6364, allocations: 178.7 kB / 0.5945 GB, free: 10.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=60): time 1.703e-06/0.6364, allocations: 7.938 kB / 0.5945 GB, free: 10.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.0009678/0.6374, allocations: 0.6402 MB / 0.5951 GB, free: 9.547 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.6375, allocations: 108 kB / 0.5952 GB, free: 9.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.72e-05/0.6375, allocations: 112.8 kB / 0.5953 GB, free: 9.312 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.584e-05/0.6376, allocations: 69.67 kB / 0.5954 GB, free: 9.238 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/0.6377, allocations: 149.4 kB / 0.5955 GB, free: 9.086 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.6379, allocations: 205.3 kB / 0.5957 GB, free: 8.883 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.6379, allocations: 28 kB / 0.5958 GB, free: 8.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.6381, allocations: 350.8 kB / 0.5961 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.6386, allocations: 294.2 kB / 0.5964 GB, free: 8.219 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000706/0.6393, allocations: 0.6402 MB / 0.597 GB, free: 7.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004223/0.6435, allocations: 5.737 MB / 0.6026 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-05/0.6436, allocations: 3.953 kB / 0.6026 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001398/0.645, allocations: 0.7555 MB / 0.6033 GB, free: 15.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.645, allocations: 12 kB / 0.6034 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.6451, allocations: 16.12 kB / 0.6034 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-05/0.6451, allocations: 16 kB / 0.6034 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.6455, allocations: 131.7 kB / 0.6035 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.716e-05/0.6456, allocations: 23.92 kB / 0.6035 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.6459, allocations: 71.28 kB / 0.6036 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.476e-05/0.646, allocations: 40 kB / 0.6036 GB, free: 15.45 MB / 426.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.0006575/0.6467, allocations: 440.2 kB / 0.6041 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.6467, allocations: 15.77 kB / 0.6041 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.816e-05/0.6468, allocations: 5.875 kB / 0.6041 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.6468, allocations: 0 / 0.6041 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.6468, allocations: 0 / 0.6041 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.6468, allocations: 0 / 0.6041 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.6484, allocations: 1.003 MB / 0.6051 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.6484, allocations: 0 / 0.6051 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.305e-05/0.6485, allocations: 12 kB / 0.6051 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.6485, allocations: 0 / 0.6051 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.6485, allocations: 0 / 0.6051 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.6485, allocations: 0 / 0.6051 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6485, allocations: 0 / 0.6051 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.6496, allocations: 0.7509 MB / 0.6058 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.149e-05/0.6497, allocations: 104.8 kB / 0.6059 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.6497, allocations: 4 kB / 0.6059 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.059e-05/0.6498, allocations: 4 kB / 0.6059 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.6498, allocations: 4 kB / 0.6059 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.6498, allocations: 0 / 0.6059 GB, free: 13.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.342e-05/0.6498, allocations: 79.28 kB / 0.606 GB, free: 12.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6499, allocations: 3.938 kB / 0.606 GB, free: 12.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007754/0.6506, allocations: 167.7 kB / 0.6062 GB, free: 12.78 MB / 426.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.002127/0.6528, allocations: 1.654 MB / 0.6078 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.654, allocations: 0.5564 MB / 0.6083 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.654, allocations: 4.812 kB / 0.6083 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.6542, allocations: 176.8 kB / 0.6085 GB, free: 10.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.6543, allocations: 8 kB / 0.6085 GB, free: 10.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.6556, allocations: 0.6907 MB / 0.6092 GB, free: 9.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.656, allocations: 0.7933 MB / 0.6099 GB, free: 8.859 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.6562, allocations: 52.27 kB / 0.61 GB, free: 8.809 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.6563, allocations: 103.4 kB / 0.6101 GB, free: 8.707 MB / 426.7 MB Notification: Performance of SimCode: time 3.71e-07/0.6563, allocations: 0 / 0.6101 GB, free: 8.707 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.6797, allocations: 6.43 MB / 0.6164 GB, free: 2.344 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/0.68, allocations: 196.1 kB / 0.6166 GB, free: 2.113 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/2.633, allocations: 0 / 0.6166 GB, free: 2.113 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat