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.0007687/0.0007688, allocations: 94.59 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008523/0.0008522, allocations: 202.4 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.5 MB, free: 9.488 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002937, allocations: 8.234 kB / 308.4 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09875, allocations: 51.52 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001805/0.1006, allocations: 1.286 MB / 361.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.1033, allocations: 1.516 MB / 362.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1034, allocations: 4 kB / 362.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.1036, allocations: 11.92 kB / 362.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.1037, allocations: 11.86 kB / 362.7 MB, free: 10.22 MB / 302.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.001124/0.1048, allocations: 311.2 kB / 363 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.105, allocations: 135.5 kB / 363.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.698e-05/0.1051, allocations: 5.5 kB / 363.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.167e-05/0.1052, allocations: 51.78 kB / 363.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007865/0.106, allocations: 82.42 kB / 363.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.026e-05/0.106, allocations: 4 kB / 363.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/0.1068, allocations: 451.1 kB / 363.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.996e-05/0.1069, allocations: 31.84 kB / 363.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.346e-05/0.107, allocations: 85.3 kB / 363.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004778/0.1075, allocations: 283.8 kB / 364.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1075, allocations: 0 / 364.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1075, allocations: 0 / 364.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1075, allocations: 0 / 364.1 MB, free: 8.797 MB / 302.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.0008281/0.1083, allocations: 494.8 kB / 364.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1084, allocations: 8.031 kB / 364.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.1086, allocations: 36.67 kB / 364.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.1088, allocations: 213.7 kB / 364.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1089, allocations: 12.36 kB / 364.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.1089, allocations: 8.125 kB / 364.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.1092, allocations: 132.1 kB / 365 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1092, allocations: 0 / 365 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.1092, allocations: 0 / 365 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/0.1092, allocations: 8 kB / 365 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.1095, allocations: 67.95 kB / 365.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007905/0.1103, allocations: 0.5554 MB / 365.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.1107, allocations: 175.7 kB / 365.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1108, allocations: 70.61 kB / 365.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.1108, allocations: 0 / 365.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.1111, allocations: 165.1 kB / 366.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.303e-06/0.1111, allocations: 0 / 366.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005883/0.1117, allocations: 261.8 kB / 366.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.1118, allocations: 122.7 kB / 366.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.112, allocations: 199 kB / 366.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.112, allocations: 41.7 kB / 366.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.1121, allocations: 116.5 kB / 366.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.005e-05/0.1122, allocations: 43.53 kB / 366.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.1122, allocations: 37.69 kB / 366.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1123, allocations: 330.8 kB / 367.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.1126, allocations: 107.9 kB / 367.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.1128, allocations: 147.2 kB / 367.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.1132, allocations: 244.2 kB / 367.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1132, allocations: 3.938 kB / 367.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005298/0.1137, allocations: 309.2 kB / 368 MB, free: 4.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1138, allocations: 4 kB / 368 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1138, allocations: 0 / 368 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1138, allocations: 4 kB / 368 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.114, allocations: 35.91 kB / 368 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.114, allocations: 4 kB / 368 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.505e-05/0.1141, allocations: 23.94 kB / 368 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.1141, allocations: 4 kB / 368 MB, free: 4.57 MB / 302.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.0001521/0.1143, allocations: 158.7 kB / 368.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.1143, allocations: 15.81 kB / 368.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.18e-05/0.1144, allocations: 13.39 kB / 368.2 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1144, allocations: 4 kB / 368.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1144, allocations: 0 / 368.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1144, allocations: 7.938 kB / 368.2 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1146, allocations: 221.5 kB / 368.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1146, allocations: 0 / 368.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.373e-05/0.1147, allocations: 11.98 kB / 368.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.1147, allocations: 4 kB / 368.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1147, allocations: 0 / 368.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.1147, allocations: 3.938 kB / 368.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1147, allocations: 4 kB / 368.5 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003992/0.1151, allocations: 253.3 kB / 368.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.1152, allocations: 92.86 kB / 368.8 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.1152, allocations: 15.98 kB / 368.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.169e-05/0.1153, allocations: 12 kB / 368.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.787e-05/0.1154, allocations: 27.94 kB / 368.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1154, allocations: 7.984 kB / 368.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.1155, allocations: 133.2 kB / 369 MB, free: 3.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1155, allocations: 0 / 369 MB, free: 3.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004631/0.116, allocations: 124 kB / 369.1 MB, free: 3.387 MB / 302.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.0008363/0.1169, allocations: 317.4 kB / 369.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004612/0.1173, allocations: 215.8 kB / 369.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1174, allocations: 0 / 369.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.1175, allocations: 64.31 kB / 369.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.1178, allocations: 12 kB / 369.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006094/0.1184, allocations: 361.6 kB / 370.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.1187, allocations: 0.7162 MB / 370.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.1187, allocations: 15.44 kB / 370.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1187, allocations: 0 / 370.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of Templates: time 0.1771/0.2958, allocations: 3.898 MB / 374.7 MB, free: 18.65 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches