Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 112.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2044/0.2044, allocations: 44.19 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3823, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001555/0.3839, allocations: 0.4937 MB / 0.5194 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.3866, allocations: 2.037 MB / 0.5214 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.789e-05/0.3866, allocations: 3.938 kB / 0.5214 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.436e-05/0.3867, allocations: 0 / 0.5214 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.3867, allocations: 0 / 0.5214 GB, free: 1.883 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001475/0.3882, allocations: 0.505 MB / 0.5219 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.371e-05/0.3882, allocations: 1.734 kB / 0.5219 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.3883, allocations: 5.531 kB / 0.5219 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.591e-05/0.3883, allocations: 1.219 kB / 0.5219 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.153e-05/0.3883, allocations: 5.547 kB / 0.5219 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-06/0.3883, allocations: 0 / 0.5219 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.3895, allocations: 0.5977 MB / 0.5225 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.146e-05/0.3895, allocations: 9.359 kB / 0.5225 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.3895, allocations: 8.656 kB / 0.5225 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006563/0.3902, allocations: 380.6 kB / 0.5228 GB, free: 1.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3902, allocations: 0 / 0.5228 GB, free: 1.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3902, allocations: 0 / 0.5228 GB, free: 1.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3902, allocations: 1.281 kB / 0.5228 GB, free: 1.371 MB / 382.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.0003728/0.3906, allocations: 418.2 kB / 0.5232 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3906, allocations: 8.844 kB / 0.5233 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.773e-05/0.3907, allocations: 9.766 kB / 0.5233 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.797e-05/0.3907, allocations: 161.7 kB / 0.5234 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3907, allocations: 1.406 kB / 0.5234 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.3908, allocations: 1.406 kB / 0.5234 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.606e-05/0.3908, allocations: 34.03 kB / 0.5235 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-06/0.3908, allocations: 0 / 0.5235 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.525e-06/0.3909, allocations: 0 / 0.5235 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3909, allocations: 5.312 kB / 0.5235 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.644e-05/0.3909, allocations: 5.969 kB / 0.5235 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.476e-05/0.391, allocations: 148.5 kB / 0.5236 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.391, allocations: 17.42 kB / 0.5236 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.3911, allocations: 6.078 kB / 0.5236 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.3911, allocations: 0.6562 kB / 0.5236 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.3911, allocations: 70.2 kB / 0.5237 GB, free: 400 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3911, allocations: 0 / 0.5237 GB, free: 400 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.3913, allocations: 69.91 kB / 0.5238 GB, free: 328 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.3913, allocations: 77.11 kB / 0.5238 GB, free: 232 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.666e-05/0.3913, allocations: 91.47 kB / 0.5239 GB, free: 132 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-06/0.3913, allocations: 25.7 kB / 0.5239 GB, free: 100 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.938e-06/0.3914, allocations: 80.84 kB / 0.524 GB, free: 16 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.3914, allocations: 1.188 kB / 0.524 GB, free: 16 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.3914, allocations: 12.7 kB / 0.524 GB, free: 0 / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.3915, allocations: 316.5 kB / 0.5243 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.3915, allocations: 0 / 0.5243 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.3915, allocations: 1.641 kB / 0.5243 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.673e-05/0.3916, allocations: 64.22 kB / 0.5244 GB, free: 15.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3916, allocations: 1.062 kB / 0.5244 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.359e-05/0.3917, allocations: 63.84 kB / 0.5245 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.3917, allocations: 36.06 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3917, allocations: 5.094 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.3917, allocations: 4 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.225e-06/0.3917, allocations: 1.562 kB / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.3918, allocations: 0 / 0.5245 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.3918, allocations: 5.172 kB / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.3918, allocations: 0.5156 kB / 0.5245 GB, free: 15.49 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 7.837e-05/0.3919, allocations: 139.5 kB / 0.5246 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.3919, allocations: 9.25 kB / 0.5247 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.018e-05/0.3919, allocations: 7.688 kB / 0.5247 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3919, allocations: 4 kB / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3919, allocations: 1.828 kB / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3919, allocations: 0 / 0.5247 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.689e-05/0.392, allocations: 144.8 kB / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.392, allocations: 1.797 kB / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.392, allocations: 0 / 0.5248 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.392, allocations: 3.938 kB / 0.5248 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.392, allocations: 2.031 kB / 0.5248 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.392, allocations: 0 / 0.5248 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.392, allocations: 1.406 kB / 0.5248 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.231e-05/0.3921, allocations: 100.4 kB / 0.5249 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.3922, allocations: 77.62 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.3922, allocations: 5.891 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.3922, allocations: 1.312 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.3922, allocations: 0.5625 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.3922, allocations: 1.469 kB / 0.525 GB, free: 14.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.987e-05/0.3923, allocations: 75.94 kB / 0.5251 GB, free: 14.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3923, allocations: 0 / 0.5251 GB, free: 14.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003782/0.3927, allocations: 137.1 kB / 0.5252 GB, free: 14.81 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.0006705/0.3933, allocations: 303.7 kB / 0.5255 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.3935, allocations: 62.88 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3935, allocations: 4.062 kB / 0.5255 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-05/0.3935, allocations: 63.5 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.3936, allocations: 4.125 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001838/0.3938, allocations: 79.39 kB / 0.5257 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.3941, allocations: 0.6735 MB / 0.5263 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.983e-06/0.3941, allocations: 1.031 kB / 0.5263 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.077e-05/0.3941, allocations: 9 kB / 0.5264 GB, free: 13.72 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3941, allocations: 0 / 0.5264 GB, free: 13.72 MB / 398.1 MB Notification: Performance of Templates: time 0.006886/0.401, allocations: 3.425 MB / 0.5297 GB, free: 12.2 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches