Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",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.001384/0.001384, allocations: 106.7 kB / 16.41 MB, free: 6.445 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.00128/0.00128, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.512/1.512, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2304/0.2304, allocations: 43.53 MB / 314.1 MB, free: 464 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.001999/0.001999, allocations: 75.91 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1267, allocations: 57.79 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001738/0.1285, allocations: 0.4988 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003693/0.1322, allocations: 2.334 MB / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.72e-05/0.1322, allocations: 0 / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.1322, allocations: 0 / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.893e-06/0.1323, allocations: 0 / 0.4902 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.1339, allocations: 0.5764 MB / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.991e-05/0.134, allocations: 0 / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.134, allocations: 4 kB / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.524e-05/0.134, allocations: 0 / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.808e-05/0.1341, allocations: 0 / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.1341, allocations: 0 / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.1352, allocations: 0.6941 MB / 0.4914 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.268e-06/0.1352, allocations: 4 kB / 0.4914 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.1353, allocations: 4 kB / 0.4914 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007081/0.136, allocations: 454.8 kB / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.136, allocations: 0 / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.136, allocations: 0 / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.136, allocations: 0 / 0.4919 GB, free: 7.742 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.0005317/0.1366, allocations: 440.3 kB / 0.4923 GB, free: 7.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1366, allocations: 11.89 kB / 0.4923 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.1367, allocations: 34.69 kB / 0.4923 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.1367, allocations: 8.922 kB / 0.4923 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1368, allocations: 160.4 kB / 0.4925 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.1369, allocations: 8.312 kB / 0.4925 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.1369, allocations: 384 / 0.4925 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.137, allocations: 37.77 kB / 0.4925 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.137, allocations: 0 / 0.4925 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.137, allocations: 4 kB / 0.4925 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.137, allocations: 4 kB / 0.4925 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.437e-05/0.1371, allocations: 7.984 kB / 0.4925 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002469/0.1373, allocations: 224.9 kB / 0.4928 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.952e-05/0.1374, allocations: 30.56 kB / 0.4928 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.428e-05/0.1374, allocations: 8.922 kB / 0.4928 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.1374, allocations: 3.938 kB / 0.4928 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.1375, allocations: 60.27 kB / 0.4928 GB, free: 6.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1375, allocations: 0 / 0.4928 GB, free: 6.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.000195/0.1377, allocations: 71.39 kB / 0.4929 GB, free: 6.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.1377, allocations: 77.11 kB / 0.493 GB, free: 6.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.454e-05/0.1378, allocations: 93.86 kB / 0.4931 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.1378, allocations: 29.7 kB / 0.4931 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.1379, allocations: 80.14 kB / 0.4932 GB, free: 6.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.1379, allocations: 8.078 kB / 0.4932 GB, free: 6.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.1379, allocations: 13.72 kB / 0.4932 GB, free: 6.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1381, allocations: 310.8 kB / 0.4935 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.1381, allocations: 3.984 kB / 0.4935 GB, free: 5.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.269e-05/0.1381, allocations: 11.94 kB / 0.4935 GB, free: 5.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.235e-05/0.1382, allocations: 60.27 kB / 0.4936 GB, free: 5.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1382, allocations: 3.938 kB / 0.4936 GB, free: 5.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.086e-05/0.1383, allocations: 71.47 kB / 0.4936 GB, free: 5.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.1383, allocations: 33.69 kB / 0.4937 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.1383, allocations: 0 / 0.4937 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1383, allocations: 0 / 0.4937 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.587e-05/0.1384, allocations: 0 / 0.4937 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.1384, allocations: 7.984 kB / 0.4937 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.573e-05/0.1384, allocations: 0 / 0.4937 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1384, allocations: 0 / 0.4937 GB, free: 5.578 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.0001023/0.1385, allocations: 147.4 kB / 0.4938 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.1385, allocations: 11.92 kB / 0.4938 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.8e-05/0.1386, allocations: 7.156 kB / 0.4938 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1386, allocations: 3.984 kB / 0.4938 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1386, allocations: 0 / 0.4938 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1386, allocations: 0 / 0.4938 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.1389, allocations: 300.3 kB / 0.4941 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1389, allocations: 0 / 0.4941 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-06/0.1389, allocations: 0 / 0.4941 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1389, allocations: 3.938 kB / 0.4941 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.1389, allocations: 4 kB / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1389, allocations: 4.031 kB / 0.4941 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.1389, allocations: 4 kB / 0.4942 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.1391, allocations: 173.1 kB / 0.4943 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.1391, allocations: 77.11 kB / 0.4944 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1392, allocations: 4 kB / 0.4944 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.339e-05/0.1392, allocations: 3.984 kB / 0.4944 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/0.1392, allocations: 0 / 0.4944 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.1392, allocations: 0 / 0.4944 GB, free: 4.727 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.602e-05/0.1393, allocations: 83.31 kB / 0.4945 GB, free: 4.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1393, allocations: 0 / 0.4945 GB, free: 4.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004966/0.1398, allocations: 159.3 kB / 0.4946 GB, free: 4.488 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.001195/0.141, allocations: 0.9448 MB / 0.4956 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.1412, allocations: 63.41 kB / 0.4956 GB, free: 3.438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1412, allocations: 0 / 0.4956 GB, free: 3.438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.459e-05/0.1412, allocations: 59.39 kB / 0.4957 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.1414, allocations: 3.438 kB / 0.4957 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.1425, allocations: 1.214 MB / 0.4969 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1428, allocations: 0.6807 MB / 0.4975 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.079e-05/0.1428, allocations: 0 / 0.4975 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.111e-05/0.1429, allocations: 11.44 kB / 0.4975 GB, free: 1.348 MB / 382.1 MB Notification: Performance of SimCode: time 1.934e-06/0.1429, allocations: 0 / 0.4975 GB, free: 1.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.1701, allocations: 4.531 MB / 0.502 GB, free: 12.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.027/8.197, allocations: 11.64 kB / 0.502 GB, free: 12.8 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_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_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches