Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008916/0.0008917, allocations: 93.45 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.107e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3992/0.5099, allocations: 79.16 MB / 474.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.5101, allocations: 69.47 kB / 474.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02018/0.5303, allocations: 7.704 MB / 482.2 MB, free: 7.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5304, allocations: 0 / 482.2 MB, free: 7.148 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.5304, allocations: 7.938 kB / 482.2 MB, free: 7.141 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000662/0.5311, allocations: 0.5045 MB / 482.7 MB, free: 6.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.5311, allocations: 8.031 kB / 482.7 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.5313, allocations: 35.73 kB / 482.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.5315, allocations: 191.9 kB / 482.9 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.5315, allocations: 7.594 kB / 482.9 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.5315, allocations: 8 kB / 483 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.654e-05/0.5316, allocations: 41.8 kB / 483 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.5318, allocations: 108 kB / 483.1 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.5318, allocations: 4 kB / 483.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.5318, allocations: 0 / 483.1 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.5318, allocations: 7.188 kB / 483.1 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.5324, allocations: 0.5361 MB / 483.6 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.5326, allocations: 123 kB / 483.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.803e-05/0.5327, allocations: 47.77 kB / 483.8 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.5327, allocations: 4 kB / 483.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001718/0.5329, allocations: 138.1 kB / 483.9 MB, free: 5.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.5329, allocations: 3.984 kB / 484 MB, free: 5.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005915/0.5335, allocations: 217.3 kB / 484.2 MB, free: 5.156 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.5335, allocations: 114.8 kB / 484.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.5336, allocations: 168.5 kB / 484.4 MB, free: 4.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.5337, allocations: 45.56 kB / 484.5 MB, free: 4.828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.859e-05/0.5337, allocations: 110.7 kB / 484.6 MB, free: 4.734 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.5338, allocations: 38.67 kB / 484.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/0.5338, allocations: 0 / 484.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.38e-05/0.5339, allocations: 334 kB / 485 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-05/0.534, allocations: 71.64 kB / 485 MB, free: 4.332 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.5341, allocations: 112.5 kB / 485.1 MB, free: 4.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.5345, allocations: 123.8 kB / 485.3 MB, free: 4.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.5346, allocations: 3.953 kB / 485.3 MB, free: 4.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006238/0.5352, allocations: 277.6 kB / 485.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.5352, allocations: 5.719 kB / 485.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.5353, allocations: 7.984 kB / 485.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.5353, allocations: 0 / 485.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.5354, allocations: 34.73 kB / 485.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.5354, allocations: 0 / 485.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.221e-05/0.5355, allocations: 19.88 kB / 485.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.5356, allocations: 19.98 kB / 485.6 MB, free: 3.844 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * 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.0001027/0.5357, allocations: 125.5 kB / 485.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004966/0.5362, allocations: 208 kB / 485.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.5362, allocations: 19.8 kB / 486 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.5363, allocations: 16.84 kB / 486 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.5363, allocations: 7.031 kB / 486 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5363, allocations: 4 kB / 486 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5363, allocations: 0.6562 kB / 486 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.5364, allocations: 189.9 kB / 486.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5364, allocations: 4 kB / 486.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.817e-05/0.5365, allocations: 11.98 kB / 486.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.5365, allocations: 0 / 486.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.5365, allocations: 4 kB / 486.2 MB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5365, allocations: 3.984 kB / 486.2 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.5365, allocations: 5.688 kB / 486.2 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004772/0.537, allocations: 270.5 kB / 486.5 MB, free: 3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.5371, allocations: 100.4 kB / 486.6 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.717e-05/0.5371, allocations: 4 kB / 486.6 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.195e-05/0.5372, allocations: 19.73 kB / 486.6 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.5373, allocations: 7.984 kB / 486.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.5373, allocations: 7.984 kB / 486.6 MB, free: 2.852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.2e-05/0.5374, allocations: 132.1 kB / 486.7 MB, free: 2.742 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5374, allocations: 0 / 486.7 MB, free: 2.742 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005782/0.538, allocations: 159 kB / 486.9 MB, free: 2.594 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * 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.001642/0.5396, allocations: 1.291 MB / 488.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.5399, allocations: 213.7 kB / 488.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5399, allocations: 0 / 488.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.169e-05/0.54, allocations: 57.05 kB / 488.4 MB, free: 1.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.5401, allocations: 11.89 kB / 488.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000562/0.5407, allocations: 315.7 kB / 488.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.5409, allocations: 0.7201 MB / 489.5 MB, free: 72 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.119e-05/0.5409, allocations: 21.19 kB / 489.5 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.541, allocations: 46.92 kB / 489.6 MB, free: 32 kB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.541, allocations: 4 kB / 489.6 MB, free: 28 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.5663, allocations: 4.971 MB / 494.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.5666, allocations: 165.5 kB / 494.7 MB, free: 10.94 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.326, allocations: 7.312 kB / 494.7 MB, free: 10.94 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat does not exist to compare? outputFormat=mat