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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001684/0.001684, allocations: 117.2 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 210.6 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 63.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1107, allocations: 53.31 MB / 426.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002986/0.1137, allocations: 1.351 MB / 428 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.1145, allocations: 370.8 kB / 428.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.982e-05/0.1146, allocations: 0 / 428.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.765e-05/0.1146, allocations: 0 / 428.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.603e-05/0.1147, allocations: 3.938 kB / 428.4 MB, free: 3.281 MB / 350.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.0005558/0.1152, allocations: 83.73 kB / 428.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.79e-05/0.1153, allocations: 19.92 kB / 428.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.13e-05/0.1153, allocations: 0 / 428.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.873e-05/0.1154, allocations: 15.92 kB / 428.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.1154, allocations: 7.984 kB / 428.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.1154, allocations: 7.938 kB / 428.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.1156, allocations: 87.89 kB / 428.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.1156, allocations: 7.938 kB / 428.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.846e-05/0.1157, allocations: 11.92 kB / 428.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.1159, allocations: 87.7 kB / 428.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1159, allocations: 0 / 428.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1159, allocations: 0 / 428.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1159, allocations: 0 / 428.7 MB, free: 2.957 MB / 350.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.0004673/0.1163, allocations: 351.3 kB / 429 MB, free: 2.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1164, allocations: 8.031 kB / 429.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.402e-05/0.1164, allocations: 34.75 kB / 429.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.459e-05/0.1165, allocations: 0.9375 kB / 429.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.1166, allocations: 168.3 kB / 429.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1166, allocations: 384 / 429.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.1166, allocations: 384 / 429.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1167, allocations: 42.25 kB / 429.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1167, allocations: 3.938 kB / 429.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.1168, allocations: 4 kB / 429.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1168, allocations: 0 / 429.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.733e-05/0.1168, allocations: 11.92 kB / 429.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/0.1172, allocations: 248.9 kB / 429.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.342e-05/0.1173, allocations: 30.56 kB / 429.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.607e-05/0.1173, allocations: 12.86 kB / 429.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.44e-06/0.1173, allocations: 0 / 429.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/0.1175, allocations: 59.34 kB / 429.7 MB, free: 1.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 4.548e-06/0.1175, allocations: 3.984 kB / 429.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001904/0.1177, allocations: 53.67 kB / 429.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1177, allocations: 51.41 kB / 429.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.597e-05/0.1178, allocations: 105.8 kB / 429.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.1178, allocations: 29.69 kB / 429.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.226e-05/0.1179, allocations: 88.12 kB / 430 MB, free: 1.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1179, allocations: 15.89 kB / 430 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.476e-05/0.1179, allocations: 17.72 kB / 430 MB, free: 1.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1181, allocations: 318.8 kB / 430.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.329e-05/0.1181, allocations: 4 kB / 430.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.407e-05/0.1182, allocations: 25.66 kB / 430.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.384e-05/0.1182, allocations: 29.64 kB / 430.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1182, allocations: 4 kB / 430.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.584e-05/0.1183, allocations: 57.62 kB / 430.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.1183, allocations: 8 kB / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1183, allocations: 0 / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1184, allocations: 0 / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.8e-05/0.1184, allocations: 7.938 kB / 430.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1184, allocations: 4 kB / 430.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.1184, allocations: 0 / 430.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1184, allocations: 384 / 430.5 MB, free: 0.9453 MB / 350.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 0.0001055/0.1185, allocations: 125.8 kB / 430.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.1186, allocations: 7.953 kB / 430.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.1186, allocations: 7.844 kB / 430.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1186, allocations: 0 / 430.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1186, allocations: 4 kB / 430.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1186, allocations: 0 / 430.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.1189, allocations: 290.5 kB / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1189, allocations: 0 / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-05/0.1189, allocations: 3.984 kB / 430.9 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1189, allocations: 4 kB / 430.9 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.1189, allocations: 4 kB / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1189, allocations: 0 / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1189, allocations: 0 / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.119, allocations: 147.4 kB / 431 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.1191, allocations: 81.06 kB / 431.1 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.1191, allocations: 4 kB / 431.1 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.933e-05/0.1191, allocations: 0 / 431.1 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.1192, allocations: 11.98 kB / 431.1 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.1192, allocations: 0 / 431.1 MB, free: 160 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.94e-05/0.1192, allocations: 83.22 kB / 431.2 MB, free: 76 kB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1192, allocations: 0 / 431.2 MB, free: 76 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.1195, allocations: 31.92 kB / 431.3 MB, free: 44 kB / 350.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.0009271/0.1204, allocations: 0.7708 MB / 432 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.1206, allocations: 19.98 kB / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1206, allocations: 0 / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.579e-05/0.1206, allocations: 4 kB / 432 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.1208, allocations: 14.09 kB / 432.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1221, allocations: 1.235 MB / 433.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1224, allocations: 0.6729 MB / 434 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.273e-05/0.1225, allocations: 7.984 kB / 434 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.1225, allocations: 15.44 kB / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1225, allocations: 0 / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.1476, allocations: 1.937 MB / 435.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.331, allocations: 19.86 kB / 435.9 MB, free: 11.32 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000384541 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.05636502429843]