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.001646/0.001646, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.127/2.127, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001205/0.001205, allocations: 90.62 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3334/0.3334, allocations: 43.5 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.546e-05/3.56e-05, allocations: 4 kB / 425.4 MB, free: 23.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1403, allocations: 58.86 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5089/0.6493, allocations: 85.25 MB / 0.5561 GB, free: 1.953 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.6495, allocations: 66.5 kB / 0.5562 GB, free: 1.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0185/0.6681, allocations: 5.003 MB / 0.5611 GB, free: 13.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.6681, allocations: 0 / 0.5611 GB, free: 13.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.6681, allocations: 4 kB / 0.5611 GB, free: 13.63 MB / 378.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.0009621/0.6691, allocations: 484.4 kB / 0.5616 GB, free: 13.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.6692, allocations: 8.031 kB / 0.5616 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.6694, allocations: 140 kB / 0.5617 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.6695, allocations: 39.53 kB / 0.5617 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.6696, allocations: 194.7 kB / 0.5619 GB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.6697, allocations: 31.06 kB / 0.562 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.591e-05/0.6698, allocations: 42.69 kB / 0.562 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/0.6704, allocations: 295.7 kB / 0.5623 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.6705, allocations: 0 / 0.5623 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.6705, allocations: 7.125 kB / 0.5623 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.6705, allocations: 11.94 kB / 0.5623 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.671, allocations: 201 kB / 0.5625 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.6725, allocations: 0.6357 MB / 0.5631 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00032/0.6728, allocations: 194.8 kB / 0.5633 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.6731, allocations: 189 kB / 0.5635 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.6731, allocations: 7.984 kB / 0.5635 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.6734, allocations: 174.1 kB / 0.5637 GB, free: 11.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 2.965e-06/0.6734, allocations: 0 / 0.5637 GB, free: 11.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=60): time 0.001462/0.6749, allocations: 0.6374 MB / 0.5643 GB, free: 10.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.675, allocations: 106.1 kB / 0.5644 GB, free: 10.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.6751, allocations: 114.3 kB / 0.5645 GB, free: 10.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.6753, allocations: 74 kB / 0.5646 GB, free: 10.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.6755, allocations: 220.8 kB / 0.5648 GB, free: 10.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.6757, allocations: 209.9 kB / 0.565 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.6758, allocations: 26.56 kB / 0.565 GB, free: 10.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.676, allocations: 350.8 kB / 0.5653 GB, free: 9.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007922/0.6768, allocations: 289.8 kB / 0.5656 GB, free: 9.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.6778, allocations: 0.6442 MB / 0.5662 GB, free: 8.852 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005971/0.6838, allocations: 5.737 MB / 0.5718 GB, free: 2.129 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-05/0.6839, allocations: 4 kB / 0.5718 GB, free: 2.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001884/0.6858, allocations: 0.7488 MB / 0.5726 GB, free: 1.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.6858, allocations: 8 kB / 0.5726 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.6859, allocations: 12 kB / 0.5726 GB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.499e-05/0.6859, allocations: 20 kB / 0.5726 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007568/0.6867, allocations: 123 kB / 0.5727 GB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-05/0.6868, allocations: 27.92 kB / 0.5728 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.6873, allocations: 70.19 kB / 0.5728 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.61e-05/0.6874, allocations: 47.52 kB / 0.5729 GB, free: 1.219 MB / 378.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.0006745/0.6881, allocations: 444 kB / 0.5733 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.6881, allocations: 7.812 kB / 0.5733 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.6882, allocations: 9.438 kB / 0.5733 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.6882, allocations: 7.984 kB / 0.5733 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6882, allocations: 0 / 0.5733 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6882, allocations: 4 kB / 0.5733 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.6899, allocations: 0.9869 MB / 0.5743 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.383e-06/0.69, allocations: 4 kB / 0.5743 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.043e-05/0.69, allocations: 4 kB / 0.5743 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.69, allocations: 0 / 0.5743 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.6901, allocations: 6.688 kB / 0.5743 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.6901, allocations: 0 / 0.5743 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6901, allocations: 0 / 0.5743 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.6914, allocations: 0.7602 MB / 0.575 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.6915, allocations: 104.7 kB / 0.5751 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.6915, allocations: 0 / 0.5751 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.833e-05/0.6916, allocations: 7.438 kB / 0.5751 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-05/0.6917, allocations: 0 / 0.5751 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.6917, allocations: 7.984 kB / 0.5751 GB, free: 15.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.803e-05/0.6917, allocations: 75.28 kB / 0.5752 GB, free: 15.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6917, allocations: 4 kB / 0.5752 GB, free: 15.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009469/0.6927, allocations: 163.7 kB / 0.5754 GB, free: 14.88 MB / 394.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.002637/0.6953, allocations: 1.64 MB / 0.577 GB, free: 13.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.6973, allocations: 0.5569 MB / 0.5775 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6974, allocations: 0 / 0.5775 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.6976, allocations: 179.7 kB / 0.5777 GB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.6978, allocations: 4 kB / 0.5777 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.6996, allocations: 0.7539 MB / 0.5784 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.7001, allocations: 0.7854 MB / 0.5792 GB, free: 11.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.7003, allocations: 95.59 kB / 0.5793 GB, free: 11.3 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7003, allocations: 0 / 0.5793 GB, free: 11.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.921/3.621, allocations: 5.876 MB / 0.585 GB, free: 5.422 MB / 394.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