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.001652/0.001652, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002127/0.002127, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 75.88 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 62.44 MB / 481.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001902/0.1137, allocations: 0.5026 MB / 481.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.1167, allocations: 2.104 MB / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.02e-05/0.1167, allocations: 4 kB / 484.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.1167, allocations: 4 kB / 484.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.1167, allocations: 0 / 484.1 MB, free: 1.926 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.001421/0.1182, allocations: 0.4905 MB / 484.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.871e-05/0.1182, allocations: 0 / 484.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.1183, allocations: 3.984 kB / 484.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.563e-05/0.1183, allocations: 0 / 484.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.777e-05/0.1183, allocations: 4 kB / 484.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.1183, allocations: 0 / 484.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009638/0.1193, allocations: 0.6317 MB / 485.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1193, allocations: 0 / 485.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.1193, allocations: 0 / 485.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.1199, allocations: 395.3 kB / 485.6 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1199, allocations: 4 kB / 485.6 MB, free: 416 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1199, allocations: 3.938 kB / 485.6 MB, free: 412 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1199, allocations: 0 / 485.6 MB, free: 412 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.0004241/0.1203, allocations: 417.1 kB / 486 MB, free: 15.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1204, allocations: 12.03 kB / 486 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.1204, allocations: 0.9375 kB / 486 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.404e-05/0.1205, allocations: 160.4 kB / 486.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1205, allocations: 384 / 486.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.206e-06/0.1205, allocations: 384 / 486.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.146e-05/0.1206, allocations: 46 kB / 486.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1207, allocations: 0 / 486.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.1207, allocations: 0 / 486.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1207, allocations: 0 / 486.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.841e-05/0.1207, allocations: 3.938 kB / 486.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.1209, allocations: 149.7 kB / 486.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.264e-05/0.1209, allocations: 18.52 kB / 486.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.703e-05/0.1209, allocations: 8.953 kB / 486.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-06/0.1209, allocations: 4 kB / 486.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.121, allocations: 64.19 kB / 486.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.121, allocations: 0 / 486.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001766/0.1212, allocations: 67.34 kB / 486.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.1212, allocations: 77.11 kB / 486.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.883e-05/0.1213, allocations: 89.86 kB / 486.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1213, allocations: 25.7 kB / 486.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.19e-05/0.1213, allocations: 84.27 kB / 486.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.1214, allocations: 4 kB / 486.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.1214, allocations: 13.7 kB / 486.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1215, allocations: 314.8 kB / 487.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.195e-05/0.1215, allocations: 4 kB / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.1216, allocations: 0 / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.198e-05/0.1216, allocations: 60.27 kB / 487.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1216, allocations: 3.938 kB / 487.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.611e-05/0.1217, allocations: 67.39 kB / 487.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.1218, allocations: 37.64 kB / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.1218, allocations: 0 / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1218, allocations: 0 / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.246e-06/0.1218, allocations: 4 kB / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.1218, allocations: 0 / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.035e-05/0.1218, allocations: 4 kB / 487.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1218, allocations: 0 / 487.3 MB, free: 14.43 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 0.0001013/0.1219, allocations: 135.5 kB / 487.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.122, allocations: 15.95 kB / 487.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.23e-05/0.122, allocations: 3.125 kB / 487.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.71e-07/0.122, allocations: 0 / 487.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.122, allocations: 0 / 487.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.122, allocations: 3.984 kB / 487.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.1221, allocations: 141.7 kB / 487.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1221, allocations: 0 / 487.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-06/0.1221, allocations: 4 kB / 487.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1222, allocations: 7.922 kB / 487.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.1222, allocations: 0 / 487.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1222, allocations: 4 kB / 487.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1222, allocations: 0 / 487.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.458e-05/0.1223, allocations: 90.78 kB / 487.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.709e-05/0.1223, allocations: 85 kB / 487.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.1224, allocations: 7.875 kB / 487.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-06/0.1224, allocations: 0 / 487.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.1224, allocations: 4 kB / 487.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1224, allocations: 0 / 487.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.275e-05/0.1224, allocations: 79.31 kB / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1224, allocations: 0 / 487.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.1228, allocations: 128 kB / 488 MB, free: 13.62 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.0007223/0.1236, allocations: 306.9 kB / 488.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.1237, allocations: 63.39 kB / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1237, allocations: 0 / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.852e-05/0.1237, allocations: 55.41 kB / 488.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.1239, allocations: 6.281 kB / 488.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001911/0.1241, allocations: 88.94 kB / 488.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.1243, allocations: 0.6729 MB / 489.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.1244, allocations: 0 / 489.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.213e-05/0.1244, allocations: 7.438 kB / 489.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1244, allocations: 4.125 kB / 489.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Templates: time 0.006918/0.1313, allocations: 3.502 MB / 492.7 MB, free: 8.852 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 -s cvode -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