Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009561/0.0009561, allocations: 93.23 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 204.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 11.98 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1308, allocations: 51.48 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001779/0.1326, allocations: 1.073 MB / 359.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007931/0.1334, allocations: 352.5 kB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.972e-05/0.1335, allocations: 4 kB / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.664e-05/0.1335, allocations: 0 / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.783e-05/0.1336, allocations: 0 / 359.6 MB, free: 12.35 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.0004808/0.1341, allocations: 67.78 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.775e-05/0.1342, allocations: 15.92 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.68e-05/0.1342, allocations: 0 / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.1343, allocations: 7.984 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.268e-05/0.1343, allocations: 7.938 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.1343, allocations: 0 / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.1345, allocations: 59.88 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.1346, allocations: 12 kB / 359.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.1346, allocations: 33.62 kB / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.1348, allocations: 55.91 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1348, allocations: 0 / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.1348, allocations: 0 / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1348, allocations: 0 / 359.9 MB, free: 12.09 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005698/0.1354, allocations: 339.3 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1354, allocations: 12.03 kB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.574e-05/0.1355, allocations: 30.84 kB / 360.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1355, allocations: 0 / 360.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.1357, allocations: 178.9 kB / 360.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1357, allocations: 4 kB / 360.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.1357, allocations: 7.953 kB / 360.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1358, allocations: 33.69 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.1359, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.1359, allocations: 7.984 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1359, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.598e-05/0.1359, allocations: 11.94 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004483/0.1364, allocations: 256.9 kB / 360.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.05e-05/0.1364, allocations: 26.58 kB / 360.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.1365, allocations: 3.938 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.1366, allocations: 55.39 kB / 360.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.1366, allocations: 0 / 360.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001832/0.1368, allocations: 53.69 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.1369, allocations: 55.41 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.137, allocations: 105.8 kB / 361 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.137, allocations: 25.7 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.1371, allocations: 92.05 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.352e-05/0.1371, allocations: 3.906 kB / 361.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/0.1371, allocations: 0 / 361.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1372, allocations: 314.8 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.314e-05/0.1373, allocations: 7.984 kB / 361.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.274e-05/0.1373, allocations: 29.66 kB / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.211e-05/0.1374, allocations: 8 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1374, allocations: 7.891 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.543e-05/0.1375, allocations: 49.69 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1375, allocations: 4 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1375, allocations: 4 kB / 361.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1375, allocations: 3.984 kB / 361.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.008e-05/0.1376, allocations: 7.938 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1376, allocations: 4.031 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.103e-05/0.1377, allocations: 8 kB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.1377, allocations: 0 / 361.6 MB, free: 10.14 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: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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.0001/0.1378, allocations: 110.5 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.1378, allocations: 7.859 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.1378, allocations: 11.89 kB / 361.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1378, allocations: 4 kB / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1378, allocations: 0 / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1379, allocations: 0 / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.1381, allocations: 286.5 kB / 362 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1381, allocations: 4 kB / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-05/0.1381, allocations: 0 / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1382, allocations: 0 / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.1382, allocations: 0 / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1382, allocations: 3.984 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1382, allocations: 4 kB / 362 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.1383, allocations: 151.8 kB / 362.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.257e-05/0.1384, allocations: 81.48 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1384, allocations: 3.938 kB / 362.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.896e-05/0.1384, allocations: 4 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.277e-05/0.1385, allocations: 0 / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.1385, allocations: 7.984 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.791e-05/0.1386, allocations: 87.22 kB / 362.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1386, allocations: 0 / 362.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.1389, allocations: 20 kB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008342/0.1397, allocations: 0.7897 MB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.354e-05/0.1398, allocations: 23.92 kB / 363.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1398, allocations: 0 / 363.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.314e-05/0.1398, allocations: 8 kB / 363.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.14, allocations: 0 / 363.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005934/0.1406, allocations: 486.1 kB / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1409, allocations: 0.6809 MB / 364.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.541e-05/0.1409, allocations: 7.984 kB / 364.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.141, allocations: 7.438 kB / 364.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of SimCode: time 1.503e-06/0.141, allocations: 3.938 kB / 364.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01305/0.154, allocations: 1.668 MB / 366 MB, free: 5.641 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.1543, allocations: 213.7 kB / 366.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.892, allocations: 0 / 366.2 MB, free: 5.398 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat does not exist to compare? outputFormat=mat