Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001349, 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.001244/0.001244, 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.414/1.414, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 62.64 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.003115/0.1136, allocations: 1.351 MB / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008973/0.1145, allocations: 348.6 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.192e-05/0.1146, allocations: 4 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.255e-05/0.1147, allocations: 3.938 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.651e-05/0.1147, allocations: 0 / 359.3 MB, free: 12.32 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.0006409/0.1154, allocations: 87.7 kB / 359.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.876e-05/0.1155, allocations: 15.94 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.872e-05/0.1155, allocations: 4 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.738e-05/0.1156, allocations: 3.938 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.197e-05/0.1156, allocations: 19.92 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.1156, allocations: 3.984 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.1158, allocations: 83.86 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.178e-05/0.1159, allocations: 7.984 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.1159, allocations: 7.938 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.1161, allocations: 79.83 kB / 359.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1162, allocations: 3.938 kB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1162, allocations: 0 / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1162, allocations: 0 / 359.6 MB, free: 12 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004797/0.1167, allocations: 351.5 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1167, allocations: 12.03 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.088e-05/0.1168, allocations: 31.03 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.1169, allocations: 8.844 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.117, allocations: 176.2 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.117, allocations: 384 / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.117, allocations: 384 / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.1172, allocations: 50.17 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1172, allocations: 3.938 kB / 360.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.1172, allocations: 0 / 360.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1172, allocations: 4 kB / 360.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.924e-05/0.1172, allocations: 7.984 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.1177, allocations: 241 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.323e-05/0.1178, allocations: 38.44 kB / 360.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.753e-05/0.1178, allocations: 12.92 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.1179, allocations: 0 / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.1181, allocations: 51.41 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.793e-06/0.1181, allocations: 0 / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002048/0.1183, allocations: 61.58 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1183, allocations: 55.34 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.1185, allocations: 101.9 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.1185, allocations: 25.7 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.444e-05/0.1185, allocations: 92.12 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.1186, allocations: 7.906 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.1186, allocations: 17.72 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1187, allocations: 318.8 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.705e-05/0.1188, allocations: 8 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.006e-05/0.1188, allocations: 17.72 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.022e-05/0.1189, allocations: 29.64 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1189, allocations: 4 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001067/0.119, allocations: 61.62 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.119, allocations: 4 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.119, allocations: 0 / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1191, allocations: 3.938 kB / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.1191, allocations: 8 kB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1192, allocations: 0 / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.191e-05/0.1192, allocations: 3.906 kB / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.1192, allocations: 4 kB / 361.4 MB, free: 9.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 9.412e-05/0.1193, allocations: 138.7 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.1193, allocations: 0 / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.1193, allocations: 3.906 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1194, allocations: 0 / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1194, allocations: 384 / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.1194, allocations: 4.234 kB / 361.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.1196, allocations: 286.6 kB / 361.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1196, allocations: 0 / 361.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.978e-05/0.1197, allocations: 11.98 kB / 361.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.1197, allocations: 4 kB / 361.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.597e-06/0.1197, allocations: 0 / 361.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1197, allocations: 3.938 kB / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1197, allocations: 0 / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.1198, allocations: 143.5 kB / 361.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.1199, allocations: 81.02 kB / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.1199, allocations: 4 kB / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.651e-05/0.12, allocations: 4 kB / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.12, allocations: 7.984 kB / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.12, allocations: 0 / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.1201, allocations: 87.22 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1201, allocations: 0 / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.1204, allocations: 27.98 kB / 362.1 MB, free: 9.082 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000753/0.1211, allocations: 0.7715 MB / 362.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.1213, allocations: 23.98 kB / 362.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1213, allocations: 0 / 362.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.483e-05/0.1213, allocations: 11.94 kB / 363 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.1215, allocations: 12 kB / 363 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.1228, allocations: 1.223 MB / 364.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1231, allocations: 0.6768 MB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.886e-05/0.1231, allocations: 7.984 kB / 364.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.1232, allocations: 11.44 kB / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1232, allocations: 8 kB / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.1455, allocations: 1.883 MB / 366.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.299/8.444, allocations: 16.84 kB / 366.8 MB, free: 4.391 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches