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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 203.4 kB / 8.537 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 92.88 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1149/0.116, allocations: 56.89 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.2152, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2704/0.4857, allocations: 79.09 MB / 473.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.486, allocations: 74.02 kB / 473.9 MB, free: 12.86 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.02239/0.5084, allocations: 7.879 MB / 481.7 MB, free: 7.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.5085, allocations: 12 kB / 481.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.5088, allocations: 39.22 kB / 481.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.509, allocations: 187.5 kB / 482 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.509, allocations: 4 kB / 482 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.509, allocations: 7.984 kB / 482 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001144/0.5092, allocations: 39.34 kB / 482 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.5093, allocations: 124 kB / 482.1 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.5093, allocations: 0 / 482.1 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.5094, allocations: 0 / 482.1 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.5094, allocations: 0 / 482.1 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/0.5099, allocations: 0.5266 MB / 482.7 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.5101, allocations: 116.4 kB / 482.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.177e-05/0.5102, allocations: 57.28 kB / 482.8 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.5102, allocations: 4 kB / 482.8 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.5103, allocations: 132.2 kB / 483 MB, free: 5.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.5103, allocations: 0 / 483 MB, free: 5.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006267/0.511, allocations: 175.4 kB / 483.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.511, allocations: 118.2 kB / 483.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.5112, allocations: 172.6 kB / 483.4 MB, free: 5.551 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.5112, allocations: 44.16 kB / 483.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.828e-05/0.5113, allocations: 107.3 kB / 483.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.5113, allocations: 33.8 kB / 483.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.5113, allocations: 7.531 kB / 483.6 MB, free: 5.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.717e-05/0.5114, allocations: 330.5 kB / 483.9 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.5115, allocations: 70.92 kB / 484 MB, free: 5.008 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.5116, allocations: 107.6 kB / 484.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005401/0.5122, allocations: 134.1 kB / 484.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5122, allocations: 4 kB / 484.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000721/0.5129, allocations: 287.7 kB / 484.5 MB, free: 4.586 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.5129, allocations: 4 kB / 484.5 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.513, allocations: 1.438 kB / 484.5 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.513, allocations: 4 kB / 484.5 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.5131, allocations: 40 kB / 484.6 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.5131, allocations: 0 / 484.6 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.967e-05/0.5132, allocations: 23.69 kB / 484.6 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.5133, allocations: 19.23 kB / 484.6 MB, free: 4.5 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 8.047e-05/0.5134, allocations: 120.3 kB / 484.7 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.5134, allocations: 19.81 kB / 484.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.237e-05/0.5134, allocations: 16.02 kB / 484.8 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.5135, allocations: 3.906 kB / 484.8 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.5135, allocations: 4 kB / 484.8 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.5135, allocations: 0 / 484.8 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.5136, allocations: 193.5 kB / 485 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5136, allocations: 4 kB / 485 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.489e-05/0.5137, allocations: 11.98 kB / 485 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.5137, allocations: 8 kB / 485 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.5137, allocations: 0 / 485 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5137, allocations: 0 / 485 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5137, allocations: 7.938 kB / 485 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005174/0.5143, allocations: 233.9 kB / 485.2 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000697/0.515, allocations: 0.7274 MB / 486 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.515, allocations: 92.86 kB / 486 MB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.5151, allocations: 14.98 kB / 486.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.479e-05/0.5152, allocations: 8 kB / 486.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.62e-05/0.5152, allocations: 15.22 kB / 486.1 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.5153, allocations: 5.75 kB / 486.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.6e-05/0.5153, allocations: 136.1 kB / 486.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001123/0.5165, allocations: 170.4 kB / 486.4 MB, free: 2.781 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.001132/0.5176, allocations: 441 kB / 486.8 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.5179, allocations: 220 kB / 487 MB, free: 2.211 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.518, allocations: 0 / 487 MB, free: 2.211 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.344e-05/0.518, allocations: 54.81 kB / 487.1 MB, free: 2.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.5182, allocations: 11.42 kB / 487.1 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.5186, allocations: 188 kB / 487.3 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.5188, allocations: 0.7467 MB / 488 MB, free: 1.199 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5188, allocations: 3.938 kB / 488 MB, free: 1.195 MB / 346.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)