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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 103.5 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.22 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.08766, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002741/0.09044, allocations: 1.628 MB / 358.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.09292, allocations: 1.543 MB / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.767e-05/0.093, allocations: 0 / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.09312, allocations: 3.938 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.09324, allocations: 23.8 kB / 360.1 MB, free: 11.18 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.000826/0.09407, allocations: 303.3 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.09421, allocations: 135.5 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.86e-05/0.09427, allocations: 13.48 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.304e-05/0.09434, allocations: 51.7 kB / 360.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006735/0.09502, allocations: 80.41 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.09505, allocations: 8 kB / 360.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000644/0.0957, allocations: 455.1 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.167e-05/0.09578, allocations: 35.84 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.063e-05/0.09585, allocations: 59.59 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.09643, allocations: 415.1 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.09644, allocations: 0 / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09645, allocations: 0 / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.09646, allocations: 0 / 361.6 MB, free: 9.656 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.0009517/0.09741, allocations: 0.5126 MB / 362.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.09747, allocations: 12.03 kB / 362.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.891e-05/0.09753, allocations: 38.73 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.09776, allocations: 36.73 kB / 362.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.09801, allocations: 213.6 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.09804, allocations: 8.359 kB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.09807, allocations: 11.94 kB / 362.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.09834, allocations: 128.2 kB / 362.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.09835, allocations: 3.938 kB / 362.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.09837, allocations: 4 kB / 362.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.09838, allocations: 4 kB / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.09859, allocations: 63.89 kB / 362.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007665/0.09937, allocations: 0.5594 MB / 363.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.09972, allocations: 151.8 kB / 363.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.09986, allocations: 66.61 kB / 363.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.09988, allocations: 4 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.1002, allocations: 149.8 kB / 363.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.1002, allocations: 0 / 363.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005586/0.1007, allocations: 245.3 kB / 363.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.1008, allocations: 122.8 kB / 363.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.101, allocations: 203 kB / 364.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.101, allocations: 45.69 kB / 364.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.599e-05/0.1011, allocations: 120.5 kB / 364.3 MB, free: 6.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.1012, allocations: 39.55 kB / 364.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.072e-05/0.1012, allocations: 65.67 kB / 364.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1014, allocations: 326.8 kB / 364.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1016, allocations: 99.94 kB / 364.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.1018, allocations: 143.2 kB / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.1022, allocations: 232.2 kB / 365.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1022, allocations: 0 / 365.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000549/0.1028, allocations: 297.2 kB / 365.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1028, allocations: 4 kB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1028, allocations: 0 / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1028, allocations: 4 kB / 365.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.103, allocations: 39.84 kB / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.103, allocations: 4 kB / 365.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.89e-05/0.1031, allocations: 23.78 kB / 365.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.1031, allocations: 4 kB / 365.5 MB, free: 5.406 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,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],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]) * 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.0001355/0.1033, allocations: 163 kB / 365.7 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.1033, allocations: 15.8 kB / 365.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.1034, allocations: 13.41 kB / 365.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1034, allocations: 7.938 kB / 365.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1034, allocations: 0 / 365.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1034, allocations: 0 / 365.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/0.1037, allocations: 225.4 kB / 365.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1037, allocations: 0 / 365.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.866e-05/0.1038, allocations: 15.98 kB / 366 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1038, allocations: 0 / 366 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.1038, allocations: 7.938 kB / 366 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1038, allocations: 7.922 kB / 366 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1038, allocations: 3.938 kB / 366 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.1042, allocations: 234.6 kB / 366.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.1043, allocations: 88.92 kB / 366.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.1043, allocations: 15.98 kB / 366.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.01e-05/0.1044, allocations: 7.938 kB / 366.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.1045, allocations: 15.97 kB / 366.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.1045, allocations: 8 kB / 366.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.1047, allocations: 141.1 kB / 366.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1047, allocations: 4 kB / 366.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.1052, allocations: 127.9 kB / 366.6 MB, free: 4.227 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.001598/0.1068, allocations: 1.061 MB / 367.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.1072, allocations: 195.8 kB / 367.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1072, allocations: 0 / 367.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.1074, allocations: 67.91 kB / 367.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.1076, allocations: 8 kB / 367.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.1106, allocations: 2.334 MB / 370.3 MB, free: 464 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1624/0.2729, allocations: 0.7102 MB / 371 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.2731, allocations: 23.02 kB / 371 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.2733, allocations: 43.94 kB / 371 MB, free: 20.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2733, allocations: 3.594 kB / 371 MB, free: 20.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0321/0.3054, allocations: 5.216 MB / 376.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001543/0.3056, allocations: 228 kB / 376.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.234, allocations: 0 / 376.5 MB, free: 19.54 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > 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