Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_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.00149/0.00149, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.002291/0.002292, allocations: 194 kB / 18.12 MB, free: 5.383 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.461/1.461, allocations: 222.9 MB / 241.8 MB, free: 15.37 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.233/0.233, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 68.23 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1416, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00192/0.1436, allocations: 0.5489 MB / 469.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003858/0.1475, allocations: 2.388 MB / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.195e-05/0.1475, allocations: 0 / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.102e-05/0.1476, allocations: 0 / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.1476, allocations: 0 / 471.6 MB, free: 11.78 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.1492, allocations: 470.8 kB / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.633e-05/0.1493, allocations: 7.938 kB / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.274e-05/0.1493, allocations: 0 / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.168e-05/0.1494, allocations: 3.984 kB / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.839e-05/0.1494, allocations: 0 / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.1494, allocations: 0 / 472 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.1508, allocations: 0.7213 MB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-06/0.1508, allocations: 0 / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.491e-05/0.1508, allocations: 4 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009167/0.1518, allocations: 463.3 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1518, allocations: 4 kB / 473.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1518, allocations: 0 / 473.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1518, allocations: 4 kB / 473.2 MB, free: 10.12 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.0005821/0.1524, allocations: 429.2 kB / 473.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.1524, allocations: 8.031 kB / 473.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.892e-05/0.1525, allocations: 30.75 kB / 473.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.1525, allocations: 8.922 kB / 473.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.1526, allocations: 164.3 kB / 473.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1527, allocations: 384 / 473.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.1527, allocations: 4.375 kB / 473.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.1528, allocations: 37.81 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.1528, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1528, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.1528, allocations: 0 / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.557e-05/0.1529, allocations: 11.98 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000296/0.1532, allocations: 228.8 kB / 474.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.808e-05/0.1533, allocations: 30.59 kB / 474.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.807e-05/0.1533, allocations: 8.922 kB / 474.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-06/0.1533, allocations: 0 / 474.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.1534, allocations: 60.27 kB / 474.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1534, allocations: 0 / 474.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002146/0.1536, allocations: 71.33 kB / 474.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.1537, allocations: 85.23 kB / 474.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.042e-05/0.1537, allocations: 93.77 kB / 474.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.1537, allocations: 25.7 kB / 474.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.951e-05/0.1538, allocations: 84.14 kB / 474.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.1538, allocations: 3.938 kB / 474.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.1539, allocations: 13.72 kB / 474.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.154, allocations: 310.8 kB / 474.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.091e-05/0.1541, allocations: 7.984 kB / 474.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.134e-05/0.1541, allocations: 11.94 kB / 474.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.806e-05/0.1541, allocations: 60.27 kB / 475 MB, free: 8.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.1541, allocations: 3.938 kB / 475 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000106/0.1543, allocations: 75.28 kB / 475.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.1543, allocations: 33.69 kB / 475.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1543, allocations: 0 / 475.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1544, allocations: 4 kB / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.065e-05/0.1544, allocations: 0 / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1544, allocations: 0 / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.749e-05/0.1544, allocations: 4.094 kB / 475.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.1544, allocations: 0 / 475.1 MB, free: 7.969 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.0001133/0.1546, allocations: 139.5 kB / 475.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.1546, allocations: 0 / 475.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.21e-05/0.1546, allocations: 11.08 kB / 475.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1546, allocations: 3.984 kB / 475.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1546, allocations: 0 / 475.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1546, allocations: 4 kB / 475.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.1549, allocations: 308.1 kB / 475.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1549, allocations: 0 / 475.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-06/0.155, allocations: 0 / 475.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.155, allocations: 4 kB / 475.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.155, allocations: 0 / 475.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.155, allocations: 0 / 475.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.155, allocations: 0 / 475.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.1552, allocations: 169.2 kB / 475.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.1552, allocations: 81.17 kB / 475.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.1552, allocations: 4 kB / 475.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.515e-05/0.1553, allocations: 3.984 kB / 475.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.1553, allocations: 3.984 kB / 475.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.1553, allocations: 4 kB / 475.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.051e-05/0.1554, allocations: 75.28 kB / 475.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.804e-06/0.1554, allocations: 0 / 475.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005631/0.1559, allocations: 159.8 kB / 476 MB, free: 6.898 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.001321/0.1573, allocations: 0.9448 MB / 477 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.1574, allocations: 63.44 kB / 477 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1574, allocations: 4.062 kB / 477.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.075e-05/0.1575, allocations: 63.33 kB / 477.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1577, allocations: 4 kB / 477.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.1588, allocations: 1.209 MB / 478.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1591, allocations: 0.6731 MB / 479 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.499e-05/0.1591, allocations: 0 / 479 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.1592, allocations: 11.44 kB / 479 MB, free: 3.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1592, allocations: 0 / 479 MB, free: 3.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.1772, allocations: 4.392 MB / 483.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.1775, allocations: 251.4 kB / 483.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.224, allocations: 7.625 kB / 483.7 MB, free: 15.21 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches