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.001201/0.001201, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008291/0.0008291, allocations: 90.62 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.718e-05/2.722e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09724, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.313/0.4103, allocations: 76.93 MB / 479 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.4106, allocations: 75.11 kB / 479.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004867/0.4154, allocations: 1.997 MB / 481.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4155, allocations: 0.7812 kB / 481.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.4155, allocations: 0 / 481.1 MB, free: 10.75 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.0002759/0.4158, allocations: 343.2 kB / 481.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4158, allocations: 13.47 kB / 481.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.4159, allocations: 37.45 kB / 481.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.4159, allocations: 3.281 kB / 481.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.35e-05/0.416, allocations: 168.2 kB / 481.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.416, allocations: 0.9062 kB / 481.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.4161, allocations: 7.609 kB / 481.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.959e-05/0.4162, allocations: 39 kB / 481.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.4162, allocations: 0 / 481.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.4162, allocations: 0 / 481.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4162, allocations: 0 / 481.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.4162, allocations: 8 kB / 481.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002844/0.4165, allocations: 257.1 kB / 482 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.445e-05/0.4166, allocations: 22.52 kB / 482 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.873e-05/0.4166, allocations: 8.922 kB / 482 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.278e-06/0.4166, allocations: 4 kB / 482 MB, free: 9.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.106e-05/0.4167, allocations: 55.28 kB / 482.1 MB, free: 9.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.4167, allocations: 7.938 kB / 482.1 MB, free: 9.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001279/0.4168, allocations: 48.91 kB / 482.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.4169, allocations: 56.14 kB / 482.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.166e-05/0.4169, allocations: 97.81 kB / 482.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/0.4169, allocations: 25.7 kB / 482.3 MB, free: 9.418 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.417, allocations: 87.81 kB / 482.4 MB, free: 9.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.088e-05/0.417, allocations: 16.62 kB / 482.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.417, allocations: 0 / 482.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.417, allocations: 322.7 kB / 482.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.54e-05/0.4171, allocations: 4 kB / 482.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.129e-05/0.4171, allocations: 22.25 kB / 482.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.141e-05/0.4171, allocations: 13.09 kB / 482.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4171, allocations: 0 / 482.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.433e-05/0.4172, allocations: 54.56 kB / 482.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.4172, allocations: 8 kB / 482.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.4172, allocations: 3.984 kB / 482.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.4173, allocations: 0 / 482.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.005e-05/0.4173, allocations: 7.938 kB / 482.8 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.4173, allocations: 4 kB / 482.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.4173, allocations: 6.344 kB / 482.8 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.4174, allocations: 3.938 kB / 482.8 MB, free: 8.879 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 4.166e-05/0.4174, allocations: 108.9 kB / 482.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.4174, allocations: 0 / 482.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.4175, allocations: 16.05 kB / 483 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4175, allocations: 0 / 483 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4175, allocations: 0.5 kB / 483 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.4175, allocations: 0 / 483 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.4176, allocations: 288.6 kB / 483.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4176, allocations: 0.5 kB / 483.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-05/0.4177, allocations: 7.875 kB / 483.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4177, allocations: 0 / 483.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.4177, allocations: 0.5625 kB / 483.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.4177, allocations: 8 kB / 483.3 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4177, allocations: 3.984 kB / 483.3 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.85e-05/0.4178, allocations: 143.3 kB / 483.4 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.4178, allocations: 81.02 kB / 483.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.4178, allocations: 4.438 kB / 483.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.58e-05/0.4179, allocations: 0 / 483.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.4179, allocations: 4 kB / 483.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.4179, allocations: 3.984 kB / 483.5 MB, free: 8.148 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.556e-05/0.418, allocations: 84.09 kB / 483.6 MB, free: 8.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.418, allocations: 1.688 kB / 483.6 MB, free: 8.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003058/0.4183, allocations: 35.75 kB / 483.6 MB, free: 8.035 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.0005232/0.4188, allocations: 0.7768 MB / 484.4 MB, free: 7.281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.692e-05/0.4189, allocations: 19.81 kB / 484.4 MB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4189, allocations: 0 / 484.4 MB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.975e-05/0.4189, allocations: 11.88 kB / 484.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001094/0.4191, allocations: 1.969 kB / 484.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.4194, allocations: 117.9 kB / 484.5 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.674e-05/0.4195, allocations: 0.6809 MB / 485.2 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.956e-05/0.4195, allocations: 7.984 kB / 485.2 MB, free: 6.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.4195, allocations: 11.25 kB / 485.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4195, allocations: 0 / 485.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01226/0.4318, allocations: 1.856 MB / 487.1 MB, free: 4.738 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/0.432, allocations: 186.3 kB / 487.3 MB, free: 4.516 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.334/1.766, allocations: 0 / 487.3 MB, free: 4.516 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