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.001582/0.001582, allocations: 181.3 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.032/2.032, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001137/0.001137, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.595e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4329/0.5331, allocations: 75.29 MB / 444.5 MB, free: 1.863 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.5334, allocations: 62.59 kB / 444.5 MB, free: 1.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01268/0.5461, allocations: 2.959 MB / 447.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5461, allocations: 0 / 447.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.5461, allocations: 0 / 447.5 MB, free: 15.26 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.000697/0.5468, allocations: 0.5564 MB / 448 MB, free: 14.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.5469, allocations: 8.031 kB / 448.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.547, allocations: 60.69 kB / 448.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.5472, allocations: 22.38 kB / 448.1 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.5474, allocations: 182.8 kB / 448.3 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.5474, allocations: 7 kB / 448.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.5475, allocations: 7.953 kB / 448.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.548, allocations: 277.1 kB / 448.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.548, allocations: 0 / 448.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.5481, allocations: 8 kB / 448.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.5481, allocations: 0 / 448.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.5483, allocations: 153.5 kB / 448.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.5488, allocations: 397.4 kB / 449.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.5494, allocations: 0.4997 MB / 449.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/0.5499, allocations: 487.1 kB / 450.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.5499, allocations: 7.984 kB / 450.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006711/0.5506, allocations: 476.6 kB / 450.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.124e-06/0.5506, allocations: 0 / 450.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.000998/0.5516, allocations: 0.5196 MB / 451.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.5518, allocations: 163.9 kB / 451.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.5519, allocations: 96 kB / 451.4 MB, free: 12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.5519, allocations: 28.64 kB / 451.4 MB, free: 11.97 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.552, allocations: 151.3 kB / 451.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.5521, allocations: 91.81 kB / 451.6 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.5522, allocations: 4 kB / 451.6 MB, free: 11.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5523, allocations: 334 kB / 452 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.5525, allocations: 87.17 kB / 452 MB, free: 11.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.5527, allocations: 115.7 kB / 452.2 MB, free: 11.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.553, allocations: 210.3 kB / 452.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.553, allocations: 3.953 kB / 452.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005955/0.5536, allocations: 363.8 kB / 452.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001493/0.5537, allocations: 109 kB / 452.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.5538, allocations: 0 / 452.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.5538, allocations: 4 kB / 452.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.48e-05/0.5539, allocations: 7.984 kB / 452.8 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.5539, allocations: 32 / 452.8 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.554, allocations: 31.69 kB / 452.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.5541, allocations: 14.88 kB / 452.9 MB, free: 10.61 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,$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.0003735/0.5545, allocations: 277.6 kB / 453.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.5546, allocations: 27.77 kB / 453.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.5546, allocations: 5.344 kB / 453.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.5546, allocations: 4 kB / 453.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5546, allocations: 0 / 453.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.5546, allocations: 0 / 453.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.5568, allocations: 1.45 MB / 454.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.5569, allocations: 0 / 454.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.384e-05/0.5569, allocations: 11.98 kB / 454.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.5569, allocations: 4 kB / 454.7 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.557, allocations: 19.05 kB / 454.7 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.557, allocations: 0 / 454.7 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.557, allocations: 4 kB / 454.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.5591, allocations: 1.318 MB / 456 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.704e-05/0.5592, allocations: 100.8 kB / 456.1 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.5594, allocations: 67.92 kB / 456.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.5596, allocations: 15.98 kB / 456.2 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.5597, allocations: 7.812 kB / 456.2 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.5598, allocations: 31.72 kB / 456.2 MB, free: 7.594 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.539e-05/0.5598, allocations: 83.59 kB / 456.3 MB, free: 7.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5599, allocations: 0 / 456.3 MB, free: 7.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006109/0.5605, allocations: 103.6 kB / 456.4 MB, free: 7.414 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 ($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.003843/0.5643, allocations: 2.401 MB / 458.8 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002793/0.5672, allocations: 2.124 MB / 460.9 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.5672, allocations: 3.938 kB / 460.9 MB, free: 2.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.5699, allocations: 2.194 MB / 463.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.5702, allocations: 14.5 kB / 463.1 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.5714, allocations: 443.1 kB / 463.6 MB, free: 132 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.5718, allocations: 0.7358 MB / 464.3 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.311e-05/0.572, allocations: 39.42 kB / 464.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.572, allocations: 4.062 kB / 464.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.165/3.737, allocations: 4.133 MB / 468.5 MB, free: 11.18 MB / 346.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