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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002051/0.002051, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003289/0.003289, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3178, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003681/0.3216, allocations: 1.544 MB / 410.8 MB, free: 44 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3245, allocations: 1.479 MB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.3247, allocations: 7.938 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.3248, allocations: 11.86 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.325, allocations: 27.78 kB / 412.3 MB, free: 14.51 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.3263, allocations: 390.8 kB / 412.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.3266, allocations: 131.5 kB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.741e-05/0.3267, allocations: 9.484 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.063e-05/0.3268, allocations: 59.7 kB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006785/0.3274, allocations: 83.25 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.3275, allocations: 12 kB / 413 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007943/0.3283, allocations: 411.3 kB / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.305e-05/0.3284, allocations: 35.84 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.942e-05/0.3285, allocations: 67.53 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007709/0.3293, allocations: 410.7 kB / 413.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3293, allocations: 0 / 413.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3293, allocations: 0 / 413.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.3293, allocations: 0 / 413.9 MB, free: 12.93 MB / 334.1 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.001026/0.3303, allocations: 0.5079 MB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3304, allocations: 8.031 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.3307, allocations: 36.72 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.3309, allocations: 201.7 kB / 414.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.331, allocations: 8.375 kB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.331, allocations: 16.06 kB / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.3313, allocations: 135.3 kB / 414.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3313, allocations: 0 / 414.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3313, allocations: 0 / 414.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.3313, allocations: 0 / 414.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.3316, allocations: 67.89 kB / 414.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008651/0.3324, allocations: 0.5439 MB / 415.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000347/0.3328, allocations: 155.7 kB / 415.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.3329, allocations: 66.55 kB / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.333, allocations: 0 / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.3333, allocations: 161.8 kB / 415.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.3333, allocations: 0 / 415.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000629/0.334, allocations: 245.3 kB / 416 MB, free: 10.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.334, allocations: 118.8 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.3343, allocations: 203.7 kB / 416.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.853e-05/0.3343, allocations: 49.69 kB / 416.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.991e-05/0.3344, allocations: 108.6 kB / 416.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.197e-05/0.3345, allocations: 43.45 kB / 416.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3346, allocations: 57.69 kB / 416.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3347, allocations: 338.8 kB / 416.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.335, allocations: 91.95 kB / 417 MB, free: 9.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.3352, allocations: 144.2 kB / 417.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.3356, allocations: 216.3 kB / 417.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3356, allocations: 0 / 417.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005664/0.3362, allocations: 309.2 kB / 417.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3362, allocations: 8 kB / 417.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3362, allocations: 0 / 417.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3362, allocations: 0 / 417.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.3364, allocations: 35.92 kB / 417.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3364, allocations: 0 / 417.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.9e-05/0.3365, allocations: 27.67 kB / 417.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.3366, allocations: 16.09 kB / 417.8 MB, free: 8.758 MB / 334.1 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,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1],truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001506/0.3367, allocations: 149.7 kB / 417.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.3368, allocations: 19.89 kB / 417.9 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.3368, allocations: 13.41 kB / 417.9 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3368, allocations: 3.984 kB / 417.9 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3368, allocations: 4 kB / 417.9 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3368, allocations: 7.875 kB / 417.9 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.3371, allocations: 221.5 kB / 418.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3371, allocations: 0 / 418.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.3371, allocations: 11.98 kB / 418.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3371, allocations: 4 kB / 418.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.3372, allocations: 0 / 418.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3372, allocations: 0 / 418.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3372, allocations: 4 kB / 418.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003911/0.3376, allocations: 242.8 kB / 418.4 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.3376, allocations: 92.91 kB / 418.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.3377, allocations: 8 kB / 418.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.797e-05/0.3378, allocations: 11.98 kB / 418.5 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.3378, allocations: 16.02 kB / 418.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.3378, allocations: 7.938 kB / 418.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001167/0.338, allocations: 149.2 kB / 418.7 MB, free: 7.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.338, allocations: 0 / 418.7 MB, free: 7.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.3384, allocations: 123.9 kB / 418.8 MB, free: 7.582 MB / 334.1 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]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007265/0.3392, allocations: 336.5 kB / 419.1 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004475/0.3396, allocations: 195.8 kB / 419.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3396, allocations: 0 / 419.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3398, allocations: 72.09 kB / 419.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.34, allocations: 8 kB / 419.4 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.3406, allocations: 281.2 kB / 419.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.341, allocations: 0.7161 MB / 420.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.611e-05/0.341, allocations: 25.41 kB / 420.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.3411, allocations: 19.38 kB / 420.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3411, allocations: 0 / 420.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of Templates: time 0.008105/0.3492, allocations: 3.567 MB / 424 MB, free: 2.352 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches