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.0008357/0.0008357, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001336/0.001336, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8828/0.8828, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.804e-06/1.804e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.933e-05, allocations: 3.125 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002317/0.002336, allocations: 1.367 MB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006376/0.002974, allocations: 346.8 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.003006, allocations: 4 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.003034, allocations: 3.938 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-05/0.003088, allocations: 0 / 326.2 MB, free: 14.18 MB / 298.7 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.0004496/0.003537, allocations: 91.58 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.958e-05/0.003607, allocations: 15.92 kB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.986e-05/0.003647, allocations: 8 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.967e-05/0.003686, allocations: 11.92 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.383e-05/0.00371, allocations: 3.984 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.003726, allocations: 8 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.003921, allocations: 115.7 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.003939, allocations: 7.984 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.003965, allocations: 3.984 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.004151, allocations: 99.73 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004153, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.004155, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.00416, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 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.0003812/0.004541, allocations: 274.2 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.004582, allocations: 15.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.004644, allocations: 34.73 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.004671, allocations: 8.938 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.113e-05/0.004752, allocations: 109.8 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.004766, allocations: 4.375 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.004775, allocations: 384 / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.004878, allocations: 42.19 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.004887, allocations: 192 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.004898, allocations: 4.375 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.004906, allocations: 8.109 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.157e-05/0.004928, allocations: 4 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003535/0.005281, allocations: 220 kB / 327.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.478e-05/0.005336, allocations: 26.58 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.005357, allocations: 16.86 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.005367, allocations: 0 / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001065/0.005473, allocations: 55.34 kB / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 7.12e-07/0.005474, allocations: 0 / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001623/0.005636, allocations: 57.62 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.005673, allocations: 63.28 kB / 327.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.698e-05/0.00574, allocations: 113.8 kB / 327.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.769e-06/0.00575, allocations: 25.7 kB / 327.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.005795, allocations: 80.14 kB / 327.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.005806, allocations: 7.953 kB / 327.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/0.005837, allocations: 21.72 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.252e-05/0.00592, allocations: 318.8 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.568e-05/0.005935, allocations: 4 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.373e-05/0.005959, allocations: 21.72 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.756e-05/0.005997, allocations: 29.7 kB / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.005999, allocations: 0 / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 5.951e-05/0.006058, allocations: 61.5 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.00607, allocations: 8 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.006075, allocations: 4.031 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.006086, allocations: 0 / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.018e-05/0.006136, allocations: 8 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.006141, allocations: 0 / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.006154, allocations: 3.953 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.006162, allocations: 8 kB / 328.2 MB, free: 11.98 MB / 298.7 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 5.606e-05/0.006218, allocations: 113.8 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-06/0.006223, allocations: 7.938 kB / 328.3 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.006242, allocations: 4 kB / 328.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.006244, allocations: 0 / 328.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.006248, allocations: 0 / 328.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.006251, allocations: 4 kB / 328.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.006422, allocations: 257.7 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.006423, allocations: 0 / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-06/0.006431, allocations: 4 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.81e-07/0.006431, allocations: 0 / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-06/0.006436, allocations: 0 / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.006438, allocations: 3.984 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.006439, allocations: 3.938 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.272e-05/0.006512, allocations: 147.8 kB / 328.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.00652, allocations: 11.95 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-06/0.006529, allocations: 4.375 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.378e-05/0.006553, allocations: 0 / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.896e-05/0.006572, allocations: 0 / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.006585, allocations: 11.98 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.006619, allocations: 87.22 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006619, allocations: 0 / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.00682, allocations: 23.94 kB / 328.9 MB, free: 11.23 MB / 298.7 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.0006939/0.007514, allocations: 0.7783 MB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.578e-05/0.0076, allocations: 19.98 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.007602, allocations: 0 / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.782e-05/0.00762, allocations: 7.938 kB / 329.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.007783, allocations: 8 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007716/0.008555, allocations: 1.231 MB / 330.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.379e-05/0.008599, allocations: 63.34 kB / 331 MB, free: 9.012 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.9e-05/0.008628, allocations: 7.984 kB / 331 MB, free: 9.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.66e-05/0.008664, allocations: 16.5 kB / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.008665, allocations: 0 / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.02426, allocations: 2.618 MB / 333.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.668/6.692, allocations: 14.61 kB / 333.6 MB, free: 6.445 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.375751297920942]