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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3077, allocations: 50.54 MB / 408.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002564/0.3103, allocations: 1.356 MB / 410.1 MB, free: 224 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007593/0.3111, allocations: 349.4 kB / 410.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.3112, allocations: 0 / 410.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.3112, allocations: 0 / 410.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.181e-05/0.3113, allocations: 3.938 kB / 410.5 MB, free: 15.88 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.0004952/0.3118, allocations: 87.72 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.56e-05/0.3119, allocations: 15.94 kB / 410.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.3119, allocations: 3.984 kB / 410.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.669e-05/0.312, allocations: 7.938 kB / 410.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.58e-05/0.312, allocations: 19.92 kB / 410.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.312, allocations: 0 / 410.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.3122, allocations: 83.91 kB / 410.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.3122, allocations: 4 kB / 410.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.3123, allocations: 11.88 kB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.3125, allocations: 79.81 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3125, allocations: 4 kB / 410.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3125, allocations: 0 / 410.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3125, allocations: 0 / 410.8 MB, free: 15.56 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.0003996/0.3129, allocations: 349.2 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3129, allocations: 12.03 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.437e-05/0.313, allocations: 34.75 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.925e-05/0.313, allocations: 0.9375 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.3131, allocations: 168.2 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3132, allocations: 4.375 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.3132, allocations: 384 / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.247e-05/0.3133, allocations: 38.25 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3133, allocations: 11.86 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.3133, allocations: 4 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3133, allocations: 0 / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.386e-05/0.3133, allocations: 11.98 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003588/0.3137, allocations: 245 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.78e-05/0.3138, allocations: 34.5 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.602e-05/0.3138, allocations: 16.86 kB / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.071e-06/0.3138, allocations: 0 / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.314, allocations: 51.41 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.314, allocations: 0 / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001646/0.3141, allocations: 61.61 kB / 411.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.3142, allocations: 51.41 kB / 411.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.894e-05/0.3143, allocations: 109.8 kB / 411.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.3143, allocations: 25.7 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.3143, allocations: 91.98 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.3144, allocations: 11.89 kB / 412.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/0.3144, allocations: 21.72 kB / 412.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.3145, allocations: 314.8 kB / 412.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.309e-05/0.3145, allocations: 8 kB / 412.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.271e-05/0.3146, allocations: 21.72 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.637e-05/0.3146, allocations: 29.64 kB / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3146, allocations: 0 / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.007e-05/0.3147, allocations: 61.62 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3147, allocations: 8 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3148, allocations: 384 / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3148, allocations: 0 / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.964e-05/0.3148, allocations: 8 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3148, allocations: 7.938 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.3149, allocations: 0 / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.3149, allocations: 4 kB / 412.5 MB, free: 13.53 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 7.458e-05/0.315, allocations: 125.6 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.315, allocations: 8.031 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.315, allocations: 3.906 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.315, allocations: 0 / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.315, allocations: 0 / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.315, allocations: 0 / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.3153, allocations: 286.5 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3153, allocations: 3.984 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.865e-05/0.3153, allocations: 4.281 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3153, allocations: 4 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.3153, allocations: 0 / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3153, allocations: 4 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3153, allocations: 0 / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.3154, allocations: 151.4 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.3155, allocations: 77.11 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.3155, allocations: 0 / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.567e-05/0.3156, allocations: 7.984 kB / 413.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.3156, allocations: 4 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.3156, allocations: 3.938 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.941e-05/0.3156, allocations: 87.22 kB / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3156, allocations: 0 / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.3159, allocations: 31.98 kB / 413.3 MB, free: 12.63 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.0006419/0.3166, allocations: 0.7653 MB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.469e-05/0.3167, allocations: 19.98 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3167, allocations: 0 / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.874e-05/0.3167, allocations: 11.94 kB / 414.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.3169, allocations: 7.984 kB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.318, allocations: 1.219 MB / 415.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.3184, allocations: 0.6768 MB / 416 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.097e-05/0.3184, allocations: 8 kB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.543e-05/0.3185, allocations: 11.53 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3185, allocations: 3.938 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.3377, allocations: 1.953 MB / 418 MB, free: 7.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.278, allocations: 3.938 kB / 418 MB, free: 7.922 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches