Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 98.86 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 209.5 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 45.92 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003068, allocations: 11.98 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1527, allocations: 63.47 MB / 481.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0007128/0.1535, allocations: 222.9 kB / 481.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1564, allocations: 1.985 MB / 483.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.397e-05/0.1564, allocations: 0 / 483.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.262e-05/0.1564, allocations: 0 / 483.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.1564, allocations: 3.938 kB / 483.6 MB, free: 3.211 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001245/0.1577, allocations: 418.7 kB / 484 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.068e-05/0.1577, allocations: 7.875 kB / 484 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.1578, allocations: 4 kB / 484 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.153e-05/0.1578, allocations: 3.938 kB / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.276e-05/0.1579, allocations: 0 / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.624e-06/0.1579, allocations: 0 / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000971/0.1588, allocations: 0.6046 MB / 484.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.1589, allocations: 7.984 kB / 484.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.17e-05/0.1589, allocations: 25.7 kB / 484.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.1593, allocations: 251.5 kB / 484.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1593, allocations: 4 kB / 484.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1593, allocations: 0 / 484.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1593, allocations: 0 / 484.9 MB, free: 1.895 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.0004306/0.1598, allocations: 409.3 kB / 485.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1598, allocations: 12.03 kB / 485.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.1599, allocations: 4 kB / 485.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.803e-05/0.16, allocations: 167 kB / 485.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.16, allocations: 0 / 485.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.16, allocations: 0 / 485.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.1601, allocations: 33.7 kB / 485.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1601, allocations: 0 / 485.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1601, allocations: 0 / 485.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1602, allocations: 3.984 kB / 485.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.1602, allocations: 4 kB / 485.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.1603, allocations: 145.6 kB / 485.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.539e-05/0.1604, allocations: 22.52 kB / 485.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.1604, allocations: 3.938 kB / 485.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.282e-05/0.1605, allocations: 68.34 kB / 485.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.1605, allocations: 0 / 485.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002273/0.1607, allocations: 63.39 kB / 485.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.1608, allocations: 77.11 kB / 485.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.703e-05/0.1608, allocations: 93.86 kB / 486 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1609, allocations: 25.7 kB / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.1609, allocations: 80.14 kB / 486.1 MB, free: 496 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.1609, allocations: 4.125 kB / 486.1 MB, free: 492 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.1609, allocations: 0 / 486.1 MB, free: 492 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1611, allocations: 314.8 kB / 486.4 MB, free: 168 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.1611, allocations: 3.938 kB / 486.4 MB, free: 164 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.1611, allocations: 7.984 kB / 486.4 MB, free: 156 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.1611, allocations: 29.7 kB / 486.4 MB, free: 120 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1611, allocations: 3.953 kB / 486.5 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.795e-05/0.1612, allocations: 55.41 kB / 486.5 MB, free: 48 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.1613, allocations: 37.8 kB / 486.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1613, allocations: 4.109 kB / 486.5 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1613, allocations: 3.938 kB / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.1613, allocations: 0 / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1613, allocations: 3.984 kB / 486.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.1613, allocations: 0 / 486.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.1613, allocations: 4 kB / 486.6 MB, free: 15.98 MB / 366.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 8.441e-05/0.1614, allocations: 131.5 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-06/0.1615, allocations: 3.953 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.1615, allocations: 7.125 kB / 486.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1615, allocations: 4 kB / 486.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.1615, allocations: 0 / 486.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1615, allocations: 3.938 kB / 486.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.499e-05/0.1616, allocations: 145.7 kB / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1616, allocations: 0 / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-06/0.1616, allocations: 3.953 kB / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1616, allocations: 0 / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.1616, allocations: 4 kB / 486.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1616, allocations: 0 / 486.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1616, allocations: 0 / 486.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.1618, allocations: 106.7 kB / 487 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.1618, allocations: 77.11 kB / 487 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1618, allocations: 3.953 kB / 487 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.1618, allocations: 0 / 487 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.1619, allocations: 4 kB / 487 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.1619, allocations: 8 kB / 487 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.396e-05/0.1619, allocations: 75.28 kB / 487.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1619, allocations: 4.031 kB / 487.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.1624, allocations: 128 kB / 487.3 MB, free: 15.18 MB / 366.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.0007763/0.1631, allocations: 317.3 kB / 487.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.859e-05/0.1632, allocations: 55.41 kB / 487.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1633, allocations: 4.062 kB / 487.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.1633, allocations: 55.41 kB / 487.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.673e-05/0.1634, allocations: 0 / 487.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002867/0.1637, allocations: 86.69 kB / 487.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.164, allocations: 0.6692 MB / 488.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.542e-06/0.164, allocations: 0 / 488.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.465e-05/0.164, allocations: 11.44 kB / 488.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.164, allocations: 0 / 488.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of Templates: time 0.007535/0.1715, allocations: 3.533 MB / 492 MB, free: 10.38 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches