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.001311/0.001311, allocations: 103.3 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.001126/0.001126, 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.351/1.351, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.11 kB / 306.4 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1087, allocations: 50.52 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002465/0.1112, allocations: 1.585 MB / 358.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.1123, allocations: 0.6004 MB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.158e-05/0.1124, allocations: 0 / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.283e-05/0.1125, allocations: 3.938 kB / 359.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.1125, allocations: 15.86 kB / 359.1 MB, free: 12.23 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.0004593/0.113, allocations: 115.8 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.1131, allocations: 111.7 kB / 359.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.816e-05/0.1132, allocations: 13.11 kB / 359.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.472e-05/0.1132, allocations: 35.84 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.1138, allocations: 76.2 kB / 359.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.1139, allocations: 11.94 kB / 359.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.1141, allocations: 99.91 kB / 359.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.984e-05/0.1141, allocations: 39.77 kB / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.297e-05/0.1142, allocations: 51.66 kB / 359.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.1145, allocations: 191.7 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1145, allocations: 0 / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1145, allocations: 0 / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.1145, allocations: 0 / 359.8 MB, free: 11.5 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.0007063/0.1152, allocations: 454.8 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.1153, allocations: 12.03 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.124e-05/0.1153, allocations: 38.73 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004355/0.1158, allocations: 36.73 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.116, allocations: 208 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.116, allocations: 4.375 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.116, allocations: 4.375 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.1163, allocations: 123.3 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1163, allocations: 0 / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1163, allocations: 4 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1163, allocations: 0 / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.1165, allocations: 59.89 kB / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.1172, allocations: 448.8 kB / 361.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.1175, allocations: 129.2 kB / 361.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.1177, allocations: 57.75 kB / 361.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.1177, allocations: 0 / 361.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.118, allocations: 145 kB / 361.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.118, allocations: 0 / 361.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004954/0.1185, allocations: 241.9 kB / 361.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.1185, allocations: 85.11 kB / 361.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.1187, allocations: 178.3 kB / 362 MB, free: 9.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.1187, allocations: 45.69 kB / 362 MB, free: 9.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.1188, allocations: 120.4 kB / 362.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.812e-05/0.1189, allocations: 35.55 kB / 362.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.673e-05/0.1189, allocations: 53.94 kB / 362.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1191, allocations: 338.8 kB / 362.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.1193, allocations: 92.47 kB / 362.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.1195, allocations: 133.1 kB / 362.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.1198, allocations: 219.4 kB / 363 MB, free: 8.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1198, allocations: 0 / 363 MB, free: 8.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004764/0.1203, allocations: 285.2 kB / 363.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1203, allocations: 7.984 kB / 363.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1204, allocations: 4 kB / 363.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1204, allocations: 4.094 kB / 363.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.1205, allocations: 35.91 kB / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1205, allocations: 64 / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.551e-05/0.1206, allocations: 31.72 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.1207, allocations: 4 kB / 363.4 MB, free: 7.645 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.0001509/0.1208, allocations: 154.8 kB / 363.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.1208, allocations: 15.8 kB / 363.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.277e-05/0.1209, allocations: 13.41 kB / 363.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1209, allocations: 0 / 363.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1209, allocations: 4 kB / 363.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1209, allocations: 7.938 kB / 363.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.1211, allocations: 197.6 kB / 363.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1211, allocations: 3.984 kB / 363.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-05/0.1212, allocations: 11.94 kB / 363.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1212, allocations: 0 / 363.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.1212, allocations: 4 kB / 363.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1212, allocations: 0 / 363.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1212, allocations: 3.984 kB / 363.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.1216, allocations: 225.6 kB / 364 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.1217, allocations: 96.91 kB / 364.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.1217, allocations: 4 kB / 364.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.1218, allocations: 7.984 kB / 364.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.1218, allocations: 19.92 kB / 364.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.1218, allocations: 0 / 364.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.67e-05/0.1219, allocations: 132.2 kB / 364.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1219, allocations: 0 / 364.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000288/0.1222, allocations: 51.98 kB / 364.3 MB, free: 6.613 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.001023/0.1233, allocations: 0.9064 MB / 365.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003838/0.1237, allocations: 191.8 kB / 365.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1237, allocations: 0 / 365.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.1238, allocations: 63.91 kB / 365.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/0.124, allocations: 15.88 kB / 365.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.1264, allocations: 2.115 MB / 367.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1267, allocations: 0.7198 MB / 368.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.562e-05/0.1268, allocations: 12.88 kB / 368.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.485e-05/0.1269, allocations: 39.42 kB / 368.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1269, allocations: 0 / 368.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1736/0.3004, allocations: 3.336 MB / 371.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000132/0.3006, allocations: 230.9 kB / 371.9 MB, free: 19.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.135, allocations: 6.828 kB / 371.9 MB, free: 19.35 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