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.001987/0.001987, 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.002263/0.002263, allocations: 214.6 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.563/1.563, 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.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.001835/0.001835, allocations: 71.89 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2712, allocations: 53.41 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002748/0.274, allocations: 1.516 MB / 432.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.2764, allocations: 1.406 MB / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.947e-05/0.2764, allocations: 4 kB / 434.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.2765, allocations: 11.81 kB / 434.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.5e-05/0.2766, allocations: 23.8 kB / 434.1 MB, free: 3.461 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.001043/0.2777, allocations: 398.8 kB / 434.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.2779, allocations: 135.5 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.453e-05/0.2779, allocations: 9.688 kB / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.563e-05/0.278, allocations: 59.77 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006302/0.2786, allocations: 74.62 kB / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.2787, allocations: 12 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007002/0.2794, allocations: 439.1 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.78e-05/0.2794, allocations: 39.84 kB / 435.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.332e-05/0.2795, allocations: 51.72 kB / 435.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006026/0.2801, allocations: 404.6 kB / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2801, allocations: 0 / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2801, allocations: 0 / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2801, allocations: 0 / 435.7 MB, free: 1.867 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000873/0.281, allocations: 464.6 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.281, allocations: 15.98 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.1e-05/0.2811, allocations: 42.67 kB / 436.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.2814, allocations: 32.83 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.2815, allocations: 152.3 kB / 436.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.2816, allocations: 8.375 kB / 436.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.2816, allocations: 4.375 kB / 436.4 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.2819, allocations: 146.9 kB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2819, allocations: 8 kB / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2819, allocations: 0 / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.2819, allocations: 0 / 436.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002252/0.2822, allocations: 75.88 kB / 436.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008312/0.283, allocations: 0.4922 MB / 437.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.2833, allocations: 148 kB / 437.3 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.2835, allocations: 62.48 kB / 437.3 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.2835, allocations: 0 / 437.3 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.2838, allocations: 164.2 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.2838, allocations: 0 / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006197/0.2844, allocations: 245.4 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.2845, allocations: 122.8 kB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.2847, allocations: 191.2 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.853e-05/0.2848, allocations: 57.53 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.2849, allocations: 108.6 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.251e-05/0.2849, allocations: 47.62 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.285, allocations: 57.69 kB / 438.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.2852, allocations: 334.8 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.2854, allocations: 100.1 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.2856, allocations: 135.3 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.286, allocations: 219.8 kB / 439.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.286, allocations: 0 / 439.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005379/0.2865, allocations: 313.3 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2866, allocations: 8 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2866, allocations: 0 / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2866, allocations: 4 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.2868, allocations: 31.92 kB / 439.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2868, allocations: 8.453 kB / 439.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.406e-05/0.2868, allocations: 19.78 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.2869, allocations: 12 kB / 439.4 MB, free: 13.83 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.0001696/0.287, allocations: 162.6 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.2871, allocations: 11.91 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.2871, allocations: 17.39 kB / 439.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2871, allocations: 4 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.2871, allocations: 0 / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2871, allocations: 3.938 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.2873, allocations: 176.7 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2873, allocations: 3.938 kB / 439.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.552e-05/0.2874, allocations: 8 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2874, allocations: 7.938 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.2874, allocations: 7.984 kB / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2874, allocations: 0 / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2874, allocations: 0 / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004415/0.2879, allocations: 254.5 kB / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.2879, allocations: 19.83 kB / 440.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.2879, allocations: 8 kB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.728e-05/0.288, allocations: 11.98 kB / 440.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.2881, allocations: 19.92 kB / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.2881, allocations: 4 kB / 440.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.2882, allocations: 141.2 kB / 440.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2882, allocations: 0 / 440.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004215/0.2886, allocations: 123.6 kB / 440.4 MB, free: 12.79 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.001585/0.2902, allocations: 1.052 MB / 441.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004546/0.2907, allocations: 198.7 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2907, allocations: 7.938 kB / 441.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.2908, allocations: 55.91 kB / 441.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.291, allocations: 23.02 kB / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.2939, allocations: 2.297 MB / 444 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.294, allocations: 111.1 kB / 444.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.574e-05/0.2941, allocations: 25.39 kB / 444.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.48e-05/0.2942, allocations: 55.42 kB / 444.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2942, allocations: 3.938 kB / 444.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09081/0.385, allocations: 6.185 MB / 450.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.8, allocations: 7.984 kB / 450.4 MB, free: 2.738 MB / 350.1 MB " [Timeout remaining time 647] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.852381720673293]