Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008021/0.0008021, allocations: 95.7 kB / 17 MB, free: 6.844 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.0007927/0.0007927, allocations: 189.1 kB / 17.89 MB, free: 6.078 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.445/1.445, allocations: 223.2 MB / 241.9 MB, free: 14.48 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.2307/0.2307, allocations: 44.25 MB / 337.3 MB, free: 2.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002994, allocations: 8 kB / 409.7 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1487, allocations: 61.92 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0008421/0.1496, allocations: 230.9 kB / 471.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003843/0.1534, allocations: 1.945 MB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.049e-05/0.1535, allocations: 0 / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.1535, allocations: 0 / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-06/0.1535, allocations: 0 / 473.8 MB, free: 11.48 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.1552, allocations: 414.9 kB / 474.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.891e-05/0.1553, allocations: 0 / 474.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.119e-05/0.1553, allocations: 7.984 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.357e-05/0.1554, allocations: 7.984 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.166e-05/0.1554, allocations: 0 / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.1554, allocations: 0 / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.1568, allocations: 0.62 MB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.1568, allocations: 4 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.837e-05/0.1568, allocations: 25.7 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.1574, allocations: 247.6 kB / 475.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1574, allocations: 0 / 475.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.1574, allocations: 0 / 475.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1574, allocations: 3.938 kB / 475.1 MB, free: 10.16 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.0005373/0.1579, allocations: 417.3 kB / 475.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.158, allocations: 8.031 kB / 475.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/0.1581, allocations: 3.984 kB / 475.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.1582, allocations: 159.1 kB / 475.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.1582, allocations: 0 / 475.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.1583, allocations: 7.953 kB / 475.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.1584, allocations: 25.7 kB / 475.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1584, allocations: 0 / 475.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1584, allocations: 4 kB / 475.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1584, allocations: 0 / 475.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.1585, allocations: 7.938 kB / 475.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.1587, allocations: 149.7 kB / 475.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.024e-05/0.1587, allocations: 18.61 kB / 475.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.763e-05/0.1588, allocations: 4.859 kB / 475.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.1588, allocations: 0 / 475.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.446e-05/0.1589, allocations: 68.22 kB / 475.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.1589, allocations: 0 / 475.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002352/0.1591, allocations: 71.39 kB / 476 MB, free: 9.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.1592, allocations: 81.05 kB / 476.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.468e-05/0.1593, allocations: 93.86 kB / 476.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.1593, allocations: 25.7 kB / 476.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.1593, allocations: 80.14 kB / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.1594, allocations: 0 / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.1594, allocations: 128 / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1596, allocations: 314.8 kB / 476.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.1596, allocations: 0 / 476.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.248e-05/0.1596, allocations: 8 kB / 476.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.553e-05/0.1597, allocations: 29.69 kB / 476.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1597, allocations: 0 / 476.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000106/0.1598, allocations: 63.34 kB / 476.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.03e-05/0.1599, allocations: 29.7 kB / 476.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1599, allocations: 7.938 kB / 476.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1599, allocations: 4.094 kB / 476.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.1599, allocations: 4 kB / 476.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1599, allocations: 0 / 476.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.1599, allocations: 0 / 476.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.16, allocations: 0 / 476.7 MB, free: 8.254 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001443/0.1601, allocations: 140.1 kB / 476.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.032e-05/0.1601, allocations: 4 kB / 476.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.946e-05/0.1602, allocations: 7.078 kB / 476.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1602, allocations: 3.953 kB / 476.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1602, allocations: 4 kB / 476.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1602, allocations: 3.938 kB / 476.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.1604, allocations: 149.7 kB / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1604, allocations: 0 / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.1604, allocations: 0 / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1604, allocations: 0 / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.1604, allocations: 0 / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1604, allocations: 0 / 477 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1604, allocations: 3.953 kB / 477 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.1606, allocations: 106.7 kB / 477.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.946e-05/0.1606, allocations: 77.11 kB / 477.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.1607, allocations: 4 kB / 477.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.279e-05/0.1607, allocations: 0 / 477.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.1607, allocations: 7.891 kB / 477.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.1607, allocations: 0 / 477.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.919e-05/0.1608, allocations: 75.28 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1608, allocations: 0 / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005708/0.1614, allocations: 132 kB / 477.4 MB, free: 7.441 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001003/0.1624, allocations: 294 kB / 477.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.1625, allocations: 59.39 kB / 477.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1625, allocations: 0 / 477.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-05/0.1626, allocations: 63.41 kB / 477.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.1628, allocations: 8 kB / 477.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002287/0.163, allocations: 70.95 kB / 477.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1634, allocations: 0.677 MB / 478.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.045e-06/0.1634, allocations: 0 / 478.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.655e-05/0.1634, allocations: 7.438 kB / 478.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1634, allocations: 0 / 478.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of Templates: time 0.01029/0.1738, allocations: 3.403 MB / 482 MB, free: 2.793 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches