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.001117/0.001117, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008988/0.0008985, allocations: 100.9 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002375/0.0002377, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1959, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09057/0.2865, allocations: 79.9 MB / 489.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.2868, allocations: 75.91 kB / 489.5 MB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02135/0.3081, allocations: 7.787 MB / 497.2 MB, free: 2.836 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3082, allocations: 0 / 497.2 MB, free: 2.836 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3082, allocations: 4 kB / 497.3 MB, free: 2.832 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007224/0.3089, allocations: 0.5299 MB / 497.8 MB, free: 2.254 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.309, allocations: 8.031 kB / 497.8 MB, free: 2.246 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/0.309, allocations: 46.47 kB / 497.8 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000195/0.3092, allocations: 35.78 kB / 497.9 MB, free: 2.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.3094, allocations: 204.7 kB / 498.1 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.3094, allocations: 11.89 kB / 498.1 MB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.3095, allocations: 12 kB / 498.1 MB, free: 1.891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.3097, allocations: 138.4 kB / 498.2 MB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3097, allocations: 0 / 498.2 MB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3098, allocations: 7.938 kB / 498.2 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3098, allocations: 0 / 498.2 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.31, allocations: 75.95 kB / 498.3 MB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.3107, allocations: 0.571 MB / 498.9 MB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.311, allocations: 171.9 kB / 499 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.311, allocations: 0 / 499 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002581/0.3113, allocations: 162.1 kB / 499.2 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.3113, allocations: 0 / 499.2 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006147/0.3119, allocations: 427.9 kB / 499.6 MB, free: 200 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.312, allocations: 122.7 kB / 499.7 MB, free: 52 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.3122, allocations: 178.2 kB / 499.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.3122, allocations: 53.67 kB / 500 MB, free: 15.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.3123, allocations: 112.4 kB / 0.4884 GB, free: 15.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.3123, allocations: 35.61 kB / 0.4884 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.3123, allocations: 8 kB / 0.4884 GB, free: 15.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.3124, allocations: 330.8 kB / 0.4887 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.3126, allocations: 95.98 kB / 0.4888 GB, free: 15.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.3129, allocations: 135.2 kB / 0.4889 GB, free: 15.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.3131, allocations: 104 kB / 0.489 GB, free: 14.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3131, allocations: 4 kB / 0.489 GB, free: 14.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004921/0.3136, allocations: 293.8 kB / 0.4893 GB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3136, allocations: 8 kB / 0.4893 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.3136, allocations: 4 kB / 0.4893 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.3136, allocations: 0 / 0.4893 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.3138, allocations: 31.92 kB / 0.4894 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3138, allocations: 3.938 kB / 0.4894 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.362e-05/0.3139, allocations: 27.81 kB / 0.4894 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.3139, allocations: 19.95 kB / 0.4894 GB, free: 14.59 MB / 378.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.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,$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,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked 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.0001442/0.3141, allocations: 149.8 kB / 0.4896 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.3141, allocations: 15.81 kB / 0.4896 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.3141, allocations: 17.39 kB / 0.4896 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3142, allocations: 0 / 0.4896 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3142, allocations: 4 kB / 0.4896 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3142, allocations: 0 / 0.4896 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.3144, allocations: 233.3 kB / 0.4898 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3144, allocations: 0 / 0.4898 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.283e-05/0.3144, allocations: 19.92 kB / 0.4898 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.3145, allocations: 4 kB / 0.4898 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.3145, allocations: 0 / 0.4898 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3145, allocations: 4 kB / 0.4898 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3145, allocations: 4 kB / 0.4898 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/0.3149, allocations: 277 kB / 0.4901 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.3149, allocations: 92.92 kB / 0.4902 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.315, allocations: 11.98 kB / 0.4902 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.62e-05/0.3151, allocations: 19.98 kB / 0.4902 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.388e-05/0.3151, allocations: 12.03 kB / 0.4902 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.3151, allocations: 7.984 kB / 0.4902 GB, free: 13.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.855e-05/0.3152, allocations: 145.1 kB / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3152, allocations: 0 / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004826/0.3157, allocations: 167.7 kB / 0.4905 GB, free: 13.32 MB / 378.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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * 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.001566/0.3173, allocations: 1.308 MB / 0.4918 GB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004307/0.3178, allocations: 267.1 kB / 0.4921 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3178, allocations: 0 / 0.4921 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.3179, allocations: 63.97 kB / 0.4921 GB, free: 11.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.3181, allocations: 8.188 kB / 0.4921 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000875/0.3189, allocations: 1.086 MB / 0.4932 GB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.3192, allocations: 0.724 MB / 0.4939 GB, free: 9.762 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.534e-05/0.3193, allocations: 21.41 kB / 0.4939 GB, free: 9.742 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.413e-05/0.3194, allocations: 47.42 kB / 0.494 GB, free: 9.695 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3194, allocations: 0 / 0.494 GB, free: 9.695 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.3356, allocations: 5.317 MB / 0.4992 GB, free: 4.496 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.3358, allocations: 204.7 kB / 0.4994 GB, free: 4.258 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.194, allocations: 0 / 0.4994 GB, free: 4.258 MB / 378.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