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.001713/0.001713, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00146/0.00146, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.518/1.518, allocations: 230.5 MB / 257.4 MB, free: 7.734 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.001989/0.001989, allocations: 63.91 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3178, allocations: 53.41 MB / 431.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002951/0.3207, allocations: 1.355 MB / 432.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3218, allocations: 354.8 kB / 432.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.947e-05/0.3218, allocations: 0 / 432.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.816e-05/0.3218, allocations: 3.938 kB / 432.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/0.3219, allocations: 0 / 432.8 MB, free: 4.723 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.0006746/0.3226, allocations: 103.6 kB / 432.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.567e-05/0.3227, allocations: 12 kB / 433 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.509e-05/0.3227, allocations: 0 / 433 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.192e-05/0.3228, allocations: 15.97 kB / 433 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.476e-05/0.3228, allocations: 11.94 kB / 433 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.3228, allocations: 0 / 433 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.3231, allocations: 115.8 kB / 433.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.3231, allocations: 8 kB / 433.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.3232, allocations: 7.922 kB / 433.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.3234, allocations: 81.45 kB / 433.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3234, allocations: 4 kB / 433.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.3234, allocations: 0 / 433.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.3234, allocations: 0 / 433.2 MB, free: 4.375 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.0006209/0.3241, allocations: 278.1 kB / 433.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.412e-05/0.3241, allocations: 15.98 kB / 433.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.124e-05/0.3242, allocations: 34.75 kB / 433.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.3242, allocations: 0.9375 kB / 433.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.3243, allocations: 114.4 kB / 433.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3244, allocations: 384 / 433.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.3244, allocations: 4.375 kB / 433.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.3245, allocations: 38.25 kB / 433.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3245, allocations: 3.938 kB / 433.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.3245, allocations: 0 / 433.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3245, allocations: 0 / 433.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.122e-05/0.3245, allocations: 7.984 kB / 433.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004457/0.325, allocations: 224 kB / 433.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.988e-05/0.325, allocations: 34.5 kB / 433.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.3251, allocations: 12.92 kB / 433.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.3251, allocations: 0 / 433.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.3253, allocations: 51.39 kB / 434 MB, free: 3.434 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3253, allocations: 0 / 434 MB, free: 3.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001937/0.3255, allocations: 61.62 kB / 434.1 MB, free: 3.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3255, allocations: 51.41 kB / 434.1 MB, free: 3.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3256, allocations: 113.8 kB / 434.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.3256, allocations: 25.7 kB / 434.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.3257, allocations: 88.14 kB / 434.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.3257, allocations: 11.89 kB / 434.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.3257, allocations: 25.64 kB / 434.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3259, allocations: 310.8 kB / 434.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.3259, allocations: 8 kB / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.904e-05/0.326, allocations: 25.7 kB / 434.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.375e-05/0.326, allocations: 33.53 kB / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.326, allocations: 0 / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.867e-05/0.3261, allocations: 57.69 kB / 434.8 MB, free: 2.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3261, allocations: 11.97 kB / 434.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3261, allocations: 0 / 434.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3261, allocations: 0 / 434.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.532e-05/0.3262, allocations: 11.98 kB / 434.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3262, allocations: 0 / 434.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.3262, allocations: 0 / 434.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3262, allocations: 4 kB / 434.8 MB, free: 2.539 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 9.487e-05/0.3263, allocations: 117.8 kB / 434.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/0.3264, allocations: 3.953 kB / 434.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.3264, allocations: 4 kB / 434.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3264, allocations: 4 kB / 434.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3264, allocations: 4 kB / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3264, allocations: 0 / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.3266, allocations: 257.6 kB / 435.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3266, allocations: 4 kB / 435.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.318e-05/0.3266, allocations: 4 kB / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3266, allocations: 0 / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3267, allocations: 0 / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3267, allocations: 0 / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3267, allocations: 4 kB / 435.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.3268, allocations: 143.8 kB / 435.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-06/0.3268, allocations: 7.953 kB / 435.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3268, allocations: 4.422 kB / 435.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.839e-05/0.3269, allocations: 7.969 kB / 435.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.3269, allocations: 7.938 kB / 435.4 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.3269, allocations: 7.938 kB / 435.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.41e-05/0.327, allocations: 83.22 kB / 435.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.327, allocations: 0 / 435.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.3272, allocations: 31.92 kB / 435.5 MB, free: 1.773 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.0008745/0.3281, allocations: 0.7626 MB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.3282, allocations: 31.95 kB / 436.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3282, allocations: 0 / 436.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.576e-05/0.3283, allocations: 4 kB / 436.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.3285, allocations: 7.984 kB / 436.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3297, allocations: 1.231 MB / 437.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.982e-05/0.3298, allocations: 63.34 kB / 437.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.508e-05/0.3298, allocations: 4 kB / 437.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.927e-05/0.3299, allocations: 11.44 kB / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3299, allocations: 0 / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.3589, allocations: 2.467 MB / 440.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.06, allocations: 10.69 kB / 440.1 MB, free: 13.2 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000384541 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.csv","/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.751396040897816]