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.001179/0.001178, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 80.8 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1326, allocations: 62.44 MB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002114/0.1348, allocations: 495.7 kB / 480.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1381, allocations: 2.108 MB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.813e-05/0.1382, allocations: 0 / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.354e-05/0.1382, allocations: 0 / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.1382, allocations: 0 / 482.6 MB, free: 2.707 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.001704/0.1399, allocations: 0.4945 MB / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.378e-05/0.14, allocations: 12 kB / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.284e-05/0.14, allocations: 0 / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.787e-05/0.14, allocations: 3.984 kB / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.876e-05/0.1401, allocations: 0 / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1401, allocations: 4 kB / 483.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.1413, allocations: 0.62 MB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.1414, allocations: 0 / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.438e-05/0.1414, allocations: 0 / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008138/0.1422, allocations: 387.3 kB / 484.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1422, allocations: 4 kB / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1422, allocations: 0 / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1423, allocations: 0 / 484.1 MB, free: 1.191 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.0006663/0.1429, allocations: 421.4 kB / 484.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.143, allocations: 12.03 kB / 484.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.454e-05/0.143, allocations: 4.938 kB / 484.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1432, allocations: 172.3 kB / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1432, allocations: 384 / 484.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.1432, allocations: 4.312 kB / 484.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.1433, allocations: 34.02 kB / 484.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1433, allocations: 0 / 484.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.1433, allocations: 0 / 484.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1433, allocations: 0 / 484.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.98e-05/0.1434, allocations: 0 / 484.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.1435, allocations: 157.7 kB / 484.9 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.482e-05/0.1436, allocations: 22.5 kB / 484.9 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.476e-05/0.1436, allocations: 4.859 kB / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-06/0.1436, allocations: 96 / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/0.1437, allocations: 64.2 kB / 485 MB, free: 144 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.725e-06/0.1437, allocations: 3.984 kB / 485 MB, free: 140 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.1439, allocations: 71.39 kB / 485.1 MB, free: 56 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.144, allocations: 77.11 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.101e-05/0.144, allocations: 93.8 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.144, allocations: 25.7 kB / 485.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.1441, allocations: 80.14 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.1441, allocations: 0 / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.1441, allocations: 13.72 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1443, allocations: 310.8 kB / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.1443, allocations: 8.125 kB / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.106e-06/0.1443, allocations: 4 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.783e-05/0.1443, allocations: 64.19 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1444, allocations: 4 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.686e-05/0.1444, allocations: 55.41 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.1445, allocations: 40.14 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1445, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1445, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1445, allocations: 4.031 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1445, allocations: 4 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.784e-05/0.1446, allocations: 0 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.1446, allocations: 3.984 kB / 485.9 MB, free: 15.2 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 8.194e-05/0.1447, allocations: 139.5 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.1447, allocations: 3.938 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.626e-06/0.1447, allocations: 3.125 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1447, allocations: 4 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1447, allocations: 0 / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1447, allocations: 0 / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.1449, allocations: 149.7 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1449, allocations: 0 / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1449, allocations: 0 / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1449, allocations: 3.938 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.1449, allocations: 7.938 kB / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1449, allocations: 0 / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1449, allocations: 0 / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.1451, allocations: 94.83 kB / 486.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.1451, allocations: 88.95 kB / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.1451, allocations: 3.938 kB / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.979e-06/0.1451, allocations: 0 / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.1452, allocations: 0 / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1452, allocations: 4 kB / 486.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.051e-05/0.1452, allocations: 75.28 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1452, allocations: 0 / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.1457, allocations: 132 kB / 486.5 MB, free: 14.4 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.0008785/0.1466, allocations: 309.4 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.1468, allocations: 55.41 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1468, allocations: 0 / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.477e-05/0.1468, allocations: 55.41 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.1469, allocations: 6.375 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.1472, allocations: 92.86 kB / 487.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.1474, allocations: 0.6729 MB / 487.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.873e-06/0.1474, allocations: 0 / 487.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.1474, allocations: 7.438 kB / 487.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1474, allocations: 0 / 487.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of Templates: time 0.007549/0.155, allocations: 3.502 MB / 491.2 MB, free: 9.629 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