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.001602/0.001602, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001851/0.001851, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.49/1.49, allocations: 230.5 MB / 257.4 MB, free: 8.188 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.002062/0.002062, allocations: 55.91 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3087, allocations: 53.4 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002674/0.3114, allocations: 1.348 MB / 432.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008829/0.3122, allocations: 370.8 kB / 432.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.015e-05/0.3123, allocations: 3.938 kB / 432.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.3123, allocations: 4 kB / 432.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.78e-05/0.3124, allocations: 3.938 kB / 432.9 MB, free: 4.961 MB / 334.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.0005241/0.3129, allocations: 95.69 kB / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.33e-05/0.313, allocations: 12 kB / 433 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.029e-05/0.313, allocations: 4 kB / 433 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.969e-05/0.3131, allocations: 11.92 kB / 433 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.017e-05/0.3131, allocations: 15.86 kB / 433 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.3131, allocations: 0 / 433 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002951/0.3134, allocations: 123.8 kB / 433.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.528e-05/0.3134, allocations: 4 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.3134, allocations: 3.938 kB / 433.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.3136, allocations: 91.61 kB / 433.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3136, allocations: 4 kB / 433.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3136, allocations: 0 / 433.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.3137, allocations: 0 / 433.3 MB, free: 4.605 MB / 334.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.0004971/0.3141, allocations: 274.7 kB / 433.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3142, allocations: 8.031 kB / 433.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.293e-05/0.3143, allocations: 34.75 kB / 433.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.3143, allocations: 4.938 kB / 433.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.3144, allocations: 114.4 kB / 433.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3144, allocations: 4.375 kB / 433.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.3144, allocations: 12.36 kB / 433.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.3145, allocations: 30.27 kB / 433.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3146, allocations: 3.938 kB / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3146, allocations: 0 / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3146, allocations: 0 / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.883e-05/0.3146, allocations: 11.98 kB / 433.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.315, allocations: 220 kB / 434 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.666e-05/0.3151, allocations: 30.5 kB / 434 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.825e-05/0.3151, allocations: 16.86 kB / 434 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.3152, allocations: 0 / 434 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.3153, allocations: 55.34 kB / 434.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3153, allocations: 0 / 434.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001951/0.3155, allocations: 57.8 kB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3155, allocations: 55.41 kB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.195e-05/0.3156, allocations: 109.8 kB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3156, allocations: 29.7 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.3157, allocations: 84.14 kB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.3157, allocations: 11.88 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3157, allocations: 17.72 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3159, allocations: 318.8 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.861e-05/0.3159, allocations: 4 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.406e-05/0.3159, allocations: 29.66 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.908e-05/0.316, allocations: 29.64 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.316, allocations: 0 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.875e-05/0.3161, allocations: 61.62 kB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.3161, allocations: 4 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3161, allocations: 0 / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3161, allocations: 0 / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.874e-05/0.3162, allocations: 11.97 kB / 434.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.3162, allocations: 7.984 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.3162, allocations: 0 / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.3162, allocations: 4 kB / 434.9 MB, free: 2.777 MB / 334.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 8.517e-05/0.3163, allocations: 117.8 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.3163, allocations: 7.953 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/0.3163, allocations: 4 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3163, allocations: 0 / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3163, allocations: 384 / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3163, allocations: 0 / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.3166, allocations: 265.6 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3166, allocations: 7.984 kB / 435.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.361e-05/0.3166, allocations: 4 kB / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3166, allocations: 0 / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.3166, allocations: 0 / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3166, allocations: 0 / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3166, allocations: 0 / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.3167, allocations: 155.4 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.353e-06/0.3167, allocations: 7.891 kB / 435.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.3167, allocations: 4 kB / 435.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.128e-05/0.3168, allocations: 0 / 435.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.3168, allocations: 3.984 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.3168, allocations: 0 / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.222e-05/0.3169, allocations: 91.22 kB / 435.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3169, allocations: 0 / 435.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.3172, allocations: 23.92 kB / 435.6 MB, free: 2.016 MB / 334.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.000773/0.3179, allocations: 0.7638 MB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.318, allocations: 23.92 kB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.318, allocations: 0 / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.057e-05/0.3181, allocations: 12 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.3183, allocations: 6.656 kB / 436.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.3195, allocations: 1.227 MB / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.3198, allocations: 0.6768 MB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.96e-05/0.3198, allocations: 11.98 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.3199, allocations: 15.44 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3199, allocations: 0 / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.3484, allocations: 2.066 MB / 440.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.27, allocations: 3 kB / 440.4 MB, free: 13.21 MB / 350.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.777617613784969]