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.001784/0.001784, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002281/0.002281, allocations: 214.4 kB / 23.73 MB, free: 4.164 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.587/1.587, allocations: 230.5 MB / 257.4 MB, free: 7.781 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.001741/0.001741, allocations: 67.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2279, allocations: 53.41 MB / 431.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002421/0.2303, allocations: 1.352 MB / 432.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007774/0.2311, allocations: 354.8 kB / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.527e-05/0.2311, allocations: 0 / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.2311, allocations: 3.938 kB / 432.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-05/0.2312, allocations: 8 kB / 432.8 MB, free: 4.746 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.0004563/0.2316, allocations: 95.64 kB / 432.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.975e-05/0.2317, allocations: 15.98 kB / 433 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.615e-05/0.2317, allocations: 3.938 kB / 433 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.554e-05/0.2317, allocations: 7.984 kB / 433 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.572e-05/0.2318, allocations: 11.94 kB / 433 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.2318, allocations: 0 / 433 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.232, allocations: 119.8 kB / 433.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.232, allocations: 7.984 kB / 433.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.5e-05/0.2321, allocations: 7.938 kB / 433.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.2322, allocations: 85.44 kB / 433.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2322, allocations: 4 kB / 433.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2322, allocations: 0 / 433.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2322, allocations: 0 / 433.2 MB, free: 4.398 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.0003709/0.2326, allocations: 270.2 kB / 433.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.2326, allocations: 15.98 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.429e-05/0.2327, allocations: 34.75 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.363e-05/0.2327, allocations: 0.9375 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2328, allocations: 114.4 kB / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.2329, allocations: 384 / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.2329, allocations: 4.375 kB / 433.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.233, allocations: 42.25 kB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.233, allocations: 7.875 kB / 433.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.233, allocations: 0 / 433.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.233, allocations: 4 kB / 433.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.375e-05/0.233, allocations: 7.984 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004075/0.2334, allocations: 223.9 kB / 433.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.166e-05/0.2335, allocations: 26.52 kB / 433.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.791e-05/0.2335, allocations: 8.922 kB / 433.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.2335, allocations: 4 kB / 433.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.2337, allocations: 59.39 kB / 434 MB, free: 3.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.2337, allocations: 0 / 434 MB, free: 3.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001908/0.2339, allocations: 57.62 kB / 434.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.2339, allocations: 51.41 kB / 434.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.762e-05/0.234, allocations: 109.8 kB / 434.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.234, allocations: 25.7 kB / 434.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.543e-05/0.2341, allocations: 88.14 kB / 434.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.2341, allocations: 7.891 kB / 434.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.2342, allocations: 21.7 kB / 434.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2343, allocations: 314.8 kB / 434.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.796e-05/0.2343, allocations: 8 kB / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.128e-05/0.2344, allocations: 21.7 kB / 434.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.654e-05/0.2344, allocations: 37.59 kB / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2344, allocations: 0 / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.067e-05/0.2345, allocations: 53.92 kB / 434.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2345, allocations: 7.938 kB / 434.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.2345, allocations: 3.984 kB / 434.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2346, allocations: 4 kB / 434.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.725e-05/0.2346, allocations: 7.984 kB / 434.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2346, allocations: 0 / 434.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.203e-05/0.2347, allocations: 11.97 kB / 434.8 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.2347, allocations: 0 / 434.8 MB, free: 2.566 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 0.0001078/0.2348, allocations: 118.4 kB / 434.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.2348, allocations: 3.953 kB / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.2348, allocations: 8 kB / 434.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2348, allocations: 0 / 434.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2348, allocations: 0 / 434.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2348, allocations: 0 / 434.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.2351, allocations: 257.6 kB / 435.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2351, allocations: 0 / 435.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.489e-05/0.2351, allocations: 3.984 kB / 435.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2351, allocations: 4 kB / 435.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.2351, allocations: 4.375 kB / 435.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2351, allocations: 0 / 435.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2351, allocations: 7.938 kB / 435.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.2353, allocations: 147.5 kB / 435.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-06/0.2353, allocations: 3.953 kB / 435.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.2353, allocations: 4 kB / 435.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.896e-05/0.2353, allocations: 0 / 435.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.2354, allocations: 7.922 kB / 435.4 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.2354, allocations: 4 kB / 435.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.606e-05/0.2354, allocations: 91.22 kB / 435.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2354, allocations: 0 / 435.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.2357, allocations: 27.92 kB / 435.5 MB, free: 1.805 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.0008642/0.2366, allocations: 0.767 MB / 436.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.2367, allocations: 23.92 kB / 436.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2367, allocations: 3.938 kB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.308e-05/0.2367, allocations: 4 kB / 436.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.2369, allocations: 7.984 kB / 436.3 MB, free: 1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.2382, allocations: 1.235 MB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.469e-05/0.2382, allocations: 55.36 kB / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.812e-05/0.2382, allocations: 8.359 kB / 437.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.2383, allocations: 19.5 kB / 437.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2383, allocations: 0 / 437.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3135/0.5518, allocations: 2.459 MB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.44, allocations: 11.61 kB / 440.1 MB, free: 13.22 MB / 350.1 MB " [Timeout remaining time 647] (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: 15.503140414133668]