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.001159/0.00116, allocations: 104.5 kB / 16.4 MB, free: 6.508 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.001169/0.001169, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.478/1.478, 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.2209/0.2209, allocations: 43.53 MB / 314.1 MB, free: 444 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.001509/0.001509, allocations: 73.47 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1185, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002258/0.1208, allocations: 0.4946 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003915/0.1247, allocations: 2.342 MB / 0.4902 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.976e-05/0.1248, allocations: 0 / 0.4902 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.172e-05/0.1248, allocations: 0 / 0.4902 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.1248, allocations: 0 / 0.4902 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.1267, allocations: 0.5647 MB / 0.4907 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.242e-05/0.1267, allocations: 7.984 kB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.1268, allocations: 0 / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.585e-05/0.1268, allocations: 4 kB / 0.4907 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.603e-05/0.1268, allocations: 0 / 0.4907 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.1268, allocations: 0 / 0.4907 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.1281, allocations: 0.6941 MB / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.337e-06/0.1281, allocations: 0 / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.1282, allocations: 0 / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.1292, allocations: 451.4 kB / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1292, allocations: 0 / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1292, allocations: 0 / 0.4918 GB, free: 7.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1293, allocations: 0 / 0.4918 GB, free: 7.719 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.0007012/0.13, allocations: 437.1 kB / 0.4923 GB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.13, allocations: 15.83 kB / 0.4923 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.842e-05/0.1301, allocations: 46.72 kB / 0.4923 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.1301, allocations: 0.9375 kB / 0.4923 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.1303, allocations: 164.4 kB / 0.4925 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.1303, allocations: 384 / 0.4925 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.1303, allocations: 4.375 kB / 0.4925 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.1305, allocations: 29.83 kB / 0.4925 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1305, allocations: 3.984 kB / 0.4925 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.1305, allocations: 4 kB / 0.4925 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1305, allocations: 0 / 0.4925 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.083e-05/0.1306, allocations: 3.938 kB / 0.4925 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.1309, allocations: 232.9 kB / 0.4927 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.065e-05/0.131, allocations: 30.53 kB / 0.4928 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.551e-05/0.131, allocations: 8.922 kB / 0.4928 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.131, allocations: 4 kB / 0.4928 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/0.1311, allocations: 56.27 kB / 0.4928 GB, free: 6.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 2.896e-06/0.1311, allocations: 4 kB / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002228/0.1313, allocations: 75.33 kB / 0.4929 GB, free: 6.426 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.1314, allocations: 77.11 kB / 0.493 GB, free: 6.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.463e-05/0.1314, allocations: 89.86 kB / 0.4931 GB, free: 6.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.1315, allocations: 25.7 kB / 0.4931 GB, free: 6.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.869e-05/0.1315, allocations: 80.14 kB / 0.4932 GB, free: 6.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.1315, allocations: 11.91 kB / 0.4932 GB, free: 6.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.1316, allocations: 9.719 kB / 0.4932 GB, free: 6.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1317, allocations: 319 kB / 0.4935 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.1317, allocations: 4 kB / 0.4935 GB, free: 5.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.755e-06/0.1317, allocations: 0 / 0.4935 GB, free: 5.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.306e-05/0.1318, allocations: 72.2 kB / 0.4936 GB, free: 5.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1318, allocations: 3.938 kB / 0.4936 GB, free: 5.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.99e-05/0.1319, allocations: 67.39 kB / 0.4936 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.132, allocations: 33.7 kB / 0.4937 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.132, allocations: 4.078 kB / 0.4937 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.132, allocations: 4 kB / 0.4937 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.989e-05/0.132, allocations: 4 kB / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.132, allocations: 0 / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.838e-05/0.132, allocations: 0 / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.1321, allocations: 7.938 kB / 0.4937 GB, free: 5.543 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.805e-05/0.1322, allocations: 139.4 kB / 0.4938 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.1322, allocations: 3.984 kB / 0.4938 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.1322, allocations: 11.12 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1322, allocations: 0 / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1322, allocations: 4 kB / 0.4938 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1322, allocations: 0 / 0.4938 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.1325, allocations: 300.2 kB / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1325, allocations: 0 / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-06/0.1325, allocations: 0 / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1325, allocations: 0 / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1326, allocations: 0 / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.1326, allocations: 0 / 0.4941 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1326, allocations: 3.984 kB / 0.4941 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.1327, allocations: 173.2 kB / 0.4943 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.591e-05/0.1328, allocations: 81.09 kB / 0.4944 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1328, allocations: 0 / 0.4944 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.699e-05/0.1328, allocations: 4 kB / 0.4944 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.854e-05/0.1329, allocations: 7.938 kB / 0.4944 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.1329, allocations: 0 / 0.4944 GB, free: 4.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.87e-05/0.1329, allocations: 75.28 kB / 0.4945 GB, free: 4.633 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1329, allocations: 4.031 kB / 0.4945 GB, free: 4.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005764/0.1335, allocations: 163.8 kB / 0.4946 GB, free: 4.469 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.0012/0.1347, allocations: 0.9314 MB / 0.4955 GB, free: 3.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.1348, allocations: 71.33 kB / 0.4956 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1349, allocations: 0 / 0.4956 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.782e-05/0.1349, allocations: 55.41 kB / 0.4956 GB, free: 3.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.1351, allocations: 4 kB / 0.4956 GB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.1362, allocations: 1.219 MB / 0.4968 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1365, allocations: 0.6729 MB / 0.4975 GB, free: 1.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.368e-05/0.1366, allocations: 0 / 0.4975 GB, free: 1.348 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.919e-05/0.1366, allocations: 11.5 kB / 0.4975 GB, free: 1.336 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1366, allocations: 7.938 kB / 0.4975 GB, free: 1.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.1616, allocations: 4.532 MB / 0.5019 GB, free: 12.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.103, allocations: 3.984 kB / 0.5019 GB, free: 12.78 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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