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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001565, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.00134/0.00134, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.66 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1454, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002531/0.148, allocations: 0.4918 MB / 469.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003767/0.1518, allocations: 2.041 MB / 471.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.1519, allocations: 4 kB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.882e-05/0.1519, allocations: 0 / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.007e-06/0.152, allocations: 0 / 471.9 MB, free: 11.71 MB / 350.1 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.001863/0.1539, allocations: 0.4971 MB / 472.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.323e-05/0.1539, allocations: 0 / 472.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.71e-05/0.154, allocations: 0 / 472.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.362e-05/0.154, allocations: 4 kB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.186e-05/0.1541, allocations: 0 / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.306e-06/0.1541, allocations: 0 / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.1552, allocations: 0.6122 MB / 473 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.1552, allocations: 4 kB / 473 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.1552, allocations: 0 / 473 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.1561, allocations: 379.3 kB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1561, allocations: 4 kB / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1561, allocations: 0 / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.1562, allocations: 4 kB / 473.4 MB, free: 10.22 MB / 350.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.0008295/0.157, allocations: 412.4 kB / 473.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.1571, allocations: 8.031 kB / 473.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.302e-05/0.1572, allocations: 34.69 kB / 473.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.1572, allocations: 4.938 kB / 473.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.1573, allocations: 160.4 kB / 474 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.1574, allocations: 384 / 474 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.1574, allocations: 384 / 474 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.1575, allocations: 49.75 kB / 474 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1575, allocations: 0 / 474 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.1576, allocations: 4 kB / 474 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1576, allocations: 0 / 474 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.74e-05/0.1576, allocations: 4 kB / 474 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003105/0.1579, allocations: 236.8 kB / 474.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.789e-05/0.158, allocations: 26.61 kB / 474.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.836e-05/0.1581, allocations: 8.922 kB / 474.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.1581, allocations: 0 / 474.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.1582, allocations: 60.27 kB / 474.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.144e-06/0.1582, allocations: 4 kB / 474.4 MB, free: 9.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002525/0.1584, allocations: 71.33 kB / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.1585, allocations: 81.11 kB / 474.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.692e-05/0.1586, allocations: 101.9 kB / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.1586, allocations: 25.7 kB / 474.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.1586, allocations: 80.14 kB / 474.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.1586, allocations: 3.906 kB / 474.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.1587, allocations: 17.7 kB / 474.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1588, allocations: 310.8 kB / 475.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.1588, allocations: 4 kB / 475.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.458e-06/0.1589, allocations: 4 kB / 475.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.184e-05/0.1589, allocations: 64.33 kB / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1589, allocations: 3.938 kB / 475.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.561e-05/0.159, allocations: 75.33 kB / 475.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.1591, allocations: 29.7 kB / 475.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1591, allocations: 0 / 475.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1591, allocations: 0 / 475.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.906e-05/0.1591, allocations: 0 / 475.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.1592, allocations: 4 kB / 475.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.1592, allocations: 0 / 475.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.1592, allocations: 4.031 kB / 475.2 MB, free: 8.086 MB / 350.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.0001085/0.1593, allocations: 147.5 kB / 475.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.1593, allocations: 0 / 475.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.083e-05/0.1594, allocations: 7.078 kB / 475.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1594, allocations: 0 / 475.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1594, allocations: 0 / 475.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1594, allocations: 3.938 kB / 475.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.1597, allocations: 300.2 kB / 475.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1597, allocations: 4.031 kB / 475.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-06/0.1597, allocations: 3.984 kB / 475.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1597, allocations: 0 / 475.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.1597, allocations: 0 / 475.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1598, allocations: 4 kB / 475.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1598, allocations: 0 / 475.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.1599, allocations: 177.1 kB / 475.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.618e-05/0.16, allocations: 77.11 kB / 475.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.16, allocations: 8.031 kB / 476 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.407e-05/0.16, allocations: 0 / 476 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.11e-05/0.1601, allocations: 0 / 476 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1601, allocations: 3.938 kB / 476 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.195e-05/0.1601, allocations: 75.28 kB / 476 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1601, allocations: 0 / 476 MB, free: 7.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.1606, allocations: 135.8 kB / 476.2 MB, free: 7.039 MB / 350.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.001233/0.1619, allocations: 0.9101 MB / 477.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.162, allocations: 67.33 kB / 477.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.162, allocations: 8.031 kB / 477.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.672e-05/0.1621, allocations: 55.41 kB / 477.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.1623, allocations: 10.5 kB / 477.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.1634, allocations: 1.192 MB / 478.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.1637, allocations: 0.6729 MB / 479.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.382e-05/0.1637, allocations: 4 kB / 479.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.1637, allocations: 7.438 kB / 479.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1637, allocations: 0 / 479.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.1878, allocations: 4.396 MB / 483.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/7.955, allocations: 3.562 kB / 483.5 MB, free: 15.63 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches