Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001519, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001826/0.001826, allocations: 206.4 kB / 18.58 MB, free: 4.582 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.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 64.48 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08906, allocations: 50.52 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002519/0.09161, allocations: 1.49 MB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.09266, allocations: 0.5746 MB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.09274, allocations: 0 / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.503e-05/0.09285, allocations: 15.88 kB / 359.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.979e-05/0.09292, allocations: 19.8 kB / 359.7 MB, free: 11.92 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.000525/0.09345, allocations: 139.5 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.09358, allocations: 111.7 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.09364, allocations: 13.12 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.379e-05/0.0937, allocations: 47.83 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.09415, allocations: 77.28 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.738e-05/0.09419, allocations: 12 kB / 360.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.09439, allocations: 107.9 kB / 360.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.09445, allocations: 39.89 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.636e-05/0.09451, allocations: 55.61 kB / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.09479, allocations: 195.7 kB / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.0948, allocations: 0 / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09481, allocations: 0 / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.09481, allocations: 0 / 360.5 MB, free: 11.14 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005473/0.09537, allocations: 454.8 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.09541, allocations: 12.03 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.583e-05/0.09547, allocations: 42.73 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.09576, allocations: 40.72 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.09591, allocations: 196 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.09594, allocations: 8.359 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.09597, allocations: 12.36 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.09617, allocations: 111.3 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.09619, allocations: 4 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.09621, allocations: 4 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.09622, allocations: 0 / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.09638, allocations: 59.89 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.09701, allocations: 448.8 kB / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.09729, allocations: 129.2 kB / 361.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.61e-05/0.0974, allocations: 53.75 kB / 362 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.09742, allocations: 8 kB / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.09764, allocations: 141 kB / 362.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.09765, allocations: 0 / 362.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004749/0.09813, allocations: 237.9 kB / 362.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.0982, allocations: 97.09 kB / 362.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.09835, allocations: 178.8 kB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.09839, allocations: 41.69 kB / 362.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.64e-05/0.09845, allocations: 116.5 kB / 362.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.09849, allocations: 39.55 kB / 362.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.09857, allocations: 53.92 kB / 362.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.09868, allocations: 334.7 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.09887, allocations: 100.5 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.09906, allocations: 134 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.09937, allocations: 211.4 kB / 363.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.09939, allocations: 0 / 363.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004261/0.09982, allocations: 293.2 kB / 363.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.09984, allocations: 4 kB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.09985, allocations: 4 kB / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.09987, allocations: 0 / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.1, allocations: 27.92 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.1, allocations: 7.984 kB / 364 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.116e-05/0.1001, allocations: 23.78 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.1001, allocations: 11.98 kB / 364 MB, free: 7.285 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001157/0.1002, allocations: 162.9 kB / 364.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.1003, allocations: 11.81 kB / 364.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.702e-05/0.1003, allocations: 13.41 kB / 364.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1003, allocations: 4 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1003, allocations: 3.938 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1003, allocations: 3.938 kB / 364.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.1005, allocations: 201.6 kB / 364.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1005, allocations: 8 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.1006, allocations: 4 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1006, allocations: 0 / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1006, allocations: 11.98 kB / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1006, allocations: 0 / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1006, allocations: 0 / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.1009, allocations: 232.6 kB / 364.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.101, allocations: 88.92 kB / 364.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.101, allocations: 8 kB / 364.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.544e-05/0.101, allocations: 11.98 kB / 364.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1011, allocations: 11.92 kB / 364.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.1011, allocations: 4 kB / 364.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.831e-05/0.1012, allocations: 123.2 kB / 364.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1012, allocations: 0 / 364.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.1015, allocations: 47.98 kB / 364.9 MB, free: 6.258 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.000905/0.1024, allocations: 0.9137 MB / 365.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.1028, allocations: 195.8 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1028, allocations: 128 / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.1029, allocations: 67.91 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.1031, allocations: 11.94 kB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.1051, allocations: 2.083 MB / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.1053, allocations: 0.7158 MB / 368.9 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.972e-05/0.1054, allocations: 17.02 kB / 368.9 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.49e-05/0.1055, allocations: 43.42 kB / 369 MB, free: 2.082 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1055, allocations: 0 / 369 MB, free: 2.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6336/0.7391, allocations: 3.549 MB / 372.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/9.011, allocations: 4.875 kB / 372.5 MB, free: 19.39 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches