Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001271, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 92.89 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.771e-05/3.773e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1283, allocations: 51.47 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.5236, allocations: 77.05 MB / 479.2 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5239, allocations: 67.77 kB / 479.2 MB, free: 12.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007386/0.5313, allocations: 2.978 MB / 482.2 MB, free: 9.742 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5314, allocations: 0 / 482.2 MB, free: 9.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.5314, allocations: 0 / 482.2 MB, free: 9.742 MB / 346.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.0005033/0.5319, allocations: 0.5536 MB / 482.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/0.532, allocations: 12.03 kB / 482.8 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.038e-05/0.5321, allocations: 53.77 kB / 482.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.5322, allocations: 23.8 kB / 482.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.5323, allocations: 183.7 kB / 483 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.5324, allocations: 7.75 kB / 483 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.5324, allocations: 4 kB / 483 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.5327, allocations: 280 kB / 483.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.5327, allocations: 4.562 kB / 483.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.5328, allocations: 0 / 483.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.5328, allocations: 0 / 483.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.5329, allocations: 152.5 kB / 483.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003075/0.5332, allocations: 398.5 kB / 483.9 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003466/0.5336, allocations: 0.4963 MB / 484.3 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.5339, allocations: 487.7 kB / 484.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.5339, allocations: 7.984 kB / 484.8 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000373/0.5343, allocations: 478.9 kB / 485.3 MB, free: 7.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.162e-06/0.5343, allocations: 3.938 kB / 485.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005959/0.5349, allocations: 0.5195 MB / 485.8 MB, free: 6.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.535, allocations: 160.2 kB / 486 MB, free: 6.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.5351, allocations: 100.2 kB / 486.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.5351, allocations: 29.73 kB / 486.1 MB, free: 6.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.765e-05/0.5351, allocations: 80.92 kB / 486.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.5352, allocations: 102.5 kB / 486.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-06/0.5352, allocations: 0 / 486.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.213e-05/0.5353, allocations: 329.4 kB / 486.6 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.787e-05/0.5354, allocations: 85.86 kB / 486.7 MB, free: 5.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.999e-05/0.5354, allocations: 114.3 kB / 486.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.5356, allocations: 208.9 kB / 487 MB, free: 5.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5356, allocations: 3.953 kB / 487 MB, free: 5.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0002907/0.5359, allocations: 369 kB / 487.4 MB, free: 5.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/0.536, allocations: 107.2 kB / 487.5 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.536, allocations: 0 / 487.5 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.536, allocations: 0.6875 kB / 487.5 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.954e-05/0.5361, allocations: 11.92 kB / 487.5 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.5361, allocations: 0 / 487.5 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.26e-05/0.5362, allocations: 27.69 kB / 487.5 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.5362, allocations: 8 kB / 487.5 MB, free: 5.176 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 () * 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.0002052/0.5364, allocations: 271.8 kB / 487.8 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.861e-05/0.5365, allocations: 31.77 kB / 487.8 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.5365, allocations: 9.344 kB / 487.8 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.5365, allocations: 7.938 kB / 487.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5365, allocations: 3.938 kB / 487.8 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.5365, allocations: 4 kB / 487.8 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.5376, allocations: 1.439 MB / 489.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5376, allocations: 0.5625 kB / 489.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.012e-05/0.5376, allocations: 7.984 kB / 489.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.5377, allocations: 0 / 489.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.5377, allocations: 24.55 kB / 489.3 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.5377, allocations: 7.938 kB / 489.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5377, allocations: 0 / 489.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009285/0.5386, allocations: 1.317 MB / 490.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.5387, allocations: 96.86 kB / 490.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.5388, allocations: 68.67 kB / 490.8 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.5389, allocations: 11.98 kB / 490.8 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.5389, allocations: 12 kB / 490.8 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.539, allocations: 34.22 kB / 490.9 MB, free: 1.934 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.125e-05/0.539, allocations: 87.59 kB / 490.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.539, allocations: 0 / 490.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003905/0.5394, allocations: 107.9 kB / 491.1 MB, free: 1.742 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) * 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.002004/0.5414, allocations: 2.396 MB / 493.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.5433, allocations: 2.132 MB / 495.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5433, allocations: 0 / 495.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.545, allocations: 2.19 MB / 497.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.5452, allocations: 8.547 kB / 497.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008562/0.5461, allocations: 408.4 kB / 498.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.5464, allocations: 0.7322 MB / 498.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.461e-05/0.5465, allocations: 0 / 498.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.078e-05/0.5465, allocations: 40.08 kB / 498.9 MB, free: 9.73 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5465, allocations: 0 / 498.9 MB, free: 9.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.5635, allocations: 5.021 MB / 0.4922 GB, free: 4.93 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002679/0.5638, allocations: 193.8 kB / 0.4923 GB, free: 4.699 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/2.29, allocations: 0 / 0.4923 GB, free: 4.699 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat