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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") [: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.001698/0.001698, allocations: 205.3 kB / 8.541 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008975/0.0008975, allocations: 94.62 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.653e-06/6.683e-06, allocations: 0 / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 51.48 MB / 394.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2659/0.3739, allocations: 79.1 MB / 473.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.3742, allocations: 69.16 kB / 473.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02105/0.3953, allocations: 7.376 MB / 481.1 MB, free: 7.875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.3953, allocations: 0 / 481.1 MB, free: 7.875 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.0008426/0.3962, allocations: 0.499 MB / 481.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3962, allocations: 8.031 kB / 481.7 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.3965, allocations: 34.98 kB / 481.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.3967, allocations: 199.1 kB / 481.9 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.3967, allocations: 8 kB / 481.9 MB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.381e-05/0.3968, allocations: 4.875 kB / 481.9 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001226/0.3969, allocations: 43.39 kB / 481.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.3971, allocations: 116 kB / 482.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.3971, allocations: 0.75 kB / 482.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.3971, allocations: 0 / 482.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3971, allocations: 0 / 482.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005756/0.3977, allocations: 0.5171 MB / 482.6 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.3979, allocations: 127 kB / 482.7 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.542e-05/0.398, allocations: 55.98 kB / 482.7 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.398, allocations: 4 kB / 482.8 MB, free: 6.219 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001417/0.3982, allocations: 134.9 kB / 482.9 MB, free: 6.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.164e-06/0.3982, allocations: 0 / 482.9 MB, free: 6.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006478/0.3988, allocations: 169.8 kB / 483.1 MB, free: 5.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.3989, allocations: 118.5 kB / 483.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.399, allocations: 176.1 kB / 483.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.3991, allocations: 40.69 kB / 483.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.3991, allocations: 105.2 kB / 483.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.3992, allocations: 34.61 kB / 483.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.249e-05/0.3992, allocations: 0 / 483.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.224e-05/0.3992, allocations: 329.5 kB / 483.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.3994, allocations: 77.67 kB / 483.9 MB, free: 5.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.3995, allocations: 114 kB / 484 MB, free: 5.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006084/0.4001, allocations: 126.8 kB / 484.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4001, allocations: 4 kB / 484.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007419/0.4009, allocations: 289.6 kB / 484.4 MB, free: 4.684 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.4009, allocations: 4 kB / 484.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.4009, allocations: 3.5 kB / 484.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4009, allocations: 4 kB / 484.4 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.4011, allocations: 31.92 kB / 484.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4011, allocations: 2.578 kB / 484.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.4012, allocations: 27.7 kB / 484.5 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.4012, allocations: 15.25 kB / 484.5 MB, free: 4.605 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.322e-05/0.4013, allocations: 132.9 kB / 484.7 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.4014, allocations: 15.81 kB / 484.7 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.4014, allocations: 12.59 kB / 484.7 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4014, allocations: 3.906 kB / 484.7 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4014, allocations: 4 kB / 484.7 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4014, allocations: 0 / 484.7 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.4016, allocations: 195.5 kB / 484.9 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4016, allocations: 4 kB / 484.9 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.483e-05/0.4017, allocations: 11.98 kB / 484.9 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4017, allocations: 4 kB / 484.9 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.4017, allocations: 3.984 kB / 484.9 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4017, allocations: 1.875 kB / 484.9 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4017, allocations: 4 kB / 484.9 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005192/0.4022, allocations: 235 kB / 485.1 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.4023, allocations: 100.8 kB / 485.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.4023, allocations: 12.59 kB / 485.2 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.4024, allocations: 15.98 kB / 485.3 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.4025, allocations: 15.03 kB / 485.3 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.4025, allocations: 8 kB / 485.3 MB, free: 3.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.625e-05/0.4026, allocations: 128.5 kB / 485.4 MB, free: 3.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005241/0.4031, allocations: 150.2 kB / 485.6 MB, free: 3.562 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.001142/0.4043, allocations: 434.3 kB / 486 MB, free: 3.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.4046, allocations: 214.5 kB / 486.2 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4046, allocations: 0 / 486.2 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.153e-05/0.4047, allocations: 57.8 kB / 486.2 MB, free: 2.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.4049, allocations: 15.34 kB / 486.3 MB, free: 2.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000393/0.4053, allocations: 194.8 kB / 486.5 MB, free: 2.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.4054, allocations: 0.7429 MB / 487.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4055, allocations: 0 / 487.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of Templates: time 0.007695/0.4132, allocations: 3.885 MB / 491.1 MB, free: 14.16 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches