Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",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.001145/0.001145, allocations: 90.17 kB / 16.3 MB, free: 5.996 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.001312/0.001312, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.426/1.426, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003024/0.0003027, allocations: 10.34 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.001995/0.1292, allocations: 1.209 MB / 352.4 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1304, allocations: 0.5616 MB / 353 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.535e-05/0.1305, allocations: 4 kB / 353 MB, free: 9.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.1306, allocations: 3.938 kB / 353 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.677e-05/0.1306, allocations: 27.83 kB / 353 MB, free: 9.77 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.0004965/0.1311, allocations: 107.7 kB / 353.1 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002064/0.1314, allocations: 71.84 kB / 353.2 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.257e-05/0.1315, allocations: 13.06 kB / 353.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.873e-05/0.1315, allocations: 43.83 kB / 353.3 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.1317, allocations: 47.83 kB / 353.3 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.1317, allocations: 4 kB / 353.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.1319, allocations: 91.78 kB / 353.4 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.132, allocations: 23.91 kB / 353.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.865e-05/0.132, allocations: 45.64 kB / 353.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.1322, allocations: 127.8 kB / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1322, allocations: 0 / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1322, allocations: 0 / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1323, allocations: 0 / 353.6 MB, free: 9.195 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006848/0.1329, allocations: 442.7 kB / 354 MB, free: 8.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.133, allocations: 8.031 kB / 354 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.001e-05/0.1331, allocations: 38.56 kB / 354.1 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003469/0.1334, allocations: 43.73 kB / 354.1 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.1337, allocations: 198.8 kB / 354.3 MB, free: 8.383 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.1337, allocations: 4 kB / 354.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.1337, allocations: 8 kB / 354.3 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.134, allocations: 119.3 kB / 354.4 MB, free: 8.242 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.134, allocations: 4 kB / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.134, allocations: 4 kB / 354.4 MB, free: 8.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.134, allocations: 3.953 kB / 354.5 MB, free: 8.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.1342, allocations: 67.89 kB / 354.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.1349, allocations: 460.7 kB / 355 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.1353, allocations: 141.4 kB / 355.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.1353, allocations: 0 / 355.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.1356, allocations: 157.1 kB / 355.3 MB, free: 7.332 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.202e-06/0.1356, allocations: 0 / 355.3 MB, free: 7.332 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006784/0.1363, allocations: 411.5 kB / 355.7 MB, free: 6.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.1364, allocations: 93.09 kB / 355.8 MB, free: 6.777 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.1366, allocations: 175 kB / 355.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.1367, allocations: 45.69 kB / 356 MB, free: 6.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.1367, allocations: 108.5 kB / 356.1 MB, free: 6.438 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.1368, allocations: 43.55 kB / 356.1 MB, free: 6.395 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.1368, allocations: 4 kB / 356.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.137, allocations: 326.8 kB / 356.4 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.1372, allocations: 100.5 kB / 356.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.1374, allocations: 127.5 kB / 356.7 MB, free: 5.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.1376, allocations: 116.5 kB / 356.8 MB, free: 5.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1376, allocations: 0 / 356.8 MB, free: 5.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004923/0.1381, allocations: 301.4 kB / 357.1 MB, free: 5.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1381, allocations: 4 kB / 357.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1381, allocations: 11.88 kB / 357.1 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.1382, allocations: 4 kB / 357.1 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1383, allocations: 27.92 kB / 357.1 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1383, allocations: 4 kB / 357.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.906e-05/0.1384, allocations: 27.69 kB / 357.1 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.1385, allocations: 8 kB / 357.2 MB, free: 5.324 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * 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.0001484/0.1386, allocations: 149.8 kB / 357.3 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.1386, allocations: 11.81 kB / 357.3 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.1387, allocations: 17.39 kB / 357.3 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1387, allocations: 3.953 kB / 357.3 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1387, allocations: 0 / 357.3 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1387, allocations: 0 / 357.3 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.1389, allocations: 209.5 kB / 357.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.139, allocations: 4 kB / 357.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.621e-05/0.139, allocations: 11.98 kB / 357.6 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.139, allocations: 0 / 357.6 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.139, allocations: 4 kB / 357.6 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.139, allocations: 3.938 kB / 357.6 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.139, allocations: 3.953 kB / 357.6 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004328/0.1395, allocations: 235.5 kB / 357.8 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.1396, allocations: 96.84 kB / 357.9 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.1396, allocations: 8 kB / 357.9 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.012e-05/0.1397, allocations: 15.94 kB / 357.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.1398, allocations: 11.98 kB / 357.9 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1398, allocations: 8 kB / 357.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.549e-05/0.1399, allocations: 123.5 kB / 358.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1399, allocations: 0 / 358.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.1402, allocations: 47.98 kB / 358.1 MB, free: 4.27 MB / 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: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001172/0.1414, allocations: 1.014 MB / 359.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.1418, allocations: 195.8 kB / 359.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1418, allocations: 0 / 359.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1419, allocations: 67.89 kB / 359.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.1421, allocations: 8 kB / 359.4 MB, free: 2.984 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.1431, allocations: 0.8134 MB / 360.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005232/0.1436, allocations: 0.7121 MB / 360.9 MB, free: 1.375 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.204e-05/0.1437, allocations: 20.86 kB / 360.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.857e-05/0.1438, allocations: 35.42 kB / 361 MB, free: 1.316 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1438, allocations: 4 kB / 361 MB, free: 1.312 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01567/0.1595, allocations: 3.238 MB / 364.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.1597, allocations: 217.1 kB / 364.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.01, allocations: 0 / 364.4 MB, free: 13.94 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat does not exist to compare? outputFormat=mat