Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_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.00156/0.00156, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.769/1.769, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009395/0.0009393, allocations: 83.62 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.442e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4095/0.5255, allocations: 74.88 MB / 438 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.5259, allocations: 62.59 kB / 438.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008331/0.5342, allocations: 2.941 MB / 441 MB, free: 1.883 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5343, allocations: 0 / 441 MB, free: 1.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.5343, allocations: 4 kB / 441.1 MB, free: 1.879 MB / 314.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.0005529/0.5349, allocations: 0.5636 MB / 441.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.5349, allocations: 8.031 kB / 441.6 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.535, allocations: 24.55 kB / 441.6 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.5352, allocations: 174.9 kB / 441.8 MB, free: 1.039 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.5352, allocations: 0 / 441.8 MB, free: 1.039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.5353, allocations: 11.95 kB / 441.8 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001587/0.5354, allocations: 140.7 kB / 442 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.5358, allocations: 263.1 kB / 442.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.5358, allocations: 0 / 442.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.5358, allocations: 8 kB / 442.2 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.5358, allocations: 7.875 kB / 442.2 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.536, allocations: 185.5 kB / 442.4 MB, free: 492 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.5367, allocations: 483.9 kB / 442.9 MB, free: 288 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.5373, allocations: 466.1 kB / 443.3 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.5373, allocations: 4 kB / 443.4 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007394/0.5381, allocations: 479.3 kB / 443.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 1.864e-06/0.5381, allocations: 0 / 443.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.001027/0.5391, allocations: 401.8 kB / 444.2 MB, free: 15.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.5393, allocations: 163.9 kB / 444.4 MB, free: 15.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.5394, allocations: 100.3 kB / 444.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.5395, allocations: 29.77 kB / 444.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.5395, allocations: 83.17 kB / 444.6 MB, free: 14.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.858e-05/0.5396, allocations: 84.39 kB / 444.7 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.257e-05/0.5397, allocations: 7.25 kB / 444.7 MB, free: 14.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002077/0.5399, allocations: 332.6 kB / 445 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.54, allocations: 77.67 kB / 445.1 MB, free: 14.49 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.5402, allocations: 104 kB / 445.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.5404, allocations: 104.6 kB / 445.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5404, allocations: 0 / 445.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004442/0.5409, allocations: 262.4 kB / 445.5 MB, free: 14.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.5411, allocations: 107 kB / 445.6 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5411, allocations: 4 kB / 445.6 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.5411, allocations: 3.953 kB / 445.6 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.863e-06/0.5411, allocations: 0 / 445.6 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.5411, allocations: 0 / 445.6 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.539e-05/0.5412, allocations: 19.84 kB / 445.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.5413, allocations: 8 kB / 445.7 MB, free: 13.98 MB / 330.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,r64,r128,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * 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.0003789/0.5417, allocations: 273.1 kB / 445.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001059/0.5427, allocations: 0.5268 MB / 446.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.5428, allocations: 34.94 kB / 446.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.5429, allocations: 14.03 kB / 446.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5429, allocations: 0 / 446.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.5429, allocations: 0 / 446.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.5429, allocations: 0 / 446.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.5432, allocations: 209.1 kB / 446.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.5432, allocations: 0 / 446.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/0.5432, allocations: 0 / 446.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.5432, allocations: 0 / 446.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.715e-05/0.5433, allocations: 31.22 kB / 446.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.5433, allocations: 3.953 kB / 446.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5433, allocations: 0 / 446.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.5444, allocations: 0.5879 MB / 447.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.64e-05/0.5445, allocations: 100.7 kB / 447.4 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.5447, allocations: 79.8 kB / 447.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.142e-05/0.5448, allocations: 8 kB / 447.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.5448, allocations: 7 kB / 447.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.424e-05/0.5449, allocations: 37.19 kB / 447.6 MB, free: 12.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.015e-05/0.545, allocations: 79.28 kB / 447.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.545, allocations: 0 / 447.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005629/0.5456, allocations: 106.9 kB / 447.7 MB, free: 12.07 MB / 330.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 ($whenCondition2,r64,r128,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: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * 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.002443/0.548, allocations: 1.657 MB / 449.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.5502, allocations: 2.083 MB / 451.5 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5502, allocations: 0 / 451.5 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002002/0.5522, allocations: 2.171 MB / 453.7 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.5524, allocations: 15.38 kB / 453.7 MB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009203/0.5533, allocations: 386.3 kB / 454 MB, free: 8.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.5538, allocations: 0.7283 MB / 454.8 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.244e-05/0.5538, allocations: 0 / 454.8 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.5538, allocations: 32.11 kB / 454.8 MB, free: 7.355 MB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5539, allocations: 0 / 454.8 MB, free: 7.355 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.5821, allocations: 4.609 MB / 459.4 MB, free: 2.742 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/0.5824, allocations: 176.9 kB / 459.6 MB, free: 2.543 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.551, allocations: 0 / 459.6 MB, free: 2.543 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat