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.001199/0.001199, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2313/0.2313, allocations: 46.09 MB / 344.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 76.75 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1125, allocations: 62.44 MB / 480.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001715/0.1143, allocations: 0.4942 MB / 481.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002911/0.1172, allocations: 2.108 MB / 483.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.1172, allocations: 0 / 483.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.621e-05/0.1173, allocations: 0 / 483.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.1173, allocations: 4 kB / 483.3 MB, free: 2.672 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.001335/0.1186, allocations: 0.4904 MB / 483.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.859e-05/0.1187, allocations: 8 kB / 483.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.1187, allocations: 0 / 483.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.853e-05/0.1187, allocations: 4 kB / 483.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.977e-05/0.1188, allocations: 7.984 kB / 483.8 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-06/0.1188, allocations: 0 / 483.8 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.1198, allocations: 0.62 MB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.1198, allocations: 0 / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.913e-05/0.1199, allocations: 0 / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.1204, allocations: 387.3 kB / 484.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1204, allocations: 4 kB / 484.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1204, allocations: 0 / 484.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1204, allocations: 0 / 484.8 MB, free: 1.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.000453/0.1209, allocations: 417.4 kB / 485.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.1209, allocations: 12.03 kB / 485.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.121, allocations: 4.938 kB / 485.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.384e-05/0.1211, allocations: 164.4 kB / 485.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1211, allocations: 384 / 485.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-06/0.1211, allocations: 384 / 485.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.967e-05/0.1212, allocations: 37.95 kB / 485.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.1212, allocations: 0 / 485.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.1212, allocations: 0 / 485.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1212, allocations: 0 / 485.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.762e-05/0.1212, allocations: 4 kB / 485.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001242/0.1214, allocations: 157.7 kB / 485.6 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.784e-05/0.1214, allocations: 18.58 kB / 485.6 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.1214, allocations: 4.859 kB / 485.6 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.1215, allocations: 4.094 kB / 485.6 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.1215, allocations: 68.08 kB / 485.7 MB, free: 116 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1215, allocations: 0 / 485.7 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001702/0.1217, allocations: 67.39 kB / 485.8 MB, free: 36 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.1218, allocations: 81.11 kB / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.679e-05/0.1218, allocations: 89.86 kB / 485.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.1218, allocations: 25.7 kB / 485.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.413e-05/0.1219, allocations: 80.14 kB / 486 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.1219, allocations: 4 kB / 486 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.1219, allocations: 9.719 kB / 486 MB, free: 15.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.122, allocations: 311 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-06/0.122, allocations: 4 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-06/0.1221, allocations: 7.984 kB / 486.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.53e-05/0.1221, allocations: 72.14 kB / 486.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1221, allocations: 0 / 486.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.268e-05/0.1222, allocations: 55.41 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.1222, allocations: 37.64 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1222, allocations: 0 / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1223, allocations: 3.984 kB / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.1223, allocations: 8.094 kB / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.1223, allocations: 0 / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.1223, allocations: 0 / 486.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.1223, allocations: 4 kB / 486.5 MB, free: 15.17 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.123e-05/0.1224, allocations: 131.5 kB / 486.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.073e-05/0.1224, allocations: 7.938 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-06/0.1224, allocations: 3.125 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1224, allocations: 4 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1224, allocations: 0 / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1224, allocations: 4 kB / 486.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.168e-05/0.1225, allocations: 145.7 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1226, allocations: 3.938 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1226, allocations: 0 / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1226, allocations: 3.938 kB / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.942e-06/0.1226, allocations: 4 kB / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1226, allocations: 0 / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1226, allocations: 0 / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.521e-05/0.1227, allocations: 98.81 kB / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.1227, allocations: 81.02 kB / 487 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.1228, allocations: 3.938 kB / 487 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-06/0.1228, allocations: 0 / 487 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.1228, allocations: 0 / 487 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1228, allocations: 4 kB / 487 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.36e-05/0.1228, allocations: 75.28 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1228, allocations: 3.938 kB / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.1232, allocations: 132 kB / 487.2 MB, free: 14.38 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.0007162/0.1239, allocations: 315.7 kB / 487.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.994e-05/0.124, allocations: 63.34 kB / 487.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.124, allocations: 0 / 487.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.757e-05/0.1241, allocations: 55.41 kB / 487.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1242, allocations: 8.109 kB / 487.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001702/0.1244, allocations: 110.6 kB / 487.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.1246, allocations: 0.6729 MB / 488.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.1247, allocations: 7.438 kB / 488.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1247, allocations: 0 / 488.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Templates: time 0.005515/0.1302, allocations: 3.323 MB / 491.8 MB, free: 9.742 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches