Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 96.41 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5248/0.5248, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006518/0.0006519, allocations: 16 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1403, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4803/0.6207, allocations: 85.34 MB / 0.5622 GB, free: 1.316 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.621, allocations: 63.97 kB / 0.5622 GB, free: 1.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01927/0.6403, allocations: 5.029 MB / 0.5671 GB, free: 12.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6404, allocations: 0 / 0.5671 GB, free: 12.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.6404, allocations: 8 kB / 0.5672 GB, free: 12.25 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.0007261/0.6411, allocations: 483.9 kB / 0.5676 GB, free: 11.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.6412, allocations: 8.031 kB / 0.5676 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000215/0.6414, allocations: 145.8 kB / 0.5678 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.539e-05/0.6415, allocations: 38.97 kB / 0.5678 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.6417, allocations: 186.8 kB / 0.568 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.373e-05/0.6417, allocations: 28.44 kB / 0.568 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.6418, allocations: 44 kB / 0.568 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006521/0.6425, allocations: 302.1 kB / 0.5683 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.6425, allocations: 4 kB / 0.5683 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.6426, allocations: 8 kB / 0.5683 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.6426, allocations: 9.031 kB / 0.5684 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.643, allocations: 206.2 kB / 0.5686 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.6445, allocations: 0.6397 MB / 0.5692 GB, free: 10.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.6448, allocations: 195.1 kB / 0.5694 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.6449, allocations: 0 / 0.5694 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.6452, allocations: 182.6 kB / 0.5695 GB, free: 9.645 MB / 394.7 MB Notification: Performance of pre-optimization done (n=60): time 5.29e-06/0.6452, allocations: 4 kB / 0.5695 GB, free: 9.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=60): time 0.001874/0.6471, allocations: 0.938 MB / 0.5705 GB, free: 8.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.6472, allocations: 108 kB / 0.5706 GB, free: 8.562 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.462e-05/0.6473, allocations: 112.8 kB / 0.5707 GB, free: 8.445 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.6475, allocations: 69.67 kB / 0.5707 GB, free: 8.371 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.6477, allocations: 219.8 kB / 0.5709 GB, free: 8.156 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.6479, allocations: 213.3 kB / 0.5711 GB, free: 7.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-05/0.648, allocations: 24 kB / 0.5712 GB, free: 7.922 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.6482, allocations: 354.8 kB / 0.5715 GB, free: 7.566 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007763/0.649, allocations: 298.1 kB / 0.5718 GB, free: 7.277 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.6501, allocations: 0.6553 MB / 0.5724 GB, free: 6.453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005569/0.6557, allocations: 5.734 MB / 0.578 GB, free: 15.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.322e-05/0.6558, allocations: 4 kB / 0.578 GB, free: 15.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001975/0.6578, allocations: 0.7628 MB / 0.5788 GB, free: 14.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.6578, allocations: 9 kB / 0.5788 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.6579, allocations: 12 kB / 0.5788 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.915e-05/0.6579, allocations: 27.98 kB / 0.5788 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006975/0.6586, allocations: 123.7 kB / 0.5789 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.935e-05/0.6587, allocations: 23.92 kB / 0.579 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.659, allocations: 75.28 kB / 0.579 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.932e-05/0.6591, allocations: 36 kB / 0.5791 GB, free: 14.5 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 () * 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.0008008/0.6599, allocations: 493.6 kB / 0.5795 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.66, allocations: 15.81 kB / 0.5796 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.815e-05/0.66, allocations: 9.875 kB / 0.5796 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.66, allocations: 0 / 0.5796 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6601, allocations: 0 / 0.5796 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.6601, allocations: 4 kB / 0.5796 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.6619, allocations: 0.9916 MB / 0.5805 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.6619, allocations: 0.75 kB / 0.5805 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/0.662, allocations: 12 kB / 0.5806 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.662, allocations: 0 / 0.5806 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.662, allocations: 0 / 0.5806 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.6621, allocations: 3.938 kB / 0.5806 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6621, allocations: 0 / 0.5806 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.6635, allocations: 0.7548 MB / 0.5813 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-05/0.6636, allocations: 100.8 kB / 0.5814 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.6636, allocations: 3.938 kB / 0.5814 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.6637, allocations: 12 kB / 0.5814 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.6638, allocations: 0 / 0.5814 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.6638, allocations: 4 kB / 0.5814 GB, free: 12.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.778e-05/0.6638, allocations: 75.28 kB / 0.5815 GB, free: 11.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6638, allocations: 0 / 0.5815 GB, free: 11.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001016/0.6649, allocations: 163.7 kB / 0.5816 GB, free: 11.79 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 () * 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.002931/0.6678, allocations: 1.653 MB / 0.5833 GB, free: 10.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.6699, allocations: 0.5603 MB / 0.5838 GB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.6699, allocations: 0 / 0.5838 GB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002669/0.6702, allocations: 184.4 kB / 0.584 GB, free: 9.418 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.6704, allocations: 4 kB / 0.584 GB, free: 9.414 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008111/0.6785, allocations: 10.26 MB / 0.594 GB, free: 14.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.6791, allocations: 0.7818 MB / 0.5948 GB, free: 14.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.6794, allocations: 101 kB / 0.5949 GB, free: 13.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6794, allocations: 0 / 0.5949 GB, free: 13.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.027/3.706, allocations: 5.661 MB / 0.6004 GB, free: 8.277 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat