Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001883/0.001883, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.4 MB, free: 9.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2369/0.2369, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002534/0.002535, allocations: 73.45 kB / 417.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1798, allocations: 62.45 MB / 479.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002263/0.1821, allocations: 0.5553 MB / 480.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.1854, allocations: 2.098 MB / 482.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.744e-05/0.1854, allocations: 0 / 482.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.332e-05/0.1855, allocations: 0 / 482.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-06/0.1855, allocations: 4 kB / 482.3 MB, free: 2.805 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.1872, allocations: 463.1 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.1873, allocations: 0 / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.666e-05/0.1873, allocations: 4 kB / 482.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.505e-05/0.1873, allocations: 4 kB / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.715e-05/0.1874, allocations: 0 / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-06/0.1874, allocations: 0 / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001173/0.1886, allocations: 0.659 MB / 483.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.989e-06/0.1886, allocations: 0 / 483.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.1886, allocations: 3.938 kB / 483.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007915/0.1894, allocations: 407.2 kB / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1894, allocations: 0 / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1894, allocations: 0 / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1894, allocations: 0 / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005439/0.19, allocations: 417.4 kB / 484.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.19, allocations: 8.031 kB / 484.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.265e-05/0.1901, allocations: 34.75 kB / 484.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.1901, allocations: 4.938 kB / 484.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.1903, allocations: 164.4 kB / 484.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1903, allocations: 4.375 kB / 484.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.1903, allocations: 384 / 484.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.1904, allocations: 41.77 kB / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1904, allocations: 0 / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.1904, allocations: 0 / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1904, allocations: 0 / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.305e-05/0.1905, allocations: 4 kB / 484.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002563/0.1907, allocations: 236.8 kB / 484.7 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.998e-05/0.1908, allocations: 22.61 kB / 484.7 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.741e-05/0.1908, allocations: 12.86 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.1909, allocations: 3.984 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.752e-05/0.1909, allocations: 60.27 kB / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.1909, allocations: 4 kB / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002031/0.1911, allocations: 67.41 kB / 484.8 MB, free: 24 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.1912, allocations: 81.09 kB / 484.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.279e-05/0.1913, allocations: 93.8 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.1913, allocations: 29.7 kB / 485 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.1913, allocations: 84.12 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.1913, allocations: 3.906 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.1914, allocations: 13.72 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1915, allocations: 319 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.364e-05/0.1915, allocations: 3.938 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.007e-06/0.1915, allocations: 4 kB / 485.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.213e-05/0.1916, allocations: 68.25 kB / 485.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1916, allocations: 3.938 kB / 485.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.692e-05/0.1917, allocations: 59.41 kB / 485.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.1917, allocations: 33.7 kB / 485.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1917, allocations: 0 / 485.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1918, allocations: 4.094 kB / 485.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.996e-05/0.1918, allocations: 3.984 kB / 485.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1918, allocations: 0 / 485.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.957e-05/0.1918, allocations: 4 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1918, allocations: 0 / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 9.341e-05/0.1919, allocations: 143.4 kB / 485.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.192, allocations: 7.984 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.385e-05/0.192, allocations: 3.125 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.192, allocations: 0 / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.192, allocations: 4 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.192, allocations: 0 / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.1923, allocations: 300.3 kB / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1923, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-06/0.1923, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1923, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1923, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1923, allocations: 4 kB / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1923, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.1925, allocations: 185.1 kB / 486.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.1925, allocations: 77.11 kB / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.1925, allocations: 0 / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.534e-05/0.1926, allocations: 7.938 kB / 486.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.1926, allocations: 0 / 486.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.1926, allocations: 3.938 kB / 486.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.611e-05/0.1926, allocations: 75.28 kB / 486.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1926, allocations: 0 / 486.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.1931, allocations: 143.9 kB / 486.6 MB, free: 14.09 MB / 366.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 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001138/0.1943, allocations: 0.9073 MB / 487.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.1944, allocations: 63.41 kB / 487.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1944, allocations: 0 / 487.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.863e-05/0.1945, allocations: 59.39 kB / 487.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/0.1947, allocations: 2.672 kB / 487.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009584/0.1956, allocations: 1.2 MB / 488.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.1959, allocations: 0.6729 MB / 489.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.177e-05/0.1959, allocations: 4.062 kB / 489.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.946e-05/0.1959, allocations: 7.438 kB / 489.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1959, allocations: 0 / 489.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.2126, allocations: 4.417 MB / 493.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/0.2129, allocations: 242.9 kB / 494.1 MB, free: 6.461 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.214, allocations: 0 / 494.1 MB, free: 6.461 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches