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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.11 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 79.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3529, allocations: 62.46 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001841/0.3548, allocations: 499.3 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00375/0.3585, allocations: 2.098 MB / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.3586, allocations: 0 / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.3586, allocations: 0 / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-06/0.3586, allocations: 0 / 0.5332 GB, free: 11.33 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.001641/0.3603, allocations: 0.5049 MB / 0.5336 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.861e-05/0.3604, allocations: 1.938 kB / 0.5336 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.174e-05/0.3604, allocations: 4.859 kB / 0.5337 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.679e-05/0.3604, allocations: 4.781 kB / 0.5337 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.077e-05/0.3605, allocations: 4.891 kB / 0.5337 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.3605, allocations: 0 / 0.5337 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.3619, allocations: 0.629 MB / 0.5343 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.057e-05/0.362, allocations: 1.312 kB / 0.5343 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.365e-05/0.362, allocations: 4 kB / 0.5343 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006792/0.3627, allocations: 384 kB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3627, allocations: 1.375 kB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3627, allocations: 0 / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3627, allocations: 0 / 0.5346 GB, free: 10.43 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.0005314/0.3633, allocations: 426.5 kB / 0.5351 GB, free: 9.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3633, allocations: 9.625 kB / 0.5351 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.3634, allocations: 38.69 kB / 0.5351 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.988e-05/0.3634, allocations: 2.312 kB / 0.5351 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.3636, allocations: 164.4 kB / 0.5353 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3636, allocations: 5.688 kB / 0.5353 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.3636, allocations: 1.75 kB / 0.5353 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.3637, allocations: 32.58 kB / 0.5353 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3638, allocations: 0 / 0.5353 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.3638, allocations: 5.375 kB / 0.5353 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3638, allocations: 0 / 0.5353 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.548e-05/0.3638, allocations: 6.75 kB / 0.5353 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000307/0.3641, allocations: 231.6 kB / 0.5355 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.661e-05/0.3642, allocations: 28.02 kB / 0.5356 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.3642, allocations: 8.984 kB / 0.5356 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.3643, allocations: 7.984 kB / 0.5356 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.046e-05/0.3643, allocations: 57.64 kB / 0.5356 GB, free: 9.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 3.567e-06/0.3643, allocations: 0 / 0.5356 GB, free: 9.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002149/0.3645, allocations: 70.34 kB / 0.5357 GB, free: 9.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.3646, allocations: 86.41 kB / 0.5358 GB, free: 9.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.729e-05/0.3647, allocations: 89.86 kB / 0.5359 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3647, allocations: 27.08 kB / 0.5359 GB, free: 9.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/0.3648, allocations: 84.14 kB / 0.536 GB, free: 8.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.3648, allocations: 9.453 kB / 0.536 GB, free: 8.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.3648, allocations: 12.47 kB / 0.536 GB, free: 8.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.365, allocations: 310.8 kB / 0.5363 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.277e-05/0.365, allocations: 2.75 kB / 0.5363 GB, free: 8.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.13e-05/0.365, allocations: 5.375 kB / 0.5363 GB, free: 8.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.75e-05/0.3651, allocations: 69.75 kB / 0.5364 GB, free: 8.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.3651, allocations: 3.938 kB / 0.5364 GB, free: 8.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.018e-05/0.3652, allocations: 69.09 kB / 0.5364 GB, free: 8.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/0.3652, allocations: 31.2 kB / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3653, allocations: 7.875 kB / 0.5365 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3653, allocations: 1.375 kB / 0.5365 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.3653, allocations: 3.984 kB / 0.5365 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.3653, allocations: 0 / 0.5365 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.658e-05/0.3653, allocations: 1.375 kB / 0.5365 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.3653, allocations: 1.375 kB / 0.5365 GB, free: 8.383 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0001126/0.3655, allocations: 136.9 kB / 0.5366 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.3655, allocations: 5.406 kB / 0.5366 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.3655, allocations: 8.5 kB / 0.5366 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3655, allocations: 0 / 0.5366 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3655, allocations: 0 / 0.5366 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3655, allocations: 1.375 kB / 0.5366 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.3658, allocations: 298.3 kB / 0.5369 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3659, allocations: 0 / 0.5369 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.499e-05/0.3659, allocations: 3.938 kB / 0.5369 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3659, allocations: 1 kB / 0.5369 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.3659, allocations: 1.188 kB / 0.5369 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3659, allocations: 4 kB / 0.5369 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3659, allocations: 0 / 0.5369 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.3661, allocations: 167.2 kB / 0.5371 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.3661, allocations: 82.2 kB / 0.5372 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.3662, allocations: 5.062 kB / 0.5372 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.024e-05/0.3662, allocations: 5.062 kB / 0.5372 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.3662, allocations: 1.062 kB / 0.5372 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.3662, allocations: 5.094 kB / 0.5372 GB, free: 7.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.3663, allocations: 75.28 kB / 0.5372 GB, free: 7.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3663, allocations: 0 / 0.5372 GB, free: 7.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.3668, allocations: 136.9 kB / 0.5374 GB, free: 7.48 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001276/0.368, allocations: 0.9124 MB / 0.5383 GB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3682, allocations: 59.25 kB / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3682, allocations: 0 / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.3683, allocations: 69.14 kB / 0.5384 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001932/0.3685, allocations: 0.9375 kB / 0.5384 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.3696, allocations: 1.204 MB / 0.5396 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.37, allocations: 0.6711 MB / 0.5402 GB, free: 4.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.139e-05/0.37, allocations: 3.938 kB / 0.5402 GB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.37, allocations: 9.719 kB / 0.5402 GB, free: 4.602 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.37, allocations: 0 / 0.5402 GB, free: 4.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/0.3999, allocations: 4.523 MB / 0.5446 GB, free: 2.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.769, allocations: 1.797 kB / 0.5446 GB, free: 2.207 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > 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