Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 176.6 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009548/0.0009543, allocations: 102 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.61e-05/1.612e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4728, allocations: 75.58 MB / 463.1 MB, free: 3.145 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.4731, allocations: 63.97 kB / 463.2 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007779/0.4809, allocations: 2.97 MB / 466.2 MB, free: 124 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4809, allocations: 0 / 466.2 MB, free: 124 kB / 330.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.481, allocations: 0 / 466.2 MB, free: 124 kB / 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.0004678/0.4814, allocations: 0.5565 MB / 466.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.4815, allocations: 16.03 kB / 466.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.4816, allocations: 23.7 kB / 466.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.4818, allocations: 182.8 kB / 466.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.4818, allocations: 0 / 466.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.4818, allocations: 4 kB / 466.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001515/0.482, allocations: 143.9 kB / 467.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.4822, allocations: 271.2 kB / 467.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.4823, allocations: 0 / 467.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.4823, allocations: 7.953 kB / 467.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4823, allocations: 4 kB / 467.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.4825, allocations: 174.8 kB / 467.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.4828, allocations: 485.1 kB / 468 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.4831, allocations: 469.7 kB / 468.5 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.4832, allocations: 0 / 468.5 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004238/0.4836, allocations: 476.8 kB / 468.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.222e-06/0.4836, allocations: 0 / 468.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006238/0.4842, allocations: 401.2 kB / 469.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.4843, allocations: 156.5 kB / 469.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.571e-05/0.4844, allocations: 100.9 kB / 469.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.4844, allocations: 25.7 kB / 469.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.637e-05/0.4845, allocations: 84.98 kB / 469.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.554e-05/0.4845, allocations: 90.75 kB / 469.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.4846, allocations: 0 / 469.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4847, allocations: 334.8 kB / 470.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.4848, allocations: 72.36 kB / 470.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.837e-05/0.4849, allocations: 114.2 kB / 470.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.485, allocations: 103.9 kB / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.485, allocations: 32 / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002821/0.4853, allocations: 249.3 kB / 470.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.038e-05/0.4854, allocations: 111.3 kB / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4854, allocations: 0 / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4854, allocations: 0 / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.4854, allocations: 4 kB / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.4854, allocations: 0 / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.1e-05/0.4855, allocations: 19.94 kB / 470.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.4855, allocations: 8 kB / 470.8 MB, free: 11.22 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,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.0002033/0.4857, allocations: 281.3 kB / 471 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006542/0.4864, allocations: 0.544 MB / 471.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.913e-05/0.4865, allocations: 23.81 kB / 471.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.586e-05/0.4865, allocations: 5.969 kB / 471.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4865, allocations: 4.062 kB / 471.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4865, allocations: 4 kB / 471.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.4865, allocations: 7.891 kB / 471.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.4867, allocations: 209.8 kB / 471.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.4867, allocations: 4 kB / 471.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.4867, allocations: 0 / 471.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.4867, allocations: 0 / 471.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.4867, allocations: 19.98 kB / 471.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.4867, allocations: 4 kB / 471.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.4867, allocations: 7.922 kB / 471.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007261/0.4875, allocations: 0.5825 MB / 472.4 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/0.4875, allocations: 100.9 kB / 472.5 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.4877, allocations: 75.91 kB / 472.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.669e-05/0.4877, allocations: 8 kB / 472.6 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.4878, allocations: 7.984 kB / 472.6 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.4878, allocations: 27.98 kB / 472.7 MB, free: 9.215 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.843e-05/0.4879, allocations: 91.27 kB / 472.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4879, allocations: 0 / 472.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00037/0.4883, allocations: 103.9 kB / 472.9 MB, free: 9.023 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 ($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.00168/0.4899, allocations: 1.638 MB / 474.5 MB, free: 7.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.4914, allocations: 2.092 MB / 476.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4914, allocations: 0 / 476.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.4929, allocations: 2.17 MB / 478.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.493, allocations: 15.95 kB / 478.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000637/0.4937, allocations: 376.1 kB / 479.1 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.4939, allocations: 0.7283 MB / 479.9 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.161e-05/0.494, allocations: 4 kB / 479.9 MB, free: 1.871 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.494, allocations: 35.42 kB / 479.9 MB, free: 1.836 MB / 346.7 MB Notification: Performance of SimCode: time 3.8e-07/0.494, allocations: 0 / 479.9 MB, free: 1.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.5168, allocations: 4.617 MB / 484.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/0.5171, allocations: 173.4 kB / 484.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.241, allocations: 2.109 kB / 484.7 MB, free: 13.03 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat