Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 95.77 kB / 17 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000975/0.0009752, allocations: 194.7 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 4 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1189, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.002733/0.1217, allocations: 1.536 MB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.1238, allocations: 0.9476 MB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.1239, allocations: 4 kB / 360.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.124, allocations: 11.86 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.1242, allocations: 27.78 kB / 360.8 MB, free: 11.2 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.typeClassSections: time 0.0004957/0.1247, allocations: 135.7 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.125, allocations: 203.5 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.1251, allocations: 56.25 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.643e-05/0.1252, allocations: 71.69 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1255, allocations: 95.58 kB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.1255, allocations: 8 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.1258, allocations: 103.8 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.921e-05/0.1258, allocations: 51.81 kB / 361.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.479e-05/0.1259, allocations: 53.58 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.1262, allocations: 195.8 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1262, allocations: 0 / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1262, allocations: 0 / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1262, allocations: 0 / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001171/0.1274, allocations: 0.5505 MB / 362.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.1275, allocations: 8.031 kB / 362.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.1276, allocations: 62.34 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.1278, allocations: 35.7 kB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.1281, allocations: 228.4 kB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.453e-05/0.1281, allocations: 19.95 kB / 362.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.1282, allocations: 27.89 kB / 362.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.1286, allocations: 218.5 kB / 362.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1286, allocations: 0 / 362.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1287, allocations: 8 kB / 362.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1287, allocations: 4 kB / 362.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/0.1291, allocations: 184.1 kB / 363.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.1301, allocations: 0.5788 MB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1312, allocations: 393.2 kB / 364.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.1315, allocations: 129 kB / 364.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.1315, allocations: 4 kB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.1319, allocations: 186.8 kB / 364.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.924e-06/0.1319, allocations: 0 / 364.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009702/0.1329, allocations: 419.1 kB / 364.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1329, allocations: 59.34 kB / 364.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.1331, allocations: 208.8 kB / 365.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.41e-05/0.1332, allocations: 41.78 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1333, allocations: 132.5 kB / 365.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.781e-05/0.1334, allocations: 67.02 kB / 365.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.1334, allocations: 4 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1335, allocations: 338.8 kB / 365.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.1339, allocations: 155.7 kB / 365.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.1342, allocations: 173.6 kB / 366 MB, free: 5.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.1345, allocations: 157.5 kB / 366.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1346, allocations: 0 / 366.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007569/0.1353, allocations: 417 kB / 366.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1353, allocations: 4 kB / 366.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1354, allocations: 0 / 366.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.1354, allocations: 4 kB / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.1357, allocations: 75.88 kB / 366.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.1357, allocations: 4 kB / 366.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.1359, allocations: 51.67 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.1359, allocations: 11.98 kB / 366.7 MB, free: 5.129 MB / 302.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: 17 ($whenCondition1,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,globalSeed.id_impure,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * Algorithm blocks: 0 * 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.0001509/0.1361, allocations: 142.8 kB / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.1361, allocations: 31.66 kB / 366.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.991e-05/0.1362, allocations: 25.86 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.1362, allocations: 4 kB / 366.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1362, allocations: 0 / 366.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1362, allocations: 3.938 kB / 366.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.1374, allocations: 0.6816 MB / 367.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1374, allocations: 0 / 367.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.1376, allocations: 59.89 kB / 367.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1377, allocations: 0 / 367.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1377, allocations: 8 kB / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.1377, allocations: 0 / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1377, allocations: 0 / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1387, allocations: 0.5379 MB / 368.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.1388, allocations: 92.98 kB / 368.2 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.1388, allocations: 4 kB / 368.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.139, allocations: 35.97 kB / 368.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.1391, allocations: 15.97 kB / 368.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.1391, allocations: 8 kB / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.1393, allocations: 147.2 kB / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1393, allocations: 0 / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003868/0.1397, allocations: 71.83 kB / 368.5 MB, free: 3.168 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001636/0.1413, allocations: 1.162 MB / 369.7 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.142, allocations: 319.7 kB / 370 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1421, allocations: 0 / 370 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.1424, allocations: 138.4 kB / 370.1 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.1427, allocations: 30.45 kB / 370.2 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2088/0.3516, allocations: 1.594 MB / 371.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.3518, allocations: 0.7393 MB / 372.5 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.3521, allocations: 36.59 kB / 372.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.3522, allocations: 68.02 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3522, allocations: 0 / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.3701, allocations: 4.851 MB / 377.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.3703, allocations: 230.2 kB / 377.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.405, allocations: 0 / 377.7 MB, free: 18.2 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat does not exist to compare? outputFormat=mat