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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 107.2 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3652/0.3652, allocations: 44.83 MB / 392.7 MB, free: 34.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 63.91 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3627, allocations: 62.01 MB / 0.5151 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001719/0.3645, allocations: 0.5695 MB / 0.5157 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.3673, allocations: 2.153 MB / 0.5178 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.19e-05/0.3673, allocations: 4 kB / 0.5178 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.3674, allocations: 0 / 0.5178 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.3674, allocations: 3.938 kB / 0.5178 GB, free: 36.02 MB / 378.7 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.001154/0.3685, allocations: 429.7 kB / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.51e-05/0.3686, allocations: 0 / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.016e-05/0.3686, allocations: 3 kB / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.31e-05/0.3687, allocations: 0 / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.3687, allocations: 3.938 kB / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.3687, allocations: 4 kB / 0.5182 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000899/0.3696, allocations: 0.6521 MB / 0.5189 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.3696, allocations: 2.844 kB / 0.5189 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.16e-05/0.3697, allocations: 0 / 0.5189 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004991/0.3702, allocations: 395 kB / 0.5192 GB, free: 35.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3702, allocations: 0 / 0.5192 GB, free: 35.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3702, allocations: 0 / 0.5192 GB, free: 35.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.3702, allocations: 0 / 0.5192 GB, free: 35.52 MB / 378.7 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.0003876/0.3706, allocations: 428.6 kB / 0.5197 GB, free: 35.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3706, allocations: 8.094 kB / 0.5197 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.3707, allocations: 0.9375 kB / 0.5197 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.708e-05/0.3708, allocations: 167.1 kB / 0.5198 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.3708, allocations: 384 / 0.5198 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-06/0.3708, allocations: 384 / 0.5198 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.022e-05/0.3709, allocations: 35.91 kB / 0.5199 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3709, allocations: 0 / 0.5199 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.3709, allocations: 0 / 0.5199 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3709, allocations: 2.719 kB / 0.5199 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.584e-05/0.3709, allocations: 4 kB / 0.5199 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.641e-05/0.371, allocations: 144.4 kB / 0.52 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.54e-05/0.3711, allocations: 21.89 kB / 0.52 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.568e-05/0.3711, allocations: 11.7 kB / 0.52 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.3711, allocations: 0 / 0.52 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3711, allocations: 60.2 kB / 0.5201 GB, free: 34.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3711, allocations: 0 / 0.5201 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.3713, allocations: 69.72 kB / 0.5202 GB, free: 34.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.3713, allocations: 81.05 kB / 0.5202 GB, free: 34.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.127e-05/0.3714, allocations: 89.86 kB / 0.5203 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.053e-06/0.3714, allocations: 25.7 kB / 0.5203 GB, free: 34.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.065e-05/0.3714, allocations: 84.14 kB / 0.5204 GB, free: 34.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3714, allocations: 0 / 0.5204 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.3714, allocations: 12.59 kB / 0.5204 GB, free: 34.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.3715, allocations: 311 kB / 0.5207 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.3715, allocations: 14.81 kB / 0.5208 GB, free: 33.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.528e-06/0.3715, allocations: 0 / 0.5208 GB, free: 33.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.82e-05/0.3716, allocations: 62.88 kB / 0.5208 GB, free: 33.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3716, allocations: 4 kB / 0.5208 GB, free: 33.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.916e-05/0.3716, allocations: 67.91 kB / 0.5209 GB, free: 33.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.3717, allocations: 34.52 kB / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.3717, allocations: 0 / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3717, allocations: 3.188 kB / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.3717, allocations: 4.094 kB / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/0.3717, allocations: 0 / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.3717, allocations: 2.562 kB / 0.5209 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.3717, allocations: 0 / 0.5209 GB, free: 33.64 MB / 378.7 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 5.845e-05/0.3718, allocations: 134.9 kB / 0.521 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-06/0.3718, allocations: 3.938 kB / 0.5211 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-06/0.3718, allocations: 6.719 kB / 0.5211 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3718, allocations: 6.516 kB / 0.5211 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3718, allocations: 3.422 kB / 0.5211 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.3718, allocations: 4 kB / 0.5211 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.577e-05/0.3719, allocations: 148.1 kB / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.3719, allocations: 0 / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3719, allocations: 0 / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3719, allocations: 3.938 kB / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.3719, allocations: 0 / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.372, allocations: 5.906 kB / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.372, allocations: 0 / 0.5212 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.3722, allocations: 0.6398 MB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.827e-05/0.3722, allocations: 80.39 kB / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.3722, allocations: 2.969 kB / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3722, allocations: 0 / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.3723, allocations: 0 / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.3723, allocations: 0 / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.636e-05/0.3723, allocations: 75.28 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3723, allocations: 2.75 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005138/0.3728, allocations: 143 kB / 0.5221 GB, free: 32.39 MB / 378.7 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.0006931/0.3735, allocations: 311.9 kB / 0.5224 GB, free: 32.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.826e-05/0.3736, allocations: 64.34 kB / 0.5225 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.3736, allocations: 4.062 kB / 0.5225 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.397e-05/0.3737, allocations: 54.06 kB / 0.5226 GB, free: 32.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.3738, allocations: 2.375 kB / 0.5226 GB, free: 32.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000204/0.374, allocations: 184.1 kB / 0.5227 GB, free: 31.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.3741, allocations: 0.6692 MB / 0.5234 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.359e-05/0.3742, allocations: 3.469 kB / 0.5234 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-06/0.3742, allocations: 9.688 kB / 0.5234 GB, free: 31.19 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3742, allocations: 0 / 0.5234 GB, free: 31.19 MB / 378.7 MB Notification: Performance of Templates: time 0.006052/0.3802, allocations: 3.512 MB / 0.5268 GB, free: 30.89 MB / 378.7 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@2/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