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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 198.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009131/0.0009132, allocations: 94.48 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.015e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4484, allocations: 76.27 MB / 471.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.4487, allocations: 70.3 kB / 471.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005032/0.4538, allocations: 1.996 MB / 473.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4538, allocations: 4 kB / 473.6 MB, free: 13.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.4538, allocations: 0 / 473.6 MB, free: 13.53 MB / 346.7 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.0003038/0.4541, allocations: 339.8 kB / 473.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.4542, allocations: 10.12 kB / 473.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.4542, allocations: 4 kB / 473.9 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.861e-05/0.4543, allocations: 171.7 kB / 474.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.4543, allocations: 0 / 474.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.4544, allocations: 0 / 474.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.798e-05/0.4544, allocations: 10.91 kB / 474.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.229e-05/0.4545, allocations: 35.7 kB / 474.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.4545, allocations: 0 / 474.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.4545, allocations: 0 / 474.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.4545, allocations: 0 / 474.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002599/0.4548, allocations: 223 kB / 474.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.324e-05/0.4548, allocations: 23.38 kB / 474.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.4548, allocations: 16.86 kB / 474.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.4549, allocations: 0.8906 kB / 474.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.112e-05/0.455, allocations: 55.25 kB / 474.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.455, allocations: 6.812 kB / 474.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001491/0.4551, allocations: 45.44 kB / 474.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.241e-05/0.4552, allocations: 56.09 kB / 474.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.436e-05/0.4552, allocations: 96.47 kB / 474.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.4552, allocations: 25.7 kB / 474.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.559e-05/0.4553, allocations: 88.84 kB / 474.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.4553, allocations: 3.5 kB / 474.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.4553, allocations: 4 kB / 474.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.232e-05/0.4553, allocations: 312.2 kB / 475.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.677e-05/0.4554, allocations: 7.875 kB / 475.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.409e-05/0.4554, allocations: 22.17 kB / 475.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.89e-05/0.4554, allocations: 9.859 kB / 475.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4555, allocations: 0 / 475.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.906e-05/0.4555, allocations: 60.88 kB / 475.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.4556, allocations: 8.031 kB / 475.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4556, allocations: 0.7969 kB / 475.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.4556, allocations: 0 / 475.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.935e-05/0.4556, allocations: 12.78 kB / 475.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.4557, allocations: 0 / 475.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.4557, allocations: 0 / 475.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.4557, allocations: 4.656 kB / 475.2 MB, free: 11.81 MB / 346.7 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 () * 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 5.792e-05/0.4558, allocations: 109.7 kB / 475.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.578e-05/0.4558, allocations: 52.91 kB / 475.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.4558, allocations: 11.67 kB / 475.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.4559, allocations: 5.047 kB / 475.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.4559, allocations: 0 / 475.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.4559, allocations: 5.781 kB / 475.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.4559, allocations: 0.75 kB / 475.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.456, allocations: 258.6 kB / 475.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.456, allocations: 3.938 kB / 475.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-05/0.456, allocations: 0.7031 kB / 475.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.4561, allocations: 0 / 475.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.4561, allocations: 8.641 kB / 475.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4561, allocations: 4 kB / 475.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.4561, allocations: 0 / 475.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.25e-05/0.4562, allocations: 143.4 kB / 475.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.4562, allocations: 85.72 kB / 475.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.4562, allocations: 0.6562 kB / 475.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.041e-05/0.4562, allocations: 0 / 475.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.392e-05/0.4563, allocations: 1.547 kB / 475.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.4563, allocations: 4 kB / 475.9 MB, free: 11.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.433e-05/0.4563, allocations: 87.84 kB / 476 MB, free: 11 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4563, allocations: 0 / 476 MB, free: 11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002742/0.4566, allocations: 30.25 kB / 476 MB, free: 10.97 MB / 346.7 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 () * 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.0005393/0.4572, allocations: 0.7688 MB / 476.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.704e-05/0.4572, allocations: 16.97 kB / 476.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4572, allocations: 0 / 476.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.744e-05/0.4573, allocations: 16.03 kB / 476.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.4574, allocations: 7.172 kB / 476.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00031/0.4577, allocations: 107.5 kB / 476.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.4578, allocations: 0.6814 MB / 477.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.129e-05/0.4579, allocations: 6.391 kB / 477.6 MB, free: 9.367 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.4579, allocations: 11.67 kB / 477.6 MB, free: 9.359 MB / 346.7 MB Notification: Performance of SimCode: time 4e-07/0.4579, allocations: 0 / 477.6 MB, free: 9.359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.4804, allocations: 1.561 MB / 479.2 MB, free: 8.469 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.4807, allocations: 162.8 kB / 479.3 MB, free: 8.281 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.374/1.855, allocations: 0 / 479.3 MB, free: 8.281 MB / 346.7 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