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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009855/0.0009857, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008292/0.0008294, allocations: 90.92 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.512e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1313, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3652/0.4965, allocations: 77 MB / 471.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.4968, allocations: 63.97 kB / 471.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01105/0.5078, allocations: 4.195 MB / 475.6 MB, free: 6.242 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5078, allocations: 0 / 475.6 MB, free: 6.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.5079, allocations: 8 kB / 475.6 MB, free: 6.234 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006055/0.5085, allocations: 435.4 kB / 476 MB, free: 5.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.5085, allocations: 12.03 kB / 476 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.123e-05/0.5086, allocations: 38.55 kB / 476.1 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.5089, allocations: 43.78 kB / 476.1 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.5091, allocations: 186.9 kB / 476.3 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.5091, allocations: 4 kB / 476.3 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.5092, allocations: 15.98 kB / 476.3 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.5094, allocations: 99.36 kB / 476.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.5094, allocations: 0 / 476.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.5094, allocations: 11.88 kB / 476.4 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.5094, allocations: 4 kB / 476.4 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.5095, allocations: 47.92 kB / 476.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.5102, allocations: 460.7 kB / 476.9 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.5104, allocations: 105.3 kB / 477 MB, free: 4.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.537e-05/0.5104, allocations: 45.78 kB / 477.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.5105, allocations: 3.953 kB / 477.1 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.5107, allocations: 137 kB / 477.2 MB, free: 4.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.202e-06/0.5107, allocations: 0 / 477.2 MB, free: 4.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003049/0.511, allocations: 169.6 kB / 477.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.5111, allocations: 93.09 kB / 477.5 MB, free: 4.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.5112, allocations: 165.8 kB / 477.6 MB, free: 3.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.5113, allocations: 41.69 kB / 477.7 MB, free: 3.922 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.5114, allocations: 108.6 kB / 477.8 MB, free: 3.809 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.479e-05/0.5114, allocations: 47.38 kB / 477.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.5114, allocations: 8 kB / 477.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5116, allocations: 330.8 kB / 478.2 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.5117, allocations: 80.48 kB / 478.2 MB, free: 3.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.5119, allocations: 104.2 kB / 478.3 MB, free: 3.227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.512, allocations: 91.92 kB / 478.4 MB, free: 3.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.512, allocations: 4 kB / 478.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003729/0.5124, allocations: 253.4 kB / 478.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.5124, allocations: 11.94 kB / 478.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.5125, allocations: 4 kB / 478.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.5125, allocations: 3.984 kB / 478.7 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.5126, allocations: 27.92 kB / 478.7 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.5126, allocations: 0 / 478.7 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.505e-05/0.5127, allocations: 19.84 kB / 478.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.5128, allocations: 15.98 kB / 478.8 MB, free: 2.797 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0001104/0.5129, allocations: 132.1 kB / 478.9 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.5129, allocations: 11.81 kB / 478.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.513, allocations: 21.47 kB / 478.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.513, allocations: 4 kB / 478.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.513, allocations: 0 / 478.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.513, allocations: 4 kB / 478.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.5132, allocations: 213.5 kB / 479.1 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5132, allocations: 7.938 kB / 479.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.5133, allocations: 15.98 kB / 479.2 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5133, allocations: 0 / 479.2 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.5133, allocations: 0 / 479.2 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.5133, allocations: 7.953 kB / 479.2 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5133, allocations: 3.938 kB / 479.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.5136, allocations: 216.2 kB / 479.4 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.5137, allocations: 88.92 kB / 479.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.5137, allocations: 15.94 kB / 479.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.018e-05/0.5138, allocations: 7.938 kB / 479.5 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.5138, allocations: 15.97 kB / 479.5 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.5139, allocations: 4 kB / 479.5 MB, free: 1.938 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.414e-05/0.514, allocations: 127.3 kB / 479.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.514, allocations: 0 / 479.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002664/0.5142, allocations: 59.92 kB / 479.7 MB, free: 1.754 MB / 346.7 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]) * 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.001001/0.5152, allocations: 0.9957 MB / 480.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002957/0.5156, allocations: 227.2 kB / 480.9 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5156, allocations: 0 / 480.9 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.071e-05/0.5157, allocations: 60.05 kB / 481 MB, free: 480 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.5158, allocations: 10.67 kB / 481 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005002/0.5163, allocations: 240.4 kB / 481.2 MB, free: 192 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.5166, allocations: 0.716 MB / 481.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.159e-05/0.5167, allocations: 20.86 kB / 482 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.5168, allocations: 43.42 kB / 482 MB, free: 15.38 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5168, allocations: 0 / 482 MB, free: 15.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.5319, allocations: 3.676 MB / 485.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.5322, allocations: 183.7 kB / 485.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/2.147, allocations: 4 kB / 485.9 MB, free: 11.58 MB / 362.7 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