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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.00138, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001408/0.001408, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.482/1.482, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 67.89 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1111, allocations: 53.32 MB / 426.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002752/0.1138, allocations: 1.544 MB / 428.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.1163, allocations: 1.5 MB / 429.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.63e-05/0.1164, allocations: 0 / 429.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.876e-05/0.1165, allocations: 11.81 kB / 429.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.1166, allocations: 23.8 kB / 429.7 MB, free: 1.879 MB / 350.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.001003/0.1176, allocations: 394.8 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.1178, allocations: 131.6 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.089e-05/0.1178, allocations: 5.5 kB / 430.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.524e-05/0.1179, allocations: 59.77 kB / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000609/0.1185, allocations: 96.69 kB / 430.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.1185, allocations: 12 kB / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006619/0.1192, allocations: 435.2 kB / 430.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.055e-05/0.1192, allocations: 39.84 kB / 430.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.408e-05/0.1193, allocations: 59.66 kB / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005713/0.1199, allocations: 406.7 kB / 431.4 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1199, allocations: 3.938 kB / 431.4 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1199, allocations: 0 / 431.4 MB, free: 272 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1199, allocations: 3.938 kB / 431.4 MB, free: 268 kB / 350.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.1959/0.3158, allocations: 0.5176 MB / 431.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3159, allocations: 8.312 kB / 431.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.426e-05/0.3159, allocations: 40.78 kB / 431.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.3162, allocations: 31.67 kB / 432 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.3164, allocations: 208 kB / 432.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.3164, allocations: 9.969 kB / 432.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.3165, allocations: 6.688 kB / 432.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.3168, allocations: 133.5 kB / 432.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3168, allocations: 4.781 kB / 432.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.3168, allocations: 1.062 kB / 432.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3168, allocations: 1.375 kB / 432.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.317, allocations: 70.5 kB / 432.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008187/0.3178, allocations: 0.559 MB / 432.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3182, allocations: 149.6 kB / 433.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3183, allocations: 63.33 kB / 433.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.3184, allocations: 5.594 kB / 433.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.3187, allocations: 146.4 kB / 433.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.3187, allocations: 3.812 kB / 433.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006647/0.3193, allocations: 250.3 kB / 433.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.3194, allocations: 116.1 kB / 433.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.3196, allocations: 203.1 kB / 433.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.3196, allocations: 47.2 kB / 433.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.3197, allocations: 110.7 kB / 434 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.3197, allocations: 51.02 kB / 434.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.3198, allocations: 55.19 kB / 434.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.577e-05/0.3199, allocations: 334.7 kB / 434.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.3201, allocations: 98.11 kB / 434.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.3203, allocations: 136.9 kB / 434.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003301/0.3206, allocations: 224.5 kB / 434.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3206, allocations: 1.094 kB / 434.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005274/0.3212, allocations: 304.3 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3212, allocations: 7.531 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3212, allocations: 1.312 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.3212, allocations: 2.094 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.3214, allocations: 38.03 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3214, allocations: 2.312 kB / 435.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.86e-05/0.3215, allocations: 25.86 kB / 435.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.3215, allocations: 13.41 kB / 435.3 MB, free: 9.352 MB / 350.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.000149/0.3217, allocations: 147.3 kB / 435.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.3217, allocations: 15.72 kB / 435.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.893e-05/0.3217, allocations: 18.34 kB / 435.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3217, allocations: 4.219 kB / 435.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.3217, allocations: 1.281 kB / 435.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3217, allocations: 6.172 kB / 435.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.322, allocations: 224.3 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.322, allocations: 1.031 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.823e-05/0.322, allocations: 13.39 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.322, allocations: 2.219 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.322, allocations: 2.953 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.322, allocations: 1.094 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.322, allocations: 2.188 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.3224, allocations: 245 kB / 435.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.3225, allocations: 94.38 kB / 436 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.3225, allocations: 17.41 kB / 436.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.664e-05/0.3226, allocations: 6.578 kB / 436.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.3226, allocations: 22 kB / 436.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.3226, allocations: 7.375 kB / 436.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.879e-05/0.3227, allocations: 137.8 kB / 436.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3227, allocations: 0 / 436.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004833/0.3232, allocations: 131.7 kB / 436.4 MB, free: 8.73 MB / 350.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.001423/0.3246, allocations: 1.05 MB / 437.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005226/0.3252, allocations: 186.3 kB / 437.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3252, allocations: 1.469 kB / 437.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.3253, allocations: 61.86 kB / 437.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.3255, allocations: 15.42 kB / 437.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.3284, allocations: 2.315 MB / 440 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.3285, allocations: 0.7233 MB / 440.7 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.396e-05/0.3286, allocations: 21.58 kB / 440.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.315e-05/0.3287, allocations: 48.59 kB / 440.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3287, allocations: 0 / 440.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03207/0.3608, allocations: 5.542 MB / 446.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.354/8.715, allocations: 6.406 kB / 446.3 MB, free: 4.992 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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: 11.178593758028]