Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001586/0.001586, allocations: 179.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 78.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.287e-05/4.306e-05, allocations: 4 kB / 321.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 47.58 MB / 369.2 MB, free: 8.879 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5534, allocations: 75.19 MB / 444.4 MB, free: 34.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.5537, allocations: 74 kB / 444.4 MB, free: 34.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007472/0.5612, allocations: 1.985 MB / 446.4 MB, free: 34.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5612, allocations: 0 / 446.4 MB, free: 34.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.5612, allocations: 3.344 kB / 446.4 MB, free: 34.22 MB / 362.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.0003377/0.5616, allocations: 340.3 kB / 446.8 MB, free: 33.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5616, allocations: 10.12 kB / 446.8 MB, free: 33.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.064e-05/0.5617, allocations: 33.44 kB / 446.8 MB, free: 33.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.5617, allocations: 5.531 kB / 446.8 MB, free: 33.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.356e-05/0.5618, allocations: 168.4 kB / 447 MB, free: 33.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.5619, allocations: 3.25 kB / 447 MB, free: 33.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.5619, allocations: 3.75 kB / 447 MB, free: 33.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.297e-05/0.562, allocations: 32.08 kB / 447 MB, free: 33.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.562, allocations: 0 / 447 MB, free: 33.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.562, allocations: 8.609 kB / 447 MB, free: 33.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.562, allocations: 0 / 447 MB, free: 33.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.95e-05/0.5621, allocations: 11.06 kB / 447 MB, free: 33.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000344/0.5624, allocations: 252.4 kB / 447.3 MB, free: 33.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.422e-05/0.5625, allocations: 25.86 kB / 447.3 MB, free: 33.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.755e-05/0.5625, allocations: 11.52 kB / 447.3 MB, free: 33.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.5626, allocations: 0 / 447.3 MB, free: 33.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/0.5627, allocations: 59.16 kB / 447.4 MB, free: 33.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.5627, allocations: 3.312 kB / 447.4 MB, free: 33.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001591/0.5629, allocations: 54.09 kB / 447.4 MB, free: 33.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.5629, allocations: 55.41 kB / 447.5 MB, free: 33.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.975e-05/0.563, allocations: 98.92 kB / 447.6 MB, free: 33.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.563, allocations: 25.7 kB / 447.6 MB, free: 33.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.5631, allocations: 154.2 kB / 447.8 MB, free: 32.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.5631, allocations: 14.42 kB / 447.8 MB, free: 32.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.5631, allocations: 0 / 447.8 MB, free: 32.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.5632, allocations: 316 kB / 448.1 MB, free: 32.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.511e-05/0.5632, allocations: 10.5 kB / 448.1 MB, free: 32.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.295e-05/0.5632, allocations: 24.88 kB / 448.1 MB, free: 32.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.201e-05/0.5633, allocations: 11.91 kB / 448.1 MB, free: 32.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5633, allocations: 0 / 448.1 MB, free: 32.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001334/0.5634, allocations: 52.64 kB / 448.2 MB, free: 32.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.5635, allocations: 6.094 kB / 448.2 MB, free: 32.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.5635, allocations: 7.875 kB / 448.2 MB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.5635, allocations: 0 / 448.2 MB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.011e-05/0.5636, allocations: 9.547 kB / 448.2 MB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.5636, allocations: 3.25 kB / 448.2 MB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.383e-05/0.5636, allocations: 4.031 kB / 448.2 MB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.5637, allocations: 3.344 kB / 448.2 MB, free: 32.48 MB / 362.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.293e-05/0.5637, allocations: 106.2 kB / 448.3 MB, free: 32.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.5638, allocations: 11.12 kB / 448.3 MB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.5638, allocations: 7.266 kB / 448.3 MB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5638, allocations: 0 / 448.3 MB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.5638, allocations: 0 / 448.3 MB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.5638, allocations: 0 / 448.3 MB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.5641, allocations: 292 kB / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5641, allocations: 2.625 kB / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.892e-05/0.5641, allocations: 3.344 kB / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.5641, allocations: 2.625 kB / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-06/0.5641, allocations: 0 / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5641, allocations: 0 / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5642, allocations: 3.219 kB / 448.6 MB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.5643, allocations: 147 kB / 448.8 MB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.558e-05/0.5643, allocations: 87.83 kB / 448.9 MB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.5643, allocations: 0 / 448.9 MB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/0.5644, allocations: 0 / 448.9 MB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/0.5644, allocations: 7.094 kB / 448.9 MB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.5645, allocations: 0 / 448.9 MB, free: 31.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.527e-05/0.5645, allocations: 88.53 kB / 449 MB, free: 31.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5645, allocations: 0 / 449 MB, free: 31.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003715/0.5649, allocations: 33.91 kB / 449 MB, free: 31.73 MB / 362.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.0007258/0.5656, allocations: 0.7748 MB / 449.8 MB, free: 31.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.5658, allocations: 31.41 kB / 449.8 MB, free: 31.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5658, allocations: 0 / 449.8 MB, free: 31.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.598e-05/0.5658, allocations: 6.562 kB / 449.8 MB, free: 31.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.566, allocations: 0 / 449.8 MB, free: 31.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004144/0.5664, allocations: 147.1 kB / 449.9 MB, free: 30.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.5666, allocations: 0.6826 MB / 450.6 MB, free: 30.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.364e-05/0.5666, allocations: 14.36 kB / 450.6 MB, free: 30.2 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5666, allocations: 0 / 450.6 MB, free: 30.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.867/3.433, allocations: 1.598 MB / 452.2 MB, free: 30.02 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat does not exist to compare? outputFormat=mat