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.001225/0.001225, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 67.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3524, allocations: 50.54 MB / 409.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003622/0.3561, allocations: 1.534 MB / 410.8 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.3591, allocations: 1.479 MB / 412.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.3593, allocations: 0 / 412.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.3594, allocations: 15.86 kB / 412.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.3596, allocations: 23.73 kB / 412.3 MB, free: 14.55 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.001436/0.361, allocations: 390.8 kB / 412.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.3613, allocations: 131.6 kB / 412.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.793e-05/0.3614, allocations: 17.47 kB / 412.8 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.323e-05/0.3614, allocations: 55.77 kB / 412.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000731/0.3622, allocations: 81.16 kB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.229e-05/0.3622, allocations: 8 kB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008455/0.3631, allocations: 419.3 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-05/0.3632, allocations: 39.78 kB / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.333e-05/0.3633, allocations: 71.58 kB / 413.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.3643, allocations: 402.7 kB / 413.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3643, allocations: 0 / 413.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3643, allocations: 0 / 413.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.3643, allocations: 3.938 kB / 413.9 MB, free: 12.96 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.001132/0.3655, allocations: 0.5135 MB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3655, allocations: 12.03 kB / 414.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.3658, allocations: 32.81 kB / 414.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.3661, allocations: 217.7 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.3661, allocations: 4.375 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.3662, allocations: 16.12 kB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.3665, allocations: 123.2 kB / 414.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3665, allocations: 3.938 kB / 414.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.3665, allocations: 4 kB / 414.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.3665, allocations: 0 / 414.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.3668, allocations: 63.95 kB / 414.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.3679, allocations: 0.5516 MB / 415.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.3684, allocations: 147.7 kB / 415.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.3686, allocations: 70.61 kB / 415.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.3686, allocations: 0 / 415.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.369, allocations: 149.8 kB / 415.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.044e-06/0.369, allocations: 4 kB / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007686/0.3698, allocations: 258 kB / 416 MB, free: 10.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.3699, allocations: 114.8 kB / 416.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.3702, allocations: 203.5 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.933e-05/0.3703, allocations: 49.69 kB / 416.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.3704, allocations: 112.7 kB / 416.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.563e-05/0.3705, allocations: 47.67 kB / 416.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3706, allocations: 49.7 kB / 416.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.3709, allocations: 338.8 kB / 416.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.3711, allocations: 95.95 kB / 417 MB, free: 9.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.3714, allocations: 136.2 kB / 417.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004795/0.3719, allocations: 224.2 kB / 417.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3719, allocations: 0 / 417.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006757/0.3726, allocations: 309.4 kB / 417.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.3727, allocations: 4 kB / 417.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.3727, allocations: 4 kB / 417.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.3727, allocations: 0 / 417.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.3729, allocations: 31.92 kB / 417.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3729, allocations: 0 / 417.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.3731, allocations: 31.77 kB / 417.7 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3731, allocations: 8 kB / 417.8 MB, free: 8.777 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.0002106/0.3733, allocations: 161.7 kB / 417.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.3734, allocations: 15.91 kB / 417.9 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.279e-05/0.3734, allocations: 21.39 kB / 418 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3734, allocations: 0 / 418 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.3735, allocations: 0 / 418 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.3735, allocations: 11.88 kB / 418 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.3738, allocations: 213.5 kB / 418.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3738, allocations: 0 / 418.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-05/0.3739, allocations: 15.98 kB / 418.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3739, allocations: 0 / 418.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.3739, allocations: 8 kB / 418.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.3739, allocations: 3.938 kB / 418.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3739, allocations: 0 / 418.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004198/0.3743, allocations: 246.5 kB / 418.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.3744, allocations: 93 kB / 418.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.3744, allocations: 12 kB / 418.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.835e-05/0.3745, allocations: 7.984 kB / 418.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.3746, allocations: 19.86 kB / 418.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.3746, allocations: 4 kB / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001237/0.3747, allocations: 141.2 kB / 418.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3747, allocations: 0 / 418.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.3753, allocations: 131.6 kB / 418.8 MB, free: 7.586 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.0009001/0.3762, allocations: 332.2 kB / 419.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004651/0.3767, allocations: 199.7 kB / 419.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3767, allocations: 4 kB / 419.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3769, allocations: 59.97 kB / 419.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.3771, allocations: 8.25 kB / 419.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007801/0.3779, allocations: 288.8 kB / 419.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.3783, allocations: 0.72 MB / 420.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.36e-05/0.3784, allocations: 25.41 kB / 420.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.782e-05/0.3785, allocations: 23.44 kB / 420.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3785, allocations: 0 / 420.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of Templates: time 0.008665/0.3872, allocations: 3.559 MB / 424 MB, free: 2.359 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