Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001537/0.001536, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008089/0.0008088, allocations: 91.11 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.847e-05, allocations: 7.938 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.09963, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4055/0.5051, allocations: 78.34 MB / 465.8 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.5054, allocations: 67.97 kB / 465.9 MB, free: 440 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0223/0.5277, allocations: 7.565 MB / 473.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.5278, allocations: 0 / 473.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.5278, allocations: 0 / 473.4 MB, free: 8.848 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.000754/0.5286, allocations: 0.4989 MB / 473.9 MB, free: 8.305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5286, allocations: 12.02 kB / 474 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.5288, allocations: 35.7 kB / 474 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.529, allocations: 195.7 kB / 474.2 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.529, allocations: 0 / 474.2 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/0.5291, allocations: 8 kB / 474.2 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001155/0.5292, allocations: 47.91 kB / 474.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.5294, allocations: 108.6 kB / 474.3 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.5294, allocations: 3.953 kB / 474.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.5294, allocations: 3.984 kB / 474.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.5294, allocations: 4 kB / 474.4 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007162/0.5301, allocations: 0.5334 MB / 474.9 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.5303, allocations: 119.8 kB / 475 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.946e-05/0.5304, allocations: 50.66 kB / 475.1 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.5304, allocations: 0 / 475.1 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.5307, allocations: 143.4 kB / 475.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.253e-06/0.5307, allocations: 4 kB / 475.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008651/0.5316, allocations: 205.7 kB / 475.4 MB, free: 6.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.5316, allocations: 118.8 kB / 475.5 MB, free: 6.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.5318, allocations: 166.9 kB / 475.7 MB, free: 6.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.5319, allocations: 45.69 kB / 475.7 MB, free: 6.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.502e-05/0.532, allocations: 104.6 kB / 475.8 MB, free: 6.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.651e-05/0.532, allocations: 43.45 kB / 475.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.532, allocations: 4.031 kB / 475.9 MB, free: 6.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5322, allocations: 342.8 kB / 476.2 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.5323, allocations: 67.84 kB / 476.3 MB, free: 5.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.5324, allocations: 115.3 kB / 476.4 MB, free: 5.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.5329, allocations: 123.9 kB / 476.5 MB, free: 5.512 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.533, allocations: 0 / 476.5 MB, free: 5.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000698/0.5337, allocations: 273.3 kB / 476.8 MB, free: 5.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.5337, allocations: 4 kB / 476.8 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.5337, allocations: 11.94 kB / 476.8 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.5337, allocations: 3.953 kB / 476.8 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.5339, allocations: 31.97 kB / 476.8 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.5339, allocations: 4.094 kB / 476.8 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.134e-05/0.534, allocations: 23.69 kB / 476.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.5341, allocations: 16 kB / 476.9 MB, free: 5.145 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.0001079/0.5342, allocations: 130.2 kB / 477 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.5342, allocations: 11.81 kB / 477 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.5343, allocations: 17.83 kB / 477 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.5343, allocations: 16.03 kB / 477 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5343, allocations: 0 / 477 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.5343, allocations: 0 / 477 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.5345, allocations: 190.1 kB / 477.2 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5345, allocations: 0 / 477.2 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.314e-05/0.5346, allocations: 15.92 kB / 477.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.5346, allocations: 4 kB / 477.2 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.5346, allocations: 0 / 477.2 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.5347, allocations: 4 kB / 477.2 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5347, allocations: 0 / 477.2 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.5353, allocations: 283.2 kB / 477.5 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.5353, allocations: 92.86 kB / 477.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/0.5354, allocations: 19.94 kB / 477.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/0.5355, allocations: 15.92 kB / 477.6 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.5355, allocations: 11.98 kB / 477.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.5356, allocations: 4 kB / 477.7 MB, free: 4.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001023/0.5357, allocations: 132.1 kB / 477.8 MB, free: 4.113 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5357, allocations: 0 / 477.8 MB, free: 4.113 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005567/0.5362, allocations: 147.7 kB / 477.9 MB, free: 3.969 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.0009301/0.5372, allocations: 382.4 kB / 478.3 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.5375, allocations: 219.4 kB / 478.5 MB, free: 3.387 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.5375, allocations: 4 kB / 478.5 MB, free: 3.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.113e-05/0.5376, allocations: 55.92 kB / 478.6 MB, free: 3.328 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.5378, allocations: 4.438 kB / 478.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003818/0.5381, allocations: 199.1 kB / 478.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.5385, allocations: 0.7201 MB / 479.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.155e-05/0.5385, allocations: 29.17 kB / 479.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.5386, allocations: 15.44 kB / 479.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5386, allocations: 0 / 479.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of Templates: time 0.007056/0.5456, allocations: 3.4 MB / 482.9 MB, free: 14.92 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches