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.0009712/0.0009711, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007863/0.0007864, allocations: 90.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.292e-05/2.3e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08303/0.08307, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3076/0.3908, allocations: 75.29 MB / 445.4 MB, free: 1.984 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/0.391, allocations: 62.47 kB / 445.5 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007503/0.3985, allocations: 2.961 MB / 448.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3985, allocations: 0 / 448.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.3985, allocations: 0 / 448.4 MB, free: 15.39 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.0004487/0.399, allocations: 0.5617 MB / 449 MB, free: 14.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.399, allocations: 8.031 kB / 449 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.439e-05/0.3991, allocations: 60.39 kB / 449 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.3992, allocations: 23.81 kB / 449.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.3994, allocations: 186.8 kB / 449.2 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.3994, allocations: 4 kB / 449.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.3994, allocations: 7.953 kB / 449.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.3997, allocations: 279 kB / 449.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.3997, allocations: 0 / 449.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.3998, allocations: 4 kB / 449.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-06/0.3998, allocations: 0 / 449.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.3999, allocations: 152.3 kB / 449.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003046/0.4002, allocations: 396.2 kB / 450.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.4006, allocations: 0.5013 MB / 450.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.4009, allocations: 481.3 kB / 451 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.4009, allocations: 8 kB / 451.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003849/0.4013, allocations: 482.7 kB / 451.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.102e-06/0.4013, allocations: 3.938 kB / 451.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005651/0.4019, allocations: 0.5176 MB / 452 MB, free: 12.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.4019, allocations: 155.9 kB / 452.2 MB, free: 12.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.19e-05/0.402, allocations: 104.5 kB / 452.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.402, allocations: 29.7 kB / 452.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.962e-05/0.4021, allocations: 80.92 kB / 452.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.87e-05/0.4022, allocations: 97.75 kB / 452.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.4022, allocations: 7.938 kB / 452.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.943e-05/0.4023, allocations: 326.6 kB / 452.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.268e-05/0.4023, allocations: 87.16 kB / 452.9 MB, free: 11.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.664e-05/0.4024, allocations: 110.7 kB / 453 MB, free: 11.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.4026, allocations: 212.8 kB / 453.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4026, allocations: 3.953 kB / 453.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003185/0.4029, allocations: 365.2 kB / 453.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.562e-05/0.403, allocations: 110.7 kB / 453.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.403, allocations: 4 kB / 453.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4031, allocations: 0 / 453.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.9e-05/0.4031, allocations: 4 kB / 453.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.4031, allocations: 0 / 453.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.511e-05/0.4032, allocations: 27.69 kB / 453.7 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.4032, allocations: 11.94 kB / 453.7 MB, free: 10.8 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.0002111/0.4034, allocations: 279 kB / 454 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.4035, allocations: 27.77 kB / 454 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.122e-05/0.4035, allocations: 17.22 kB / 454.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.4035, allocations: 2.812 kB / 454.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4035, allocations: 0 / 454.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4035, allocations: 0 / 454.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.4048, allocations: 1.445 MB / 455.5 MB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.4048, allocations: 4 kB / 455.5 MB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-05/0.4048, allocations: 4 kB / 455.5 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4048, allocations: 0 / 455.5 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.4049, allocations: 23.97 kB / 455.5 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.4049, allocations: 8 kB / 455.5 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4049, allocations: 0 / 455.5 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4061, allocations: 1.313 MB / 456.9 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.4061, allocations: 104.8 kB / 457 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.4063, allocations: 71.92 kB / 457 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.124e-05/0.4063, allocations: 8 kB / 457 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.4064, allocations: 15.98 kB / 457.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.704e-05/0.4064, allocations: 27.98 kB / 457.1 MB, free: 7.387 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.785e-05/0.4065, allocations: 79.28 kB / 457.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4065, allocations: 0 / 457.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000381/0.4069, allocations: 107.9 kB / 457.3 MB, free: 7.203 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.00225/0.4091, allocations: 2.398 MB / 459.7 MB, free: 4.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.4108, allocations: 2.132 MB / 461.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4108, allocations: 0 / 461.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.4124, allocations: 2.182 MB / 464 MB, free: 412 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.4126, allocations: 22.44 kB / 464 MB, free: 392 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007253/0.4133, allocations: 413.8 kB / 464.4 MB, free: 15.94 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.4136, allocations: 0.7359 MB / 465.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.549e-05/0.4136, allocations: 7.984 kB / 465.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.4137, allocations: 43.36 kB / 465.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4137, allocations: 0 / 465.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.4296, allocations: 5.018 MB / 470.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.4298, allocations: 206.4 kB / 470.4 MB, free: 9.855 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.581/2.011, allocations: 0 / 470.4 MB, free: 9.855 MB / 346.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