Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008526/0.0008526, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000978/0.000978, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8741/0.8741, allocations: 177.1 MB / 204.2 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2286/0.2286, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.129e-05/2.35e-05, allocations: 6.219 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001897/0.001921, allocations: 0.5111 MB / 440.1 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.00477, allocations: 2.004 MB / 442.1 MB, free: 1.738 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.004787, allocations: 3.938 kB / 442.1 MB, free: 1.734 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.602e-05/0.004803, allocations: 0 / 442.1 MB, free: 1.734 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.00481, allocations: 0 / 442.1 MB, free: 1.734 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001319/0.006129, allocations: 0.526 MB / 442.6 MB, free: 1.211 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.697e-05/0.006186, allocations: 3.984 kB / 442.6 MB, free: 1.207 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.15e-05/0.006227, allocations: 0 / 442.6 MB, free: 1.207 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.752e-05/0.006255, allocations: 0 / 442.6 MB, free: 1.207 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.162e-05/0.006277, allocations: 7.984 kB / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-06/0.006284, allocations: 0 / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.007301, allocations: 0.6431 MB / 443.3 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.007309, allocations: 0 / 443.3 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.852e-05/0.007328, allocations: 0 / 443.3 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004985/0.007826, allocations: 474.7 kB / 443.7 MB, free: 92 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.007829, allocations: 0 / 443.7 MB, free: 92 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.00783, allocations: 4 kB / 443.7 MB, free: 88 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.007835, allocations: 0 / 443.7 MB, free: 88 kB / 410.7 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.1822/0.1901, allocations: 340.2 kB / 444.1 MB, free: 46.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1901, allocations: 8.875 kB / 444.1 MB, free: 46.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.217e-05/0.1902, allocations: 34.64 kB / 444.1 MB, free: 46.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.92e-05/0.1902, allocations: 3.938 kB / 444.1 MB, free: 46.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.731e-05/0.1902, allocations: 102.8 kB / 444.2 MB, free: 46.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.1902, allocations: 384 / 444.2 MB, free: 46.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.1902, allocations: 3 kB / 444.2 MB, free: 46.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.479e-05/0.1903, allocations: 61.3 kB / 444.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1903, allocations: 1.25 kB / 444.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.086e-06/0.1904, allocations: 3.219 kB / 444.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1904, allocations: 3.938 kB / 444.3 MB, free: 46.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.272e-05/0.1904, allocations: 37.14 kB / 444.3 MB, free: 46.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001785/0.1906, allocations: 197 kB / 444.5 MB, free: 45.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.526e-05/0.1906, allocations: 51.62 kB / 444.6 MB, free: 45.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.677e-05/0.1906, allocations: 41.94 kB / 444.6 MB, free: 45.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.1907, allocations: 0 / 444.6 MB, free: 45.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1907, allocations: 61.45 kB / 444.7 MB, free: 45.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.1907, allocations: 0 / 444.7 MB, free: 45.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001817/0.1909, allocations: 127.8 kB / 444.8 MB, free: 45.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/0.1909, allocations: 77.11 kB / 444.9 MB, free: 45.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.29e-05/0.1909, allocations: 91.83 kB / 445 MB, free: 45.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.832e-06/0.1909, allocations: 28.33 kB / 445 MB, free: 45.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.497e-06/0.1909, allocations: 84.02 kB / 445.1 MB, free: 45.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.191, allocations: 1.375 kB / 445.1 MB, free: 45.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.191, allocations: 17.36 kB / 445.1 MB, free: 45.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.551e-05/0.191, allocations: 315.4 kB / 445.4 MB, free: 44.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.736e-05/0.191, allocations: 29.17 kB / 445.4 MB, free: 44.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.165e-05/0.191, allocations: 31.05 kB / 445.5 MB, free: 44.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.496e-05/0.1911, allocations: 68 kB / 445.5 MB, free: 44.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1911, allocations: 0 / 445.5 MB, free: 44.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.82e-05/0.1911, allocations: 98.25 kB / 445.6 MB, free: 44.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.1912, allocations: 38.64 kB / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1912, allocations: 0 / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1912, allocations: 3.781 kB / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-05/0.1912, allocations: 0 / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.1912, allocations: 0 / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.661e-05/0.1912, allocations: 2.125 kB / 445.7 MB, free: 44.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1912, allocations: 2.969 kB / 445.7 MB, free: 44.71 MB / 410.7 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 4.472e-05/0.1913, allocations: 134.1 kB / 445.8 MB, free: 44.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.1913, allocations: 4.438 kB / 445.8 MB, free: 44.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.89e-05/0.1913, allocations: 14.48 kB / 445.8 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1913, allocations: 0 / 445.8 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1913, allocations: 0 / 445.8 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1913, allocations: 4.375 kB / 445.8 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.1914, allocations: 296.7 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1914, allocations: 2.953 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-06/0.1914, allocations: 3.281 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1915, allocations: 3.938 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1915, allocations: 3.5 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1915, allocations: 0 / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1915, allocations: 5.094 kB / 446.1 MB, free: 44.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.3e-05/0.1915, allocations: 193.4 kB / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-06/0.1915, allocations: 0.6875 kB / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.1915, allocations: 2.938 kB / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.564e-05/0.1916, allocations: 0 / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.1916, allocations: 11.22 kB / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1916, allocations: 0 / 446.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.648e-06/0.1916, allocations: 76.94 kB / 446.4 MB, free: 43.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1916, allocations: 0 / 446.4 MB, free: 43.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.1919, allocations: 134.8 kB / 446.5 MB, free: 43.96 MB / 410.7 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.0006905/0.1926, allocations: 0.9873 MB / 447.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.296e-05/0.1927, allocations: 117.8 kB / 447.6 MB, free: 43.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.1927, allocations: 0 / 447.6 MB, free: 43.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.643e-05/0.1927, allocations: 88.11 kB / 447.7 MB, free: 42.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1929, allocations: 1.547 kB / 447.7 MB, free: 42.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005083/0.1934, allocations: 1.338 MB / 449.1 MB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.755e-05/0.1934, allocations: 54.14 kB / 449.1 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.029e-05/0.1934, allocations: 13.23 kB / 449.1 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.1934, allocations: 8.5 kB / 449.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1934, allocations: 0 / 449.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.2139, allocations: 5.244 MB / 454.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.905/7.119, allocations: 3.188 kB / 454.4 MB, free: 40.39 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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: 9.005319732241333]