Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",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.002219/0.002218, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001155/0.001155, allocations: 100.3 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003952/0.000395, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4536, allocations: 75.39 MB / 450 MB, free: 5.281 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4539, allocations: 71.97 kB / 450.1 MB, free: 5.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.4667, allocations: 2.968 MB / 453 MB, free: 2.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4668, allocations: 0 / 453 MB, free: 2.238 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.956e-06/0.4668, allocations: 0 / 453 MB, free: 2.238 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006908/0.4675, allocations: 0.5682 MB / 453.6 MB, free: 1.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4676, allocations: 8.031 kB / 453.6 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.4677, allocations: 54.53 kB / 453.7 MB, free: 1.539 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.4679, allocations: 23.75 kB / 453.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.468, allocations: 186.8 kB / 453.9 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.4681, allocations: 7.938 kB / 453.9 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.4681, allocations: 7.953 kB / 453.9 MB, free: 1.277 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.4686, allocations: 282.3 kB / 454.2 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4687, allocations: 12 kB / 454.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/0.4687, allocations: 0 / 454.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.4687, allocations: 0 / 454.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.469, allocations: 148.3 kB / 454.3 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.4694, allocations: 393.4 kB / 454.7 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.4701, allocations: 0.5054 MB / 455.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.4701, allocations: 4.031 kB / 455.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006492/0.4707, allocations: 474.8 kB / 455.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.4708, allocations: 0 / 455.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0015/0.4723, allocations: 0.9137 MB / 456.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.4724, allocations: 164.5 kB / 456.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.765e-05/0.4725, allocations: 93.19 kB / 456.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.4725, allocations: 29.7 kB / 456.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.4726, allocations: 151.6 kB / 457 MB, free: 13.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.4727, allocations: 90.62 kB / 457.1 MB, free: 13.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.4727, allocations: 11.94 kB / 457.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4729, allocations: 322.8 kB / 457.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.473, allocations: 88.34 kB / 457.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.4732, allocations: 120.3 kB / 457.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.4735, allocations: 212.1 kB / 457.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4735, allocations: 0 / 457.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006063/0.4742, allocations: 372.3 kB / 458.2 MB, free: 12.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.4743, allocations: 110.9 kB / 458.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4743, allocations: 0 / 458.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.4744, allocations: 0 / 458.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.383e-05/0.4745, allocations: 8 kB / 458.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.4745, allocations: 0 / 458.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.4746, allocations: 27.69 kB / 458.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.4746, allocations: 16.02 kB / 458.4 MB, free: 12.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0004152/0.4751, allocations: 291.7 kB / 458.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.462e-05/0.4752, allocations: 35.77 kB / 458.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.4752, allocations: 5.562 kB / 458.7 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.4752, allocations: 0 / 458.7 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4752, allocations: 0 / 458.7 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.4752, allocations: 7.984 kB / 458.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.4774, allocations: 1.452 MB / 460.2 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.4775, allocations: 0 / 460.2 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.392e-05/0.4775, allocations: 7.938 kB / 460.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/0.4776, allocations: 8 kB / 460.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/0.4776, allocations: 19.98 kB / 460.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.4776, allocations: 0 / 460.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.4777, allocations: 4 kB / 460.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.4797, allocations: 1.321 MB / 461.5 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.629e-05/0.4798, allocations: 100.8 kB / 461.6 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/0.4801, allocations: 71.91 kB / 461.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.4802, allocations: 12 kB / 461.7 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.299e-05/0.4803, allocations: 11.98 kB / 461.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.403e-05/0.4804, allocations: 32.11 kB / 461.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.668e-05/0.4805, allocations: 79.28 kB / 461.8 MB, free: 8.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4805, allocations: 0 / 461.8 MB, free: 8.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005997/0.4811, allocations: 111.9 kB / 461.9 MB, free: 8.816 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.003677/0.4848, allocations: 2.403 MB / 464.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.4875, allocations: 2.132 MB / 466.5 MB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.4875, allocations: 0 / 466.5 MB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/0.4901, allocations: 2.197 MB / 468.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.4904, allocations: 16.12 kB / 468.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.4933, allocations: 1.566 MB / 470.2 MB, free: 360 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.4938, allocations: 0.7361 MB / 471 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.048e-05/0.4938, allocations: 35.42 kB / 471 MB, free: 15.55 MB / 362.7 MB Notification: Performance of SimCode: time 1.664e-06/0.4939, allocations: 0 / 471 MB, free: 15.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/3.31, allocations: 4.195 MB / 475.2 MB, free: 11.36 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat