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.001085/0.001085, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 60.41 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08752, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002235/0.08978, allocations: 1.54 MB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.09186, allocations: 1.478 MB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.627e-05/0.09193, allocations: 4 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.197e-05/0.09201, allocations: 15.8 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.484e-05/0.09208, allocations: 19.8 kB / 360.6 MB, free: 10.92 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.0008796/0.09297, allocations: 386.8 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.09311, allocations: 143.5 kB / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.09315, allocations: 5.5 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.288e-05/0.09321, allocations: 51.78 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004414/0.09366, allocations: 89.72 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/0.09369, allocations: 12 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005544/0.09425, allocations: 415.3 kB / 361.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.32e-05/0.09431, allocations: 35.84 kB / 361.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.833e-05/0.09437, allocations: 67.58 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.09489, allocations: 403.3 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.0949, allocations: 0 / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.09491, allocations: 4 kB / 362.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.09492, allocations: 0 / 362.2 MB, free: 9.336 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.0005964/0.09552, allocations: 0.5142 MB / 362.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.648e-05/0.09555, allocations: 8.031 kB / 362.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.571e-05/0.0956, allocations: 42.73 kB / 362.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.0958, allocations: 28.73 kB / 362.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.09596, allocations: 213.6 kB / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.09599, allocations: 4.375 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.09602, allocations: 23.88 kB / 363 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.09625, allocations: 128.1 kB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.09627, allocations: 0 / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.09629, allocations: 4 kB / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.09629, allocations: 0 / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.0965, allocations: 71.94 kB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006493/0.09715, allocations: 0.5477 MB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.09754, allocations: 159.9 kB / 363.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.09773, allocations: 66.55 kB / 364 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.09775, allocations: 4 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/0.09809, allocations: 149.8 kB / 364.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.0981, allocations: 0 / 364.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005149/0.09862, allocations: 253.3 kB / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.09869, allocations: 118.8 kB / 364.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.09885, allocations: 199 kB / 364.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.0989, allocations: 45.7 kB / 364.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.09896, allocations: 116.4 kB / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.099, allocations: 43.53 kB / 364.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.09908, allocations: 53.81 kB / 365 MB, free: 6.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.09918, allocations: 342.8 kB / 365.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.09937, allocations: 91.95 kB / 365.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.09957, allocations: 139.2 kB / 365.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.09992, allocations: 227.7 kB / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09993, allocations: 0 / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004677/0.1004, allocations: 301.2 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.1004, allocations: 4 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1004, allocations: 12.03 kB / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-06/0.1004, allocations: 0 / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.1006, allocations: 31.92 kB / 366.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1006, allocations: 0 / 366.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.361e-05/0.1007, allocations: 27.77 kB / 366.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.1007, allocations: 16 kB / 366.1 MB, free: 5.082 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.0001118/0.1008, allocations: 154.9 kB / 366.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.1009, allocations: 19.81 kB / 366.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.1009, allocations: 17.41 kB / 366.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1009, allocations: 3.938 kB / 366.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1009, allocations: 0 / 366.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1009, allocations: 7.984 kB / 366.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.1011, allocations: 217.4 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1011, allocations: 0 / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.753e-05/0.1012, allocations: 19.86 kB / 366.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1012, allocations: 4 kB / 366.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.1012, allocations: 0 / 366.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1012, allocations: 11.94 kB / 366.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1012, allocations: 0 / 366.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.1016, allocations: 233.3 kB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.1016, allocations: 92.91 kB / 366.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.1017, allocations: 8 kB / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.829e-05/0.1017, allocations: 19.92 kB / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.1018, allocations: 11.98 kB / 366.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.1018, allocations: 4 kB / 366.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.1019, allocations: 141.2 kB / 367.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1019, allocations: 0 / 367.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.1023, allocations: 123.9 kB / 367.2 MB, free: 3.918 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.001251/0.1035, allocations: 1.062 MB / 368.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.1039, allocations: 211.7 kB / 368.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.104, allocations: 0 / 368.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.1041, allocations: 59.97 kB / 368.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.1043, allocations: 8 kB / 368.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.1066, allocations: 2.314 MB / 370.9 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1296/0.2362, allocations: 0.7161 MB / 371.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.2364, allocations: 19.91 kB / 371.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.961e-05/0.2364, allocations: 49.66 kB / 371.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2365, allocations: 0 / 371.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3258/0.5623, allocations: 5.445 MB / 377.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.581, allocations: 12.2 kB / 377.1 MB, free: 18.89 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