Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",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.00115/0.00115, allocations: 95.38 kB / 16.31 MB, free: 6.461 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.001272/0.001272, allocations: 175.5 kB / 17.19 MB, free: 6.348 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.354/1.354, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 8 kB / 300.8 MB, free: 6.375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1126, allocations: 50.41 MB / 351.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.001959/0.1146, allocations: 1.52 MB / 352.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1161, allocations: 0.9126 MB / 353.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.603e-05/0.1162, allocations: 4 kB / 353.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.29e-05/0.1163, allocations: 15.86 kB / 353.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.1165, allocations: 23.89 kB / 353.7 MB, free: 1.457 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.typeClassSections: time 0.0004282/0.1169, allocations: 147.6 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.1171, allocations: 123.7 kB / 354 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.1172, allocations: 56.12 kB / 354 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.96e-05/0.1174, allocations: 75.69 kB / 354.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1175, allocations: 99.56 kB / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.1176, allocations: 12 kB / 354.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1177, allocations: 79.92 kB / 354.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.1178, allocations: 43.81 kB / 354.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.1179, allocations: 57.52 kB / 354.4 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.1181, allocations: 199.8 kB / 354.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1181, allocations: 0 / 354.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1181, allocations: 0 / 354.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1181, allocations: 0 / 354.6 MB, free: 0.5742 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001032/0.1192, allocations: 0.5465 MB / 355.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1192, allocations: 12.03 kB / 355.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.982e-05/0.1193, allocations: 50.55 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.1195, allocations: 35.7 kB / 355.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.1198, allocations: 232.4 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.1198, allocations: 12 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.1198, allocations: 24 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.1203, allocations: 222.3 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.1203, allocations: 0 / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.1204, allocations: 7.953 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1204, allocations: 4 kB / 355.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004652/0.1208, allocations: 188.1 kB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.1219, allocations: 0.5942 MB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.123, allocations: 377.6 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.123, allocations: 160 / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003948/0.1234, allocations: 187.8 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.1234, allocations: 0 / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001134/0.1246, allocations: 500 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.1246, allocations: 63.34 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.1248, allocations: 203.9 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.1249, allocations: 41.69 kB / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.125, allocations: 132.6 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.1251, allocations: 71 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.639e-05/0.1251, allocations: 8 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1252, allocations: 338.8 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1256, allocations: 147.9 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.1259, allocations: 177.6 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.1263, allocations: 158.5 kB / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1263, allocations: 0 / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000844/0.1272, allocations: 409.1 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1272, allocations: 4 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.1272, allocations: 0 / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1272, allocations: 7.953 kB / 359.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.1275, allocations: 79.89 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1276, allocations: 0 / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.1277, allocations: 55.66 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.1278, allocations: 12 kB / 359.4 MB, free: 11.5 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.0001586/0.1279, allocations: 146.6 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.128, allocations: 19.72 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.49e-05/0.1281, allocations: 25.86 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1281, allocations: 0 / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.1281, allocations: 3.953 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1281, allocations: 3.938 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.1293, allocations: 0.679 MB / 360.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1293, allocations: 0 / 360.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.1295, allocations: 51.97 kB / 360.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1296, allocations: 3.953 kB / 360.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.1296, allocations: 3.984 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.1296, allocations: 7.938 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1296, allocations: 0 / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.1306, allocations: 0.5332 MB / 360.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.509e-05/0.1307, allocations: 96.91 kB / 361 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.1308, allocations: 16.02 kB / 361 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.131, allocations: 31.97 kB / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.131, allocations: 7.984 kB / 361 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.131, allocations: 4 kB / 361 MB, free: 9.773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.1312, allocations: 159.2 kB / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1312, allocations: 4 kB / 361.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000376/0.1316, allocations: 67.84 kB / 361.3 MB, free: 9.547 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.001682/0.1333, allocations: 1.163 MB / 362.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007684/0.1341, allocations: 315.5 kB / 362.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1341, allocations: 3.938 kB / 362.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003229/0.1344, allocations: 128 kB / 362.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.1347, allocations: 39.75 kB / 362.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.1361, allocations: 0.9425 MB / 363.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1364, allocations: 0.744 MB / 364.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.1366, allocations: 37.92 kB / 364.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1367, allocations: 67.41 kB / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1367, allocations: 0 / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.1546, allocations: 4.682 MB / 369.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003807/0.1551, allocations: 223.7 kB / 369.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.131, allocations: 0 / 369.6 MB, free: 1.266 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat does not exist to compare? outputFormat=mat