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.001283/0.001283, allocations: 103.5 kB / 16.4 MB, free: 6.477 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.001456/0.001456, allocations: 192.1 kB / 17.34 MB, free: 5.754 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.519/1.519, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2456/0.2456, allocations: 43.53 MB / 314.1 MB, free: 472 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.002069/0.002069, allocations: 72.47 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1514, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001849/0.1533, allocations: 490.9 kB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004212/0.1576, allocations: 2.342 MB / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.557e-05/0.1576, allocations: 0 / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.443e-05/0.1577, allocations: 0 / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.967e-06/0.1577, allocations: 0 / 0.4902 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002086/0.1598, allocations: 0.5725 MB / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.108e-05/0.1599, allocations: 0 / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.038e-05/0.16, allocations: 0 / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.785e-05/0.16, allocations: 4 kB / 0.4907 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.204e-05/0.16, allocations: 3.984 kB / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.243e-06/0.16, allocations: 0 / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.1613, allocations: 0.6902 MB / 0.4914 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.1614, allocations: 0 / 0.4914 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.169e-05/0.1614, allocations: 4 kB / 0.4914 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009912/0.1624, allocations: 451.4 kB / 0.4918 GB, free: 7.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1624, allocations: 0 / 0.4918 GB, free: 7.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1624, allocations: 0 / 0.4918 GB, free: 7.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1624, allocations: 0 / 0.4918 GB, free: 7.758 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.0005332/0.163, allocations: 437.1 kB / 0.4923 GB, free: 7.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.163, allocations: 23.88 kB / 0.4923 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.628e-05/0.1631, allocations: 30.75 kB / 0.4923 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.115e-05/0.1631, allocations: 8.875 kB / 0.4923 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.715e-05/0.1632, allocations: 160.4 kB / 0.4925 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.1632, allocations: 384 / 0.4925 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.1632, allocations: 8.312 kB / 0.4925 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1634, allocations: 41.8 kB / 0.4925 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1634, allocations: 0 / 0.4925 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.1634, allocations: 0 / 0.4925 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1634, allocations: 0 / 0.4925 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.604e-05/0.1634, allocations: 11.94 kB / 0.4925 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002437/0.1637, allocations: 224.9 kB / 0.4927 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.233e-05/0.1637, allocations: 26.59 kB / 0.4928 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.443e-05/0.1638, allocations: 12.92 kB / 0.4928 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.1638, allocations: 0 / 0.4928 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.1638, allocations: 64.2 kB / 0.4928 GB, free: 6.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.1638, allocations: 0 / 0.4928 GB, free: 6.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002175/0.1641, allocations: 71.39 kB / 0.4929 GB, free: 6.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.1641, allocations: 77.11 kB / 0.493 GB, free: 6.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.345e-05/0.1642, allocations: 89.86 kB / 0.4931 GB, free: 6.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.1642, allocations: 25.7 kB / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.599e-05/0.1642, allocations: 80.14 kB / 0.4932 GB, free: 6.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.1643, allocations: 11.91 kB / 0.4932 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.1643, allocations: 13.84 kB / 0.4932 GB, free: 6.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1644, allocations: 318.8 kB / 0.4935 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.1644, allocations: 0 / 0.4935 GB, free: 5.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.042e-05/0.1645, allocations: 4 kB / 0.4935 GB, free: 5.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.766e-05/0.1645, allocations: 68.2 kB / 0.4936 GB, free: 5.723 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1645, allocations: 3.938 kB / 0.4936 GB, free: 5.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.841e-05/0.1646, allocations: 67.39 kB / 0.4936 GB, free: 5.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.1647, allocations: 33.7 kB / 0.4937 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.1647, allocations: 4.094 kB / 0.4937 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1647, allocations: 0 / 0.4937 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.641e-05/0.1647, allocations: 0 / 0.4937 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1647, allocations: 3.984 kB / 0.4937 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.733e-05/0.1648, allocations: 0 / 0.4937 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.1648, allocations: 4 kB / 0.4937 GB, free: 5.59 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.299e-05/0.1649, allocations: 139.4 kB / 0.4938 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.1649, allocations: 11.92 kB / 0.4938 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.736e-05/0.1649, allocations: 7.125 kB / 0.4938 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1649, allocations: 4 kB / 0.4938 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1649, allocations: 0 / 0.4938 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.165, allocations: 0 / 0.4938 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.1652, allocations: 300.2 kB / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1652, allocations: 0 / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-06/0.1653, allocations: 0 / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1653, allocations: 0 / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.1653, allocations: 3.938 kB / 0.4941 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1653, allocations: 3.984 kB / 0.4941 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1653, allocations: 4 kB / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.1654, allocations: 177.2 kB / 0.4943 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.1655, allocations: 81.09 kB / 0.4944 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1655, allocations: 0 / 0.4944 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.604e-05/0.1656, allocations: 8 kB / 0.4944 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.1656, allocations: 0 / 0.4944 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.1656, allocations: 0 / 0.4944 GB, free: 4.742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.177e-05/0.1656, allocations: 75.28 kB / 0.4945 GB, free: 4.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1656, allocations: 4.031 kB / 0.4945 GB, free: 4.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.1662, allocations: 163.8 kB / 0.4946 GB, free: 4.504 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.001229/0.1674, allocations: 0.9297 MB / 0.4955 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001714/0.1676, allocations: 71.33 kB / 0.4956 GB, free: 3.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1676, allocations: 0 / 0.4956 GB, free: 3.461 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.431e-05/0.1677, allocations: 59.41 kB / 0.4956 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.1679, allocations: 3.438 kB / 0.4956 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.169, allocations: 1.219 MB / 0.4968 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.1692, allocations: 0.6729 MB / 0.4975 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.38e-05/0.1693, allocations: 4.062 kB / 0.4975 GB, free: 1.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.1693, allocations: 11.44 kB / 0.4975 GB, free: 1.371 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1693, allocations: 0 / 0.4975 GB, free: 1.371 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.1929, allocations: 4.539 MB / 0.5019 GB, free: 12.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/7.89, allocations: 7.922 kB / 0.502 GB, free: 12.81 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