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.001528/0.001528, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.234/2.234, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 91.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2983/0.2983, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.852e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.4507, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.6149, allocations: 84.6 MB / 0.5486 GB, free: 14.61 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.6152, allocations: 59.97 kB / 0.5487 GB, free: 14.55 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01942/0.6346, allocations: 5.015 MB / 0.5536 GB, free: 9.539 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.6347, allocations: 0 / 0.5536 GB, free: 9.539 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.6347, allocations: 4 kB / 0.5536 GB, free: 9.535 MB / 395.1 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.000698/0.6354, allocations: 479.6 kB / 0.554 GB, free: 9.023 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.6355, allocations: 8.031 kB / 0.554 GB, free: 9.016 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.072e-05/0.6355, allocations: 19.81 kB / 0.5541 GB, free: 8.996 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.6357, allocations: 182.8 kB / 0.5542 GB, free: 8.777 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.6357, allocations: 0 / 0.5542 GB, free: 8.777 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.6358, allocations: 12 kB / 0.5542 GB, free: 8.766 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001865/0.636, allocations: 96.41 kB / 0.5543 GB, free: 8.672 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.6362, allocations: 128.2 kB / 0.5545 GB, free: 8.539 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.6362, allocations: 0 / 0.5545 GB, free: 8.539 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.6363, allocations: 0 / 0.5545 GB, free: 8.539 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.6363, allocations: 3.984 kB / 0.5545 GB, free: 8.535 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.6365, allocations: 166.3 kB / 0.5546 GB, free: 8.336 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.6367, allocations: 174.9 kB / 0.5548 GB, free: 8.156 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.6369, allocations: 153.7 kB / 0.5549 GB, free: 8.004 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.971e-06/0.637, allocations: 0 / 0.5549 GB, free: 8.004 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.6372, allocations: 158 kB / 0.5551 GB, free: 7.84 MB / 395.1 MB Notification: Performance of pre-optimization done (n=54): time 1.864e-06/0.6373, allocations: 0 / 0.5551 GB, free: 7.84 MB / 395.1 MB Notification: Performance of matching and sorting (n=54): time 0.001368/0.6386, allocations: 0.5755 MB / 0.5556 GB, free: 7.254 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.6388, allocations: 103.8 kB / 0.5557 GB, free: 7.141 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.894e-05/0.6389, allocations: 120.8 kB / 0.5559 GB, free: 7.016 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.504e-05/0.639, allocations: 53.67 kB / 0.5559 GB, free: 6.957 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.001e-05/0.6391, allocations: 155.9 kB / 0.5561 GB, free: 6.805 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.6392, allocations: 126.5 kB / 0.5562 GB, free: 6.68 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.311e-05/0.6393, allocations: 0 / 0.5562 GB, free: 6.68 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.6395, allocations: 346.8 kB / 0.5565 GB, free: 6.332 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.6399, allocations: 162.5 kB / 0.5567 GB, free: 6.172 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007517/0.6407, allocations: 0.5024 MB / 0.5572 GB, free: 5.504 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.6413, allocations: 243.6 kB / 0.5574 GB, free: 5.266 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.6413, allocations: 4 kB / 0.5574 GB, free: 5.262 MB / 395.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001584/0.6429, allocations: 0.6297 MB / 0.558 GB, free: 4.625 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.643, allocations: 8 kB / 0.558 GB, free: 4.617 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.643, allocations: 12.84 kB / 0.558 GB, free: 4.605 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.759e-05/0.6431, allocations: 20 kB / 0.558 GB, free: 4.586 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000659/0.6437, allocations: 123.7 kB / 0.5582 GB, free: 4.465 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.208e-05/0.6438, allocations: 23.92 kB / 0.5582 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.6441, allocations: 47.38 kB / 0.5582 GB, free: 4.395 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.07e-05/0.6442, allocations: 44 kB / 0.5583 GB, free: 4.352 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($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],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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.000302/0.6445, allocations: 200.6 kB / 0.5585 GB, free: 4.148 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001286/0.6458, allocations: 0.5754 MB / 0.559 GB, free: 3.566 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.6459, allocations: 11.81 kB / 0.559 GB, free: 3.555 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.6459, allocations: 5.969 kB / 0.559 GB, free: 3.547 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.6459, allocations: 0 / 0.559 GB, free: 3.547 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.646, allocations: 0 / 0.559 GB, free: 3.547 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.646, allocations: 0 / 0.559 GB, free: 3.547 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.6461, allocations: 154.4 kB / 0.5592 GB, free: 3.355 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.6462, allocations: 7.984 kB / 0.5592 GB, free: 3.348 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.036e-05/0.6462, allocations: 0 / 0.5592 GB, free: 3.348 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.6462, allocations: 0 / 0.5592 GB, free: 3.348 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.6462, allocations: 4 kB / 0.5592 GB, free: 3.344 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.6462, allocations: 7.922 kB / 0.5592 GB, free: 3.336 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.6463, allocations: 4 kB / 0.5592 GB, free: 3.332 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.6476, allocations: 0.6031 MB / 0.5598 GB, free: 2.715 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-05/0.6477, allocations: 104.8 kB / 0.5599 GB, free: 2.594 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.6477, allocations: 32 / 0.5599 GB, free: 2.594 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.327e-05/0.6477, allocations: 4 kB / 0.5599 GB, free: 2.59 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.6478, allocations: 0 / 0.5599 GB, free: 2.59 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.6478, allocations: 4 kB / 0.5599 GB, free: 2.586 MB / 395.1 MB Notification: Performance of sorting global known variables: time 3.616e-05/0.6478, allocations: 75.28 kB / 0.56 GB, free: 2.512 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6478, allocations: 0 / 0.56 GB, free: 2.512 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0008319/0.6487, allocations: 91.92 kB / 0.5601 GB, free: 2.422 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,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 (2): * Single equations (assignments): 1 * 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.002692/0.6514, allocations: 1.497 MB / 0.5615 GB, free: 0.9062 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.6525, allocations: 424.9 kB / 0.5619 GB, free: 0.4922 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6525, allocations: 0 / 0.5619 GB, free: 0.4922 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.6527, allocations: 160.4 kB / 0.5621 GB, free: 344 kB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.6529, allocations: 4.938 kB / 0.5621 GB, free: 340 kB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.6542, allocations: 0.5158 MB / 0.5626 GB, free: 15.77 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.6547, allocations: 0.7377 MB / 0.5633 GB, free: 15 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.6548, allocations: 51.42 kB / 0.5634 GB, free: 14.95 MB / 411.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6548, allocations: 0 / 0.5634 GB, free: 14.95 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.509, allocations: 4.709 MB / 0.568 GB, free: 10.24 MB / 411.1 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