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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 94.2 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 6.812 kB / 300.8 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 50.42 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001379/0.1097, allocations: 0.9506 MB / 352.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008188/0.1106, allocations: 429.8 kB / 352.6 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.939e-05/0.1106, allocations: 4 kB / 352.6 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.082e-05/0.1106, allocations: 0 / 352.6 MB, free: 10.21 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.111, allocations: 59.8 kB / 352.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001144/0.1111, allocations: 47.83 kB / 352.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.822e-05/0.1112, allocations: 23.97 kB / 352.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.1113, allocations: 8.266 kB / 352.7 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.114e-05/0.1113, allocations: 15.92 kB / 352.7 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.154e-05/0.1114, allocations: 19.92 kB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1114, allocations: 0 / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1116, allocations: 91.78 kB / 352.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.747e-05/0.1116, allocations: 35.92 kB / 352.9 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.473e-05/0.1117, allocations: 41.64 kB / 352.9 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1119, allocations: 115.8 kB / 353 MB, free: 9.758 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.1119, allocations: 3.938 kB / 353 MB, free: 9.754 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1119, allocations: 0 / 353 MB, free: 9.754 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1119, allocations: 0 / 353 MB, free: 9.754 MB / 286.1 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.0005922/0.1125, allocations: 0.5566 MB / 353.6 MB, free: 9.137 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1126, allocations: 8.031 kB / 353.6 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.627e-05/0.1126, allocations: 50.55 kB / 353.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1128, allocations: 31.66 kB / 353.7 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.113, allocations: 186.9 kB / 353.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.113, allocations: 0 / 353.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.113, allocations: 8 kB / 353.9 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1133, allocations: 286.3 kB / 354.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1133, allocations: 0 / 354.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.1134, allocations: 4 kB / 354.2 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1134, allocations: 3.953 kB / 354.2 MB, free: 8.508 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.1135, allocations: 148.3 kB / 354.3 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.114, allocations: 381.5 kB / 354.7 MB, free: 7.934 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004193/0.1144, allocations: 0.4975 MB / 355.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.1144, allocations: 3.984 kB / 355.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.1149, allocations: 490.8 kB / 355.7 MB, free: 6.891 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.092e-06/0.1149, allocations: 0 / 355.7 MB, free: 6.891 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.001056/0.116, allocations: 0.8997 MB / 356.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/0.1162, allocations: 156.5 kB / 356.7 MB, free: 5.754 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.1164, allocations: 105.8 kB / 356.8 MB, free: 5.641 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.1164, allocations: 25.7 kB / 356.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.1165, allocations: 89.17 kB / 356.9 MB, free: 5.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.1165, allocations: 90.72 kB / 357 MB, free: 5.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.1166, allocations: 0 / 357 MB, free: 5.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1167, allocations: 330.8 kB / 357.3 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.966e-05/0.1168, allocations: 88.41 kB / 357.4 MB, free: 5.012 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.1169, allocations: 116.2 kB / 357.5 MB, free: 4.895 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.1171, allocations: 208.2 kB / 357.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1171, allocations: 0 / 357.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003779/0.1175, allocations: 372.1 kB / 358.1 MB, free: 4.297 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/0.1176, allocations: 111.3 kB / 358.2 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1176, allocations: 3.938 kB / 358.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1176, allocations: 3.953 kB / 358.2 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.617e-05/0.1177, allocations: 4 kB / 358.2 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1177, allocations: 4 kB / 358.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.278e-05/0.1178, allocations: 19.78 kB / 358.3 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1178, allocations: 8 kB / 358.3 MB, free: 4.133 MB / 286.1 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 () * Number of clocked 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.0002548/0.1181, allocations: 303.8 kB / 358.6 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.1182, allocations: 28.14 kB / 358.6 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.895e-05/0.1182, allocations: 13.56 kB / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1182, allocations: 4 kB / 358.6 MB, free: 3.773 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1182, allocations: 11.89 kB / 358.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1182, allocations: 3.984 kB / 358.6 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.1198, allocations: 1.425 MB / 360 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1198, allocations: 0 / 360 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.578e-05/0.1198, allocations: 12 kB / 360.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1198, allocations: 0 / 360.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.1199, allocations: 23.94 kB / 360.1 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1199, allocations: 0 / 360.1 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1199, allocations: 0 / 360.1 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.1213, allocations: 1.324 MB / 361.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.75e-05/0.1214, allocations: 96.86 kB / 361.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.1215, allocations: 67.89 kB / 361.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.479e-05/0.1216, allocations: 12 kB / 361.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.1216, allocations: 11.98 kB / 361.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.1217, allocations: 19.98 kB / 361.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.51e-05/0.1217, allocations: 87.28 kB / 361.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1217, allocations: 0 / 361.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004097/0.1221, allocations: 84 kB / 361.8 MB, free: 488 kB / 286.1 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) * Number of clocked states: 0 () * 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.002441/0.1246, allocations: 2.408 MB / 364.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.1265, allocations: 2.136 MB / 366.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1265, allocations: 0 / 366.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.1282, allocations: 2.194 MB / 368.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.1284, allocations: 12 kB / 368.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.1306, allocations: 1.502 MB / 370 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.1309, allocations: 0.7283 MB / 370.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.512e-05/0.1309, allocations: 4 kB / 370.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.746e-05/0.131, allocations: 35.52 kB / 370.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.131, allocations: 3.938 kB / 370.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.1477, allocations: 4.529 MB / 375.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.148, allocations: 230.4 kB / 375.6 MB, free: 2.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.852, allocations: 4 kB / 375.6 MB, free: 2.637 MB / 302.1 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