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.001345/0.001345, allocations: 108 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.001262/0.001262, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.588/1.588, 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.2583/0.2583, 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.002075/0.002075, allocations: 71.89 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1557, 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.001878/0.1576, allocations: 0.4987 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003872/0.1615, allocations: 2.346 MB / 0.4902 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.275e-05/0.1616, allocations: 0 / 0.4902 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.1616, allocations: 0 / 0.4902 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-06/0.1616, allocations: 0 / 0.4902 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001741/0.1634, allocations: 0.5686 MB / 0.4907 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.825e-05/0.1635, allocations: 7.984 kB / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.1635, allocations: 0 / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.56e-05/0.1635, allocations: 0 / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.1636, allocations: 4 kB / 0.4907 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.1636, allocations: 3.984 kB / 0.4907 GB, free: 8.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.1648, allocations: 0.6824 MB / 0.4914 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.1648, allocations: 0 / 0.4914 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.1649, allocations: 4 kB / 0.4914 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007413/0.1656, allocations: 458.8 kB / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1656, allocations: 0 / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1656, allocations: 0 / 0.4919 GB, free: 7.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1657, 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.0006315/0.1663, allocations: 436.2 kB / 0.4923 GB, free: 7.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.1664, allocations: 11.89 kB / 0.4923 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.033e-05/0.1664, allocations: 46.69 kB / 0.4923 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.1665, allocations: 0.9375 kB / 0.4923 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.1666, allocations: 160.4 kB / 0.4925 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1666, allocations: 4.312 kB / 0.4925 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.1667, allocations: 4.359 kB / 0.4925 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.1668, allocations: 41.75 kB / 0.4925 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1668, allocations: 0 / 0.4925 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.1668, allocations: 4 kB / 0.4925 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1668, allocations: 0 / 0.4925 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.338e-05/0.1669, allocations: 0 / 0.4925 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003145/0.1672, allocations: 240.8 kB / 0.4928 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.821e-05/0.1672, allocations: 22.61 kB / 0.4928 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.1673, allocations: 8.922 kB / 0.4928 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.1673, allocations: 3.938 kB / 0.4928 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/0.1674, allocations: 64.27 kB / 0.4929 GB, free: 6.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1674, allocations: 0 / 0.4929 GB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002582/0.1676, allocations: 71.39 kB / 0.4929 GB, free: 6.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.1677, allocations: 77.11 kB / 0.493 GB, free: 6.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.065e-05/0.1678, allocations: 89.86 kB / 0.4931 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1678, allocations: 25.7 kB / 0.4931 GB, free: 6.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.147e-05/0.1679, allocations: 80.14 kB / 0.4932 GB, free: 6.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.1679, allocations: 15.94 kB / 0.4932 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.1679, allocations: 9.719 kB / 0.4932 GB, free: 6.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1681, allocations: 315 kB / 0.4935 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.587e-05/0.1681, allocations: 4 kB / 0.4935 GB, free: 5.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.178e-06/0.1681, allocations: 3.938 kB / 0.4935 GB, free: 5.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.169e-05/0.1682, allocations: 68.27 kB / 0.4936 GB, free: 5.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.1682, allocations: 3.938 kB / 0.4936 GB, free: 5.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.496e-05/0.1683, allocations: 67.39 kB / 0.4937 GB, free: 5.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.1684, allocations: 33.7 kB / 0.4937 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1684, allocations: 4.094 kB / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1684, allocations: 0 / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.638e-05/0.1684, allocations: 0 / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1684, allocations: 0 / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.1685, allocations: 0 / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1685, allocations: 4 kB / 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.0001381/0.1686, allocations: 151.3 kB / 0.4938 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.1687, allocations: 0 / 0.4938 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.1687, allocations: 7.125 kB / 0.4938 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1687, allocations: 0 / 0.4938 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1687, allocations: 4 kB / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1687, allocations: 0 / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.169, allocations: 300.3 kB / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.169, allocations: 7.984 kB / 0.4941 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.169, allocations: 0 / 0.4941 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.169, allocations: 3.938 kB / 0.4941 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.1691, allocations: 4 kB / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1691, allocations: 0 / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1691, allocations: 0 / 0.4941 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.1692, allocations: 177.2 kB / 0.4943 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.066e-05/0.1693, allocations: 77.11 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.1693, allocations: 0 / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.957e-05/0.1694, allocations: 0 / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.1694, allocations: 4 kB / 0.4944 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.1694, allocations: 4 kB / 0.4944 GB, free: 4.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.517e-05/0.1695, allocations: 75.28 kB / 0.4945 GB, free: 4.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1695, allocations: 4.031 kB / 0.4945 GB, free: 4.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005102/0.17, allocations: 163.3 kB / 0.4946 GB, free: 4.492 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.001285/0.1713, allocations: 0.9424 MB / 0.4956 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.1714, allocations: 63.39 kB / 0.4956 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1714, allocations: 0 / 0.4956 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.707e-05/0.1715, allocations: 59.41 kB / 0.4957 GB, free: 3.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.1717, allocations: 7.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.00111/0.1728, 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.000353/0.1732, allocations: 0.669 MB / 0.4975 GB, free: 1.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.15e-05/0.1732, allocations: 4.062 kB / 0.4975 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.081e-05/0.1732, allocations: 15.44 kB / 0.4975 GB, free: 1.352 MB / 382.1 MB Notification: Performance of SimCode: time 2.104e-06/0.1732, allocations: 0 / 0.4975 GB, free: 1.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.2037, allocations: 4.538 MB / 0.502 GB, free: 12.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/8.618, allocations: 3.984 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 & /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