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.001103/0.001103, allocations: 107.8 kB / 16.41 MB, free: 6.484 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.001207/0.001207, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.414/1.414, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2129/0.2129, allocations: 43.54 MB / 314.1 MB, free: 460 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.001645/0.001645, allocations: 67.89 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1252, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001773/0.127, allocations: 0.4988 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003524/0.1305, allocations: 2.074 MB / 0.4899 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.1306, allocations: 4 kB / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.1307, allocations: 0 / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.352e-06/0.1307, allocations: 0 / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.1324, allocations: 498.7 kB / 0.4904 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.931e-05/0.1325, allocations: 3.984 kB / 0.4904 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.368e-05/0.1325, allocations: 8 kB / 0.4904 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.077e-05/0.1325, allocations: 7.938 kB / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.917e-05/0.1326, allocations: 0 / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.236e-06/0.1326, allocations: 0 / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.1337, allocations: 0.6122 MB / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.087e-06/0.1337, allocations: 0 / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.1337, allocations: 0 / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006551/0.1344, allocations: 387.5 kB / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.1344, allocations: 0 / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1344, allocations: 0 / 0.4914 GB, free: 8.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1344, allocations: 0 / 0.4914 GB, free: 8.219 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.0004928/0.1349, allocations: 413.2 kB / 0.4918 GB, free: 7.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.135, allocations: 15.89 kB / 0.4918 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.628e-05/0.135, allocations: 42.69 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.1351, allocations: 0.9375 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.1352, allocations: 164.4 kB / 0.492 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1352, allocations: 384 / 0.492 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.1352, allocations: 8.359 kB / 0.492 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.1354, allocations: 29.83 kB / 0.492 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1354, allocations: 4 kB / 0.492 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1354, allocations: 0 / 0.492 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.1354, allocations: 0 / 0.492 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.355e-05/0.1354, allocations: 0 / 0.492 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002866/0.1357, allocations: 240.8 kB / 0.4922 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.764e-05/0.1358, allocations: 22.61 kB / 0.4923 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.7e-05/0.1358, allocations: 12.86 kB / 0.4923 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.1359, allocations: 11.92 kB / 0.4923 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.304e-05/0.1359, allocations: 60.25 kB / 0.4924 GB, free: 7.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.1359, allocations: 4 kB / 0.4924 GB, free: 7.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002388/0.1362, allocations: 75.33 kB / 0.4924 GB, free: 6.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.1362, allocations: 77.11 kB / 0.4925 GB, free: 6.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.061e-05/0.1363, allocations: 93.84 kB / 0.4926 GB, free: 6.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.1363, allocations: 25.7 kB / 0.4926 GB, free: 6.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.435e-05/0.1364, allocations: 80.14 kB / 0.4927 GB, free: 6.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.1364, allocations: 7.906 kB / 0.4927 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.1364, allocations: 13.72 kB / 0.4927 GB, free: 6.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1366, allocations: 315 kB / 0.493 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.352e-05/0.1366, allocations: 4 kB / 0.493 GB, free: 6.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.064e-06/0.1366, allocations: 0 / 0.493 GB, free: 6.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.324e-05/0.1367, allocations: 72.25 kB / 0.4931 GB, free: 6.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1367, allocations: 3.938 kB / 0.4931 GB, free: 6.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.852e-05/0.1368, allocations: 67.34 kB / 0.4932 GB, free: 6.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.1368, allocations: 29.7 kB / 0.4932 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1368, allocations: 4.094 kB / 0.4932 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1369, allocations: 4 kB / 0.4932 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.658e-05/0.1369, allocations: 0 / 0.4932 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1369, allocations: 3.984 kB / 0.4932 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.076e-05/0.1369, allocations: 7.938 kB / 0.4932 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1369, allocations: 0 / 0.4932 GB, free: 6.062 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.0001063/0.137, allocations: 143.4 kB / 0.4933 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.1371, allocations: 0 / 0.4933 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.1371, allocations: 3.125 kB / 0.4933 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1371, allocations: 4 kB / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1371, allocations: 4 kB / 0.4933 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1371, allocations: 0 / 0.4933 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.1374, allocations: 304.2 kB / 0.4936 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1374, allocations: 0 / 0.4936 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.225e-06/0.1374, allocations: 4 kB / 0.4936 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.1374, allocations: 0 / 0.4936 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.1374, allocations: 0 / 0.4936 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.1374, allocations: 3.984 kB / 0.4936 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1375, allocations: 0 / 0.4936 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.1376, allocations: 177.2 kB / 0.4938 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.699e-05/0.1376, allocations: 77.11 kB / 0.4939 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.1377, allocations: 0 / 0.4939 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.811e-05/0.1377, allocations: 0 / 0.4939 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.502e-05/0.1377, allocations: 3.938 kB / 0.4939 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.1377, allocations: 11.94 kB / 0.4939 GB, free: 5.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.458e-05/0.1378, allocations: 75.28 kB / 0.494 GB, free: 5.145 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1378, allocations: 4.031 kB / 0.494 GB, free: 5.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000481/0.1383, allocations: 127.9 kB / 0.4941 GB, free: 5.016 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.001192/0.1395, allocations: 0.896 MB / 0.495 GB, free: 4.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.1396, allocations: 67.34 kB / 0.495 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1396, allocations: 0 / 0.495 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.368e-05/0.1397, allocations: 59.41 kB / 0.4951 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.1399, allocations: 0 / 0.4951 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.141, allocations: 1.215 MB / 0.4963 GB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.1412, allocations: 0.6729 MB / 0.4969 GB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.259e-05/0.1413, allocations: 0 / 0.4969 GB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.157e-05/0.1413, allocations: 11.5 kB / 0.4969 GB, free: 1.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1413, allocations: 4 kB / 0.497 GB, free: 1.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.1659, allocations: 4.428 MB / 0.5013 GB, free: 13.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.029/8.195, allocations: 64 / 0.5013 GB, free: 13.49 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