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.001308/0.001308, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 209.9 kB / 19.4 MB, free: 3.664 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.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 75.88 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3782, allocations: 62.44 MB / 0.5316 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00171/0.38, allocations: 0.5031 MB / 0.5321 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003155/0.3832, allocations: 2.099 MB / 0.5342 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.85e-05/0.3832, allocations: 0 / 0.5342 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.3832, allocations: 0 / 0.5342 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.276e-06/0.3833, allocations: 5.062 kB / 0.5342 GB, free: 11.81 MB / 398.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.001579/0.3849, allocations: 0.497 MB / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.426e-05/0.3849, allocations: 5.375 kB / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.905e-05/0.385, allocations: 1.375 kB / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.934e-05/0.385, allocations: 5.359 kB / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.651e-05/0.385, allocations: 0 / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-06/0.385, allocations: 1.375 kB / 0.5347 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.3861, allocations: 0.6288 MB / 0.5353 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.248e-06/0.3861, allocations: 3.938 kB / 0.5353 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.3862, allocations: 1.094 kB / 0.5353 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006117/0.3868, allocations: 380.8 kB / 0.5357 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3868, allocations: 0 / 0.5357 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3868, allocations: 0 / 0.5357 GB, free: 10.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.3868, allocations: 1 kB / 0.5357 GB, free: 10.93 MB / 398.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.0004532/0.3873, allocations: 420.7 kB / 0.5361 GB, free: 10.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3873, allocations: 8.594 kB / 0.5361 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.3874, allocations: 2 kB / 0.5361 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.3875, allocations: 160.4 kB / 0.5362 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3875, allocations: 5.469 kB / 0.5362 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3875, allocations: 9.406 kB / 0.5363 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.042e-05/0.3876, allocations: 36.19 kB / 0.5363 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.3876, allocations: 0 / 0.5363 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3876, allocations: 5.547 kB / 0.5363 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3876, allocations: 0 / 0.5363 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.848e-05/0.3877, allocations: 5.203 kB / 0.5363 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.3878, allocations: 143.1 kB / 0.5364 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.567e-05/0.3878, allocations: 15.83 kB / 0.5364 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.3879, allocations: 17.95 kB / 0.5365 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.3879, allocations: 1.156 kB / 0.5365 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.024e-05/0.388, allocations: 61.14 kB / 0.5365 GB, free: 9.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.388, allocations: 0 / 0.5365 GB, free: 9.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001728/0.3881, allocations: 63.17 kB / 0.5366 GB, free: 9.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.3882, allocations: 78.3 kB / 0.5367 GB, free: 9.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.619e-05/0.3883, allocations: 89.86 kB / 0.5367 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.3883, allocations: 29.83 kB / 0.5368 GB, free: 9.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.771e-05/0.3883, allocations: 89.08 kB / 0.5369 GB, free: 9.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.3883, allocations: 0 / 0.5369 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.3884, allocations: 12 kB / 0.5369 GB, free: 9.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3885, allocations: 316 kB / 0.5372 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.323e-05/0.3885, allocations: 5.156 kB / 0.5372 GB, free: 9.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-06/0.3885, allocations: 1.156 kB / 0.5372 GB, free: 9.211 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.1e-05/0.3886, allocations: 63.61 kB / 0.5372 GB, free: 9.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.3886, allocations: 7.938 kB / 0.5372 GB, free: 9.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.183e-05/0.3887, allocations: 62.03 kB / 0.5373 GB, free: 9.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/0.3887, allocations: 39.44 kB / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3887, allocations: 0 / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3887, allocations: 0.9375 kB / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.3888, allocations: 0 / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3888, allocations: 1.219 kB / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.3888, allocations: 0 / 0.5373 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.3888, allocations: 1.156 kB / 0.5373 GB, free: 9.023 MB / 398.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.615e-05/0.3889, allocations: 141.8 kB / 0.5375 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.038e-05/0.3889, allocations: 5.031 kB / 0.5375 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.946e-06/0.3889, allocations: 3.125 kB / 0.5375 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3889, allocations: 1.156 kB / 0.5375 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3889, allocations: 3.984 kB / 0.5375 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3889, allocations: 0 / 0.5375 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.3891, allocations: 152 kB / 0.5376 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3891, allocations: 0 / 0.5376 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3891, allocations: 0 / 0.5376 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3891, allocations: 9.125 kB / 0.5376 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.3891, allocations: 0 / 0.5376 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3891, allocations: 1.156 kB / 0.5376 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3891, allocations: 0 / 0.5376 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.3892, allocations: 90.17 kB / 0.5377 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.3893, allocations: 77.11 kB / 0.5378 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3893, allocations: 5.062 kB / 0.5378 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.092e-05/0.3893, allocations: 5.172 kB / 0.5378 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.3893, allocations: 5.219 kB / 0.5378 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.3893, allocations: 0 / 0.5378 GB, free: 8.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.702e-05/0.3894, allocations: 84.31 kB / 0.5379 GB, free: 8.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3894, allocations: 3.938 kB / 0.5379 GB, free: 8.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004822/0.3899, allocations: 132 kB / 0.538 GB, free: 8.328 MB / 398.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.0007305/0.3906, allocations: 308.6 kB / 0.5383 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.3907, allocations: 56.69 kB / 0.5384 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3908, allocations: 4 kB / 0.5384 GB, free: 8.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.3908, allocations: 58.95 kB / 0.5384 GB, free: 8.016 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.3909, allocations: 2.594 kB / 0.5384 GB, free: 8.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002084/0.3911, allocations: 98.84 kB / 0.5385 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3915, allocations: 0.6704 MB / 0.5392 GB, free: 7.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.3915, allocations: 12.75 kB / 0.5392 GB, free: 7.188 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3915, allocations: 0 / 0.5392 GB, free: 7.188 MB / 398.1 MB Notification: Performance of Templates: time 0.007281/0.3988, allocations: 3.331 MB / 0.5425 GB, free: 5.543 MB / 398.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