Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001798/0.001797, allocations: 181.5 kB / 16.91 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.828/1.828, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4438/0.4438, allocations: 43.57 MB / 315 MB, free: 9.035 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007565/0.0007565, allocations: 16 kB / 384.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1834, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0009254/0.1844, allocations: 244.3 kB / 443.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003201/0.1876, allocations: 2.083 MB / 445.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.446e-05/0.1877, allocations: 0 / 445.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.1877, allocations: 0 / 445.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.563e-06/0.1877, allocations: 0 / 445.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.189, allocations: 395.2 kB / 446.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.1891, allocations: 11.94 kB / 446.2 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.1891, allocations: 0 / 446.2 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.97e-05/0.1891, allocations: 3.984 kB / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.923e-05/0.1892, allocations: 0 / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.1892, allocations: 4 kB / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.1902, allocations: 0.6631 MB / 446.8 MB, free: 9.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.1902, allocations: 4 kB / 446.8 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.563e-05/0.1903, allocations: 37.69 kB / 446.9 MB, free: 9.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.1909, allocations: 387.1 kB / 447.3 MB, free: 9.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.1909, allocations: 4 kB / 447.3 MB, free: 9.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1909, allocations: 3.938 kB / 447.3 MB, free: 9.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1909, allocations: 0 / 447.3 MB, free: 9.082 MB / 382.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.0005061/0.1914, allocations: 405.2 kB / 447.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.1915, allocations: 12.03 kB / 447.7 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.1915, allocations: 0.9375 kB / 447.7 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.1917, allocations: 160.4 kB / 447.8 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1917, allocations: 384 / 447.8 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.1917, allocations: 384 / 447.8 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.1918, allocations: 42 kB / 447.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.1918, allocations: 0 / 447.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.1918, allocations: 0 / 447.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1918, allocations: 0 / 447.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.073e-05/0.1919, allocations: 8 kB / 447.9 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.192, allocations: 145.7 kB / 448 MB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.683e-05/0.1921, allocations: 18.52 kB / 448 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.895e-05/0.1921, allocations: 8.953 kB / 448 MB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.1921, allocations: 7.922 kB / 448.1 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.761e-05/0.1922, allocations: 64.2 kB / 448.1 MB, free: 8.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1922, allocations: 4 kB / 448.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002123/0.1924, allocations: 67.31 kB / 448.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.1925, allocations: 81.05 kB / 448.3 MB, free: 7.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.349e-05/0.1925, allocations: 89.86 kB / 448.4 MB, free: 7.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1926, allocations: 33.69 kB / 448.4 MB, free: 7.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.207e-05/0.1926, allocations: 80.14 kB / 448.5 MB, free: 7.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.1926, allocations: 0 / 448.5 MB, free: 7.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.46e-05/0.1926, allocations: 9.719 kB / 448.5 MB, free: 7.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1928, allocations: 315 kB / 448.8 MB, free: 7.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.1928, allocations: 0 / 448.8 MB, free: 7.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.141e-06/0.1928, allocations: 4 kB / 448.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.033e-05/0.1928, allocations: 60.27 kB / 448.8 MB, free: 7.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1929, allocations: 4 kB / 448.8 MB, free: 7.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.624e-05/0.1929, allocations: 59.39 kB / 448.9 MB, free: 7.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.193, allocations: 41.58 kB / 448.9 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.193, allocations: 0 / 448.9 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.193, allocations: 0 / 448.9 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.193, allocations: 4.094 kB / 448.9 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.193, allocations: 0 / 448.9 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.193, allocations: 0 / 448.9 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.1931, allocations: 4 kB / 449 MB, free: 7.117 MB / 382.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 0.0001001/0.1932, allocations: 131.5 kB / 449.1 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.1932, allocations: 7.922 kB / 449.1 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.809e-05/0.1932, allocations: 7.125 kB / 449.1 MB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1932, allocations: 11.92 kB / 449.1 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1932, allocations: 0 / 449.1 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1932, allocations: 4 kB / 449.1 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.1934, allocations: 141.7 kB / 449.3 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.1934, allocations: 0 / 449.3 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1934, allocations: 0 / 449.3 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1934, allocations: 3.938 kB / 449.3 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.1934, allocations: 7.984 kB / 449.3 MB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.1934, allocations: 0 / 449.3 MB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.1934, allocations: 0 / 449.3 MB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.1935, allocations: 98.72 kB / 449.4 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.136e-05/0.1936, allocations: 81.09 kB / 449.4 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.1936, allocations: 3.938 kB / 449.4 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.1936, allocations: 0 / 449.4 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.1936, allocations: 4 kB / 449.4 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-06/0.1936, allocations: 0 / 449.4 MB, free: 6.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.591e-05/0.1937, allocations: 75.28 kB / 449.5 MB, free: 6.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1937, allocations: 0 / 449.5 MB, free: 6.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003774/0.1941, allocations: 124 kB / 449.6 MB, free: 6.32 MB / 382.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0008617/0.1949, allocations: 306.8 kB / 449.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.95e-05/0.195, allocations: 55.41 kB / 450 MB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1951, allocations: 4.062 kB / 450 MB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.133e-05/0.1951, allocations: 55.41 kB / 450.1 MB, free: 5.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1952, allocations: 4 kB / 450.1 MB, free: 5.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000224/0.1955, allocations: 86.62 kB / 450.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1957, allocations: 0.6731 MB / 450.8 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.802e-06/0.1958, allocations: 0 / 450.8 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.047e-05/0.1958, allocations: 7.438 kB / 450.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1958, allocations: 0 / 450.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of Templates: time 0.007058/0.2028, allocations: 3.374 MB / 454.2 MB, free: 1.684 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches