Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 104.8 kB / 16.4 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.617/1.617, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2565/0.2565, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 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.002133/0.002133, allocations: 77.61 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1641, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001983/0.1661, allocations: 0.5103 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.1697, allocations: 2.074 MB / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.019e-05/0.1698, allocations: 0 / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.949e-05/0.1698, allocations: 0 / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.102e-06/0.1698, allocations: 0 / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.1714, allocations: 0.4908 MB / 0.4904 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.357e-05/0.1715, allocations: 8 kB / 0.4904 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.714e-05/0.1716, allocations: 3.984 kB / 0.4904 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.069e-05/0.1716, allocations: 3.938 kB / 0.4904 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.465e-05/0.1716, allocations: 3.984 kB / 0.4904 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.1716, allocations: 4 kB / 0.4904 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.1728, allocations: 0.6044 MB / 0.491 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.1729, allocations: 0 / 0.491 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.1729, allocations: 15.97 kB / 0.491 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006592/0.1736, allocations: 375 kB / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1736, allocations: 0 / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1736, allocations: 0 / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.1736, allocations: 0 / 0.4914 GB, free: 8.184 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.0005597/0.1742, allocations: 420.5 kB / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.1742, allocations: 11.89 kB / 0.4918 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.563e-05/0.1743, allocations: 34.73 kB / 0.4918 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.1744, allocations: 0.9375 kB / 0.4918 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.1745, allocations: 168.3 kB / 0.492 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.1745, allocations: 4.375 kB / 0.492 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.1745, allocations: 384 / 0.492 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.1747, allocations: 37.83 kB / 0.492 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1747, allocations: 0 / 0.492 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.1747, allocations: 0 / 0.492 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.1747, allocations: 11.98 kB / 0.492 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.341e-05/0.1747, allocations: 4 kB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.175, allocations: 224.9 kB / 0.4923 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.551e-05/0.1751, allocations: 30.53 kB / 0.4923 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.071e-05/0.1751, allocations: 8.922 kB / 0.4923 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1752, allocations: 3.938 kB / 0.4923 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.398e-05/0.1752, allocations: 64.27 kB / 0.4924 GB, free: 6.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 3.206e-06/0.1752, allocations: 3.984 kB / 0.4924 GB, free: 6.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002161/0.1755, allocations: 71.33 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.1755, allocations: 81.11 kB / 0.4925 GB, free: 6.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.1756, allocations: 89.86 kB / 0.4926 GB, free: 6.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.1756, allocations: 29.7 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.831e-05/0.1757, allocations: 84.08 kB / 0.4927 GB, free: 6.594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1757, allocations: 12.02 kB / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.1757, allocations: 13.72 kB / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1759, allocations: 318.8 kB / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.1759, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.997e-06/0.1759, allocations: 4 kB / 0.493 GB, free: 6.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.104e-05/0.176, allocations: 60.27 kB / 0.4931 GB, free: 6.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.176, allocations: 3.938 kB / 0.4931 GB, free: 6.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.482e-05/0.1761, allocations: 71.39 kB / 0.4932 GB, free: 6.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.143e-05/0.1762, allocations: 37.73 kB / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1762, allocations: 0 / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1762, allocations: 0 / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.537e-05/0.1762, allocations: 0 / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.1762, allocations: 0 / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.955e-05/0.1763, allocations: 4 kB / 0.4932 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.1763, allocations: 0 / 0.4932 GB, free: 6.031 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: 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 0.0001136/0.1764, allocations: 143.4 kB / 0.4933 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.361e-05/0.1764, allocations: 4 kB / 0.4933 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.1764, allocations: 11.11 kB / 0.4934 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1765, allocations: 0 / 0.4934 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1765, allocations: 0 / 0.4934 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1765, allocations: 0 / 0.4934 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.1768, allocations: 304.2 kB / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1768, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-06/0.1768, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1768, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1769, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1769, allocations: 0 / 0.4937 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1769, allocations: 4.031 kB / 0.4937 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001777/0.1771, allocations: 177.1 kB / 0.4938 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.1771, allocations: 77.11 kB / 0.4939 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.1772, allocations: 3.984 kB / 0.4939 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.104e-05/0.1772, allocations: 4 kB / 0.4939 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.706e-05/0.1772, allocations: 4 kB / 0.4939 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1773, allocations: 0 / 0.4939 GB, free: 5.191 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.735e-05/0.1773, allocations: 79.31 kB / 0.494 GB, free: 5.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1773, allocations: 0 / 0.494 GB, free: 5.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004819/0.1778, allocations: 135.5 kB / 0.4941 GB, free: 4.98 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: 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.00125/0.1791, allocations: 0.9075 MB / 0.495 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001469/0.1792, allocations: 63.39 kB / 0.4951 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1792, allocations: 0 / 0.4951 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.604e-05/0.1793, allocations: 63.34 kB / 0.4951 GB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.1795, allocations: 0 / 0.4951 GB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.1809, allocations: 1.203 MB / 0.4963 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.1812, allocations: 0.6768 MB / 0.497 GB, free: 1.898 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.255e-05/0.1813, allocations: 3.984 kB / 0.497 GB, free: 1.895 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.1813, allocations: 7.438 kB / 0.497 GB, free: 1.887 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1813, allocations: 0 / 0.497 GB, free: 1.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.2112, allocations: 4.421 MB / 0.5013 GB, free: 13.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.378/8.589, allocations: 3.984 kB / 0.5013 GB, free: 13.45 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches