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.00116/0.00116, allocations: 101.9 kB / 16.4 MB, free: 6.461 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.001163/0.001163, 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.37/1.37, allocations: 205.1 MB / 223.2 MB, free: 12.19 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.2111/0.2111, allocations: 43.52 MB / 314.1 MB, free: 436 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.001408/0.001408, allocations: 69.45 kB / 441.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1129, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001724/0.1146, allocations: 0.5135 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.1175, allocations: 2.07 MB / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.54e-05/0.1176, allocations: 0 / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.1176, allocations: 0 / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-06/0.1176, allocations: 0 / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.1192, allocations: 0.4948 MB / 0.4904 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.5e-05/0.1193, allocations: 3.984 kB / 0.4904 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.1193, allocations: 4 kB / 0.4904 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.488e-05/0.1193, allocations: 3.938 kB / 0.4904 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.8e-05/0.1193, allocations: 4 kB / 0.4904 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.922e-06/0.1194, allocations: 0 / 0.4904 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001014/0.1204, allocations: 0.6122 MB / 0.491 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.706e-06/0.1204, allocations: 0 / 0.491 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.8e-05/0.1204, allocations: 4 kB / 0.491 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006204/0.121, allocations: 383 kB / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1211, allocations: 0 / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1211, allocations: 0 / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.1211, allocations: 0 / 0.4914 GB, free: 8.16 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.0005152/0.1216, allocations: 416.5 kB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1217, allocations: 15.89 kB / 0.4918 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.076e-05/0.1217, allocations: 34.69 kB / 0.4918 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.1218, allocations: 4.938 kB / 0.4918 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.546e-05/0.1219, allocations: 168.4 kB / 0.492 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.1219, allocations: 384 / 0.492 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.1219, allocations: 384 / 0.492 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.122, allocations: 37.81 kB / 0.492 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.122, allocations: 0 / 0.492 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-06/0.1221, allocations: 0 / 0.492 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1221, allocations: 0 / 0.492 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.074e-05/0.1221, allocations: 8 kB / 0.492 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002505/0.1224, allocations: 240.8 kB / 0.4923 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.455e-05/0.1224, allocations: 18.58 kB / 0.4923 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.796e-05/0.1225, allocations: 12.92 kB / 0.4923 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.1225, allocations: 3.938 kB / 0.4923 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.1225, allocations: 60.27 kB / 0.4924 GB, free: 6.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1225, allocations: 0 / 0.4924 GB, free: 6.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.000209/0.1227, allocations: 75.33 kB / 0.4924 GB, free: 6.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.1228, allocations: 81.11 kB / 0.4925 GB, free: 6.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.035e-05/0.1228, allocations: 93.8 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.1229, allocations: 25.7 kB / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/0.1229, allocations: 80.14 kB / 0.4927 GB, free: 6.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.1229, allocations: 7.891 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.123, allocations: 21.83 kB / 0.4927 GB, free: 6.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1231, allocations: 314.8 kB / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.234e-05/0.1231, allocations: 0 / 0.493 GB, free: 6.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-06/0.1231, allocations: 4 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.011e-05/0.1232, allocations: 64.27 kB / 0.4931 GB, free: 6.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1232, allocations: 3.938 kB / 0.4931 GB, free: 6.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.931e-05/0.1233, allocations: 75.33 kB / 0.4932 GB, free: 6.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.1233, allocations: 29.7 kB / 0.4932 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1233, allocations: 4.094 kB / 0.4932 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1234, allocations: 0 / 0.4932 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.424e-05/0.1234, allocations: 0 / 0.4932 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1234, allocations: 4 kB / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.61e-05/0.1234, allocations: 0 / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.1234, allocations: 0 / 0.4932 GB, free: 6.012 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 9.456e-05/0.1235, allocations: 147.4 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.1235, allocations: 0 / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/0.1236, allocations: 7.109 kB / 0.4934 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1236, allocations: 4 kB / 0.4934 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1236, allocations: 0 / 0.4934 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1236, allocations: 0 / 0.4934 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.1238, allocations: 308.2 kB / 0.4937 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1239, allocations: 0 / 0.4937 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-06/0.1239, allocations: 3.984 kB / 0.4937 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1239, allocations: 0 / 0.4937 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1239, allocations: 0 / 0.4937 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1239, allocations: 4 kB / 0.4937 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1239, allocations: 0 / 0.4937 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001132/0.124, allocations: 173.2 kB / 0.4938 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.968e-05/0.1241, allocations: 77.11 kB / 0.4939 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.1241, allocations: 4 kB / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.38e-05/0.1241, allocations: 0 / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.79e-05/0.1242, allocations: 0 / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.1242, allocations: 0 / 0.4939 GB, free: 5.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.048e-05/0.1242, allocations: 79.22 kB / 0.494 GB, free: 5.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1242, allocations: 4.031 kB / 0.494 GB, free: 5.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004691/0.1247, allocations: 139.5 kB / 0.4941 GB, free: 4.957 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.001033/0.1257, allocations: 0.9018 MB / 0.495 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.1258, allocations: 67.39 kB / 0.4951 GB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1259, allocations: 0 / 0.4951 GB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.821e-05/0.1259, allocations: 59.34 kB / 0.4951 GB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.1261, allocations: 4 kB / 0.4951 GB, free: 3.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.1271, allocations: 1.203 MB / 0.4963 GB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.1274, allocations: 0.6768 MB / 0.497 GB, free: 1.879 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.132e-05/0.1274, allocations: 64 / 0.497 GB, free: 1.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.086e-05/0.1274, allocations: 15.44 kB / 0.497 GB, free: 1.863 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1274, allocations: 0 / 0.497 GB, free: 1.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.1496, allocations: 4.417 MB / 0.5013 GB, free: 13.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.52/7.67, allocations: 7.594 kB / 0.5013 GB, free: 13.43 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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