Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008117/0.0008117, allocations: 97.05 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009443/0.0009443, allocations: 204.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002065/0.0002066, allocations: 8 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.08002, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001512/0.08157, allocations: 1.285 MB / 360.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.08386, allocations: 1.512 MB / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.299e-05/0.08392, allocations: 0 / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.608e-05/0.084, allocations: 3.938 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.615e-05/0.08409, allocations: 27.8 kB / 362.2 MB, free: 10.36 MB / 302.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.0007127/0.08481, allocations: 303.3 kB / 362.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.08494, allocations: 127.5 kB / 362.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.556e-05/0.08499, allocations: 9.484 kB / 362.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.862e-05/0.08506, allocations: 63.69 kB / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005982/0.08566, allocations: 76.8 kB / 362.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.0857, allocations: 8 kB / 362.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005766/0.08628, allocations: 455.1 kB / 363.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.802e-05/0.08634, allocations: 31.84 kB / 363.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.056e-05/0.08641, allocations: 85.28 kB / 363.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.08689, allocations: 415.1 kB / 363.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.0869, allocations: 0 / 363.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08691, allocations: 4 kB / 363.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.08692, allocations: 0 / 363.7 MB, free: 8.801 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006138/0.08753, allocations: 494.8 kB / 364.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.08758, allocations: 12.03 kB / 364.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.025e-05/0.08765, allocations: 42.64 kB / 364.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.08784, allocations: 32.73 kB / 364.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.08801, allocations: 217.6 kB / 364.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.08803, allocations: 4.375 kB / 364.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.08806, allocations: 15.92 kB / 364.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.08831, allocations: 134.8 kB / 364.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.08832, allocations: 0 / 364.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.08834, allocations: 0 / 364.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.08835, allocations: 8 kB / 364.7 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.08856, allocations: 71.89 kB / 364.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000669/0.08924, allocations: 0.5711 MB / 365.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.0896, allocations: 163.7 kB / 365.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.08974, allocations: 70.61 kB / 365.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.08976, allocations: 4 kB / 365.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.09002, allocations: 153.8 kB / 365.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.09003, allocations: 0 / 365.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005365/0.09057, allocations: 257.4 kB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.09065, allocations: 126.8 kB / 366.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.09082, allocations: 203 kB / 366.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.09086, allocations: 45.69 kB / 366.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.89e-05/0.09093, allocations: 108.5 kB / 366.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.09097, allocations: 43.45 kB / 366.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.09102, allocations: 37.7 kB / 366.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.939e-05/0.09112, allocations: 330.8 kB / 366.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.09132, allocations: 111.9 kB / 366.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.09154, allocations: 147.2 kB / 367.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.09191, allocations: 236.2 kB / 367.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.09192, allocations: 0 / 367.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004786/0.0924, allocations: 305.3 kB / 367.6 MB, free: 4.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.09242, allocations: 8 kB / 367.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.09243, allocations: 0 / 367.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.09245, allocations: 96 / 367.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.0926, allocations: 39.86 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.09261, allocations: 4 kB / 367.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.005e-05/0.09271, allocations: 39.75 kB / 367.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.09273, allocations: 8 kB / 367.7 MB, free: 4.504 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * 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.0001153/0.09285, allocations: 150.8 kB / 367.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.09288, allocations: 15.81 kB / 367.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.222e-05/0.09292, allocations: 17.39 kB / 367.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-06/0.09293, allocations: 7.938 kB / 367.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.09294, allocations: 4 kB / 367.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.09294, allocations: 4 kB / 367.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.09312, allocations: 217.5 kB / 368.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.09313, allocations: 4 kB / 368.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.09319, allocations: 11.98 kB / 368.1 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.0932, allocations: 0 / 368.1 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.09322, allocations: 4 kB / 368.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.09323, allocations: 3.938 kB / 368.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.09323, allocations: 4 kB / 368.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003819/0.09362, allocations: 250.4 kB / 368.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.09367, allocations: 88.92 kB / 368.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.09371, allocations: 12 kB / 368.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.962e-05/0.09379, allocations: 15.92 kB / 368.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.09384, allocations: 15.98 kB / 368.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.09386, allocations: 4 kB / 368.5 MB, free: 3.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.987e-05/0.09396, allocations: 137.2 kB / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09397, allocations: 0 / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.09432, allocations: 128 kB / 368.8 MB, free: 3.332 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001311/0.09564, allocations: 1.08 MB / 369.8 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004015/0.09605, allocations: 211.8 kB / 370.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.09606, allocations: 0 / 370.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.09622, allocations: 72.16 kB / 370.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.0964, allocations: 11.98 kB / 370.1 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1403/0.2367, allocations: 2.345 MB / 372.5 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2369, allocations: 0.7191 MB / 373.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.821e-05/0.237, allocations: 19.97 kB / 373.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.585e-05/0.2371, allocations: 48.62 kB / 373.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.2371, allocations: 0.9375 kB / 373.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.2528, allocations: 5.1 MB / 378.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/0.2529, allocations: 227.2 kB / 378.6 MB, free: 16.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.976, allocations: 0 / 378.6 MB, free: 16.88 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches