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.000937/0.0009369, allocations: 97.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009727/0.0009728, allocations: 206 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.7 MB / 246.8 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2426/0.2426, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.0003029, allocations: 8.375 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1447, allocations: 63.56 MB / 483.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006689/0.1454, allocations: 226.9 kB / 483.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.1485, allocations: 2.136 MB / 485.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.383e-05/0.1485, allocations: 0 / 485.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.1485, allocations: 0 / 485.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.152e-06/0.1486, allocations: 0 / 485.4 MB, free: 1.797 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.001313/0.1499, allocations: 422.7 kB / 485.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.761e-05/0.1499, allocations: 7.984 kB / 485.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.15, allocations: 0 / 485.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.145e-05/0.15, allocations: 4 kB / 485.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.648e-05/0.15, allocations: 0 / 485.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.15, allocations: 0 / 485.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.1511, allocations: 0.6589 MB / 486.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.665e-06/0.1511, allocations: 0 / 486.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.246e-05/0.1511, allocations: 29.64 kB / 486.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005634/0.1517, allocations: 391.2 kB / 486.9 MB, free: 304 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1517, allocations: 7.938 kB / 486.9 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1517, allocations: 0 / 486.9 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1517, allocations: 0 / 486.9 MB, free: 296 kB / 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.0004398/0.1522, allocations: 419.7 kB / 487.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1522, allocations: 8.875 kB / 487.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.1522, allocations: 0.9375 kB / 487.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.1524, allocations: 168.3 kB / 487.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1524, allocations: 384 / 487.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.1524, allocations: 384 / 487.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.963e-05/0.1525, allocations: 46 kB / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1525, allocations: 0 / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1525, allocations: 0 / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1525, allocations: 0 / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.679e-05/0.1526, allocations: 0 / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.1527, allocations: 141.7 kB / 487.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.833e-05/0.1528, allocations: 26.53 kB / 487.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.69e-05/0.1528, allocations: 4.859 kB / 487.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-06/0.1528, allocations: 4 kB / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.178e-05/0.1529, allocations: 68.27 kB / 487.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1529, allocations: 0 / 487.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001986/0.1531, allocations: 63.39 kB / 487.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.1532, allocations: 81.09 kB / 487.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.79e-05/0.1532, allocations: 89.86 kB / 488 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1533, allocations: 25.7 kB / 488.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.1533, allocations: 88.2 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.1533, allocations: 0 / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.1534, allocations: 13.72 kB / 488.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1535, allocations: 318.8 kB / 488.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.986e-05/0.1535, allocations: 0 / 488.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.119e-06/0.1535, allocations: 0 / 488.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.832e-05/0.1536, allocations: 60.27 kB / 488.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1536, allocations: 0 / 488.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.809e-05/0.1537, allocations: 75.45 kB / 488.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.1537, allocations: 36.45 kB / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1537, allocations: 0 / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1538, allocations: 0 / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.258e-06/0.1538, allocations: 0 / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1538, allocations: 7.938 kB / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.825e-05/0.1538, allocations: 0 / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.1538, allocations: 0 / 488.6 MB, free: 14.31 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.854e-05/0.1539, allocations: 139.5 kB / 488.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/0.1539, allocations: 3.938 kB / 488.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.196e-05/0.1539, allocations: 11.09 kB / 488.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.154, allocations: 0 / 488.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.154, allocations: 0 / 488.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.154, allocations: 0 / 488.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.1541, allocations: 149.7 kB / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.1541, allocations: 0 / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1541, allocations: 0 / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1541, allocations: 3.938 kB / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.1541, allocations: 0 / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1541, allocations: 3.984 kB / 488.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1541, allocations: 4 kB / 488.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.009e-05/0.1542, allocations: 90.83 kB / 489 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.1543, allocations: 81.02 kB / 489.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.1543, allocations: 3.938 kB / 489.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-06/0.1543, allocations: 11.94 kB / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.1543, allocations: 0 / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.1543, allocations: 0 / 489.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.91e-05/0.1544, allocations: 79.31 kB / 489.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1544, allocations: 0 / 489.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000377/0.1548, allocations: 128 kB / 489.3 MB, free: 13.51 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 (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.0007428/0.1555, allocations: 308.5 kB / 489.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.52e-05/0.1556, allocations: 63.39 kB / 489.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1556, allocations: 0 / 489.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.713e-05/0.1557, allocations: 55.41 kB / 489.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1558, allocations: 4 kB / 489.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001874/0.156, allocations: 78.7 kB / 489.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.1563, allocations: 0.677 MB / 490.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.053e-06/0.1563, allocations: 3.938 kB / 490.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.416e-06/0.1563, allocations: 11.38 kB / 490.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1563, allocations: 128 / 490.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of Templates: time 0.00696/0.1633, allocations: 3.49 MB / 494 MB, free: 8.75 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches