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.001399/0.001399, allocations: 177.9 kB / 17.06 MB, free: 5.098 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.542/1.542, allocations: 223.2 MB / 241 MB, free: 10.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000991/0.000991, allocations: 89.08 kB / 292.1 MB, free: 10.64 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.385/0.385, allocations: 44.21 MB / 387.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.00033, allocations: 11.98 kB / 460 MB, free: 1.367 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3507, allocations: 61.9 MB / 0.5096 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1176/0.4684, allocations: 86.56 MB / 0.5942 GB, free: 8.398 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4686, allocations: 71.91 kB / 0.5942 GB, free: 8.336 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01297/0.4816, allocations: 5.793 MB / 0.5999 GB, free: 2.535 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4817, allocations: 0 / 0.5999 GB, free: 2.535 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.4817, allocations: 4 kB / 0.5999 GB, free: 2.531 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.000459/0.4821, allocations: 484 kB / 0.6004 GB, free: 2.012 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4822, allocations: 12.03 kB / 0.6004 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.4823, allocations: 145.8 kB / 0.6005 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.405e-05/0.4824, allocations: 35.56 kB / 0.6005 GB, free: 1.812 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.4825, allocations: 190.8 kB / 0.6007 GB, free: 1.586 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.4826, allocations: 28.44 kB / 0.6007 GB, free: 1.559 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.4826, allocations: 39.95 kB / 0.6008 GB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.483, allocations: 302.6 kB / 0.6011 GB, free: 1.219 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.483, allocations: 3.938 kB / 0.6011 GB, free: 1.215 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.483, allocations: 4 kB / 0.6011 GB, free: 1.211 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.4831, allocations: 8 kB / 0.6011 GB, free: 1.203 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.4833, allocations: 214.2 kB / 0.6013 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008544/0.4842, allocations: 0.6396 MB / 0.6019 GB, free: 308 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.4844, allocations: 195.1 kB / 0.6021 GB, free: 100 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.265e-06/0.4844, allocations: 0 / 0.6021 GB, free: 100 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.4846, allocations: 178.8 kB / 0.6023 GB, free: 15.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=60): time 1.343e-06/0.4846, allocations: 0 / 0.6023 GB, free: 15.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001212/0.4859, allocations: 0.9456 MB / 0.6032 GB, free: 14.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.4859, allocations: 103.9 kB / 0.6033 GB, free: 14.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.152e-05/0.486, allocations: 120.8 kB / 0.6034 GB, free: 14.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.4861, allocations: 69.62 kB / 0.6035 GB, free: 14.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/0.4862, allocations: 149.4 kB / 0.6036 GB, free: 14.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.4863, allocations: 205.3 kB / 0.6038 GB, free: 14.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.4864, allocations: 28 kB / 0.6038 GB, free: 14.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4865, allocations: 346.8 kB / 0.6042 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/0.4869, allocations: 302.1 kB / 0.6045 GB, free: 13.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006343/0.4876, allocations: 0.6557 MB / 0.6051 GB, free: 12.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.491, allocations: 5.736 MB / 0.6107 GB, free: 5.898 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.4911, allocations: 4 kB / 0.6107 GB, free: 5.895 MB / 426.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001061/0.4921, allocations: 0.7622 MB / 0.6115 GB, free: 5.125 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.4922, allocations: 12 kB / 0.6115 GB, free: 5.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.4922, allocations: 12 kB / 0.6115 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.4922, allocations: 20.75 kB / 0.6115 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.4926, allocations: 123.7 kB / 0.6116 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.603e-05/0.4926, allocations: 31.86 kB / 0.6116 GB, free: 4.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.4928, allocations: 63.38 kB / 0.6117 GB, free: 4.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.4929, allocations: 48 kB / 0.6118 GB, free: 4.82 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 () * 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.0005169/0.4934, allocations: 479.3 kB / 0.6122 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.948e-05/0.4934, allocations: 19.67 kB / 0.6122 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.4935, allocations: 17.86 kB / 0.6122 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4935, allocations: 0 / 0.6122 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4935, allocations: 0 / 0.6122 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4935, allocations: 0 / 0.6122 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.4947, allocations: 0.9916 MB / 0.6132 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4947, allocations: 4 kB / 0.6132 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.747e-05/0.4947, allocations: 7.938 kB / 0.6132 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4947, allocations: 3.984 kB / 0.6132 GB, free: 3.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.4947, allocations: 8 kB / 0.6132 GB, free: 3.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4947, allocations: 0 / 0.6132 GB, free: 3.242 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4948, allocations: 4.141 kB / 0.6132 GB, free: 3.238 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008809/0.4956, allocations: 0.7471 MB / 0.614 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.4957, allocations: 104.7 kB / 0.6141 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.4957, allocations: 0 / 0.6141 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-05/0.4958, allocations: 0 / 0.6141 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.4958, allocations: 11.98 kB / 0.6141 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.4958, allocations: 4 kB / 0.6141 GB, free: 2.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.542e-05/0.4959, allocations: 79.28 kB / 0.6142 GB, free: 2.262 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4959, allocations: 0 / 0.6142 GB, free: 2.262 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006643/0.4965, allocations: 163.7 kB / 0.6143 GB, free: 2.102 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 () * 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.001812/0.4983, allocations: 1.662 MB / 0.6159 GB, free: 464 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.4993, allocations: 0.5664 MB / 0.6165 GB, free: 15.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4994, allocations: 2 kB / 0.6165 GB, free: 15.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.4995, allocations: 168.5 kB / 0.6167 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.4996, allocations: 4 kB / 0.6167 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005232/0.5049, allocations: 10.22 MB / 0.6266 GB, free: 5.195 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.5053, allocations: 0.7896 MB / 0.6274 GB, free: 4.379 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.5054, allocations: 52.33 kB / 0.6275 GB, free: 4.332 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.5055, allocations: 95.41 kB / 0.6275 GB, free: 4.238 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5056, allocations: 3.938 kB / 0.6276 GB, free: 4.234 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.5232, allocations: 6.274 MB / 0.6337 GB, free: 14.06 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.5235, allocations: 226 kB / 0.6339 GB, free: 13.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.885/2.409, allocations: 3.938 kB / 0.6339 GB, free: 13.81 MB / 458.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