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.001049/0.001049, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001125/0.001125, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3815, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001674/0.3832, allocations: 0.4977 MB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.3864, allocations: 2.098 MB / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.3865, allocations: 0 / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.3865, allocations: 0 / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.865e-06/0.3865, allocations: 3.938 kB / 0.533 GB, free: 11.39 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.001595/0.3881, allocations: 0.495 MB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.63e-05/0.3882, allocations: 1.594 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.126e-05/0.3882, allocations: 5.766 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.668e-05/0.3883, allocations: 0 / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.49e-05/0.3883, allocations: 9.766 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.3883, allocations: 0 / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.3894, allocations: 0.6252 MB / 0.5342 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.064e-05/0.3895, allocations: 7.875 kB / 0.5342 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.608e-05/0.3895, allocations: 1.375 kB / 0.5342 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007472/0.3902, allocations: 388.2 kB / 0.5345 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3903, allocations: 0 / 0.5345 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3903, allocations: 0 / 0.5345 GB, free: 10.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.3903, allocations: 0 / 0.5345 GB, free: 10.49 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.0005971/0.3909, allocations: 413.4 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.3909, allocations: 9.281 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.043e-05/0.391, allocations: 31.88 kB / 0.535 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.391, allocations: 1.938 kB / 0.535 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.3912, allocations: 168.3 kB / 0.5351 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.3912, allocations: 5.219 kB / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.3912, allocations: 1.375 kB / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.3914, allocations: 38.08 kB / 0.5352 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3914, allocations: 3.984 kB / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.3914, allocations: 0 / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.3914, allocations: 1.094 kB / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.3914, allocations: 1.688 kB / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002887/0.3917, allocations: 236.1 kB / 0.5354 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.003e-05/0.3918, allocations: 27.64 kB / 0.5354 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.3918, allocations: 12.75 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3918, allocations: 1.281 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/0.3919, allocations: 61.52 kB / 0.5355 GB, free: 9.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3919, allocations: 0 / 0.5355 GB, free: 9.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002104/0.3921, allocations: 66.84 kB / 0.5356 GB, free: 9.312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.3922, allocations: 90.19 kB / 0.5356 GB, free: 9.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.403e-05/0.3922, allocations: 93.77 kB / 0.5357 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3923, allocations: 30.7 kB / 0.5358 GB, free: 9.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.3923, allocations: 80.14 kB / 0.5358 GB, free: 8.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.3923, allocations: 5.031 kB / 0.5358 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.3924, allocations: 11.88 kB / 0.5359 GB, free: 8.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002653/0.3926, allocations: 316 kB / 0.5362 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.3927, allocations: 1.562 kB / 0.5362 GB, free: 8.652 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-06/0.3927, allocations: 6.594 kB / 0.5362 GB, free: 8.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.564e-05/0.3927, allocations: 64.75 kB / 0.5362 GB, free: 8.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3927, allocations: 5.031 kB / 0.5362 GB, free: 8.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.706e-05/0.3928, allocations: 68.22 kB / 0.5363 GB, free: 8.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.3929, allocations: 31.52 kB / 0.5363 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3929, allocations: 0 / 0.5363 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3929, allocations: 5.172 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.605e-05/0.3929, allocations: 0 / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3929, allocations: 1 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.619e-05/0.393, allocations: 8.031 kB / 0.5363 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.393, allocations: 1.094 kB / 0.5363 GB, free: 8.457 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 9.866e-05/0.3931, allocations: 142.8 kB / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.3931, allocations: 1.125 kB / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.624e-05/0.3931, allocations: 3.125 kB / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3931, allocations: 0 / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3932, allocations: 1.219 kB / 0.5365 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3932, allocations: 4 kB / 0.5365 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.3934, allocations: 310.8 kB / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3934, allocations: 0 / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-06/0.3934, allocations: 0 / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.3935, allocations: 1.188 kB / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3935, allocations: 1.188 kB / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3935, allocations: 0 / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3935, allocations: 0 / 0.5368 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.3936, allocations: 176 kB / 0.537 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.3937, allocations: 77.11 kB / 0.537 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.3937, allocations: 1.188 kB / 0.537 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.176e-05/0.3937, allocations: 1.188 kB / 0.537 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.3937, allocations: 1.062 kB / 0.537 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-06/0.3937, allocations: 1.062 kB / 0.537 GB, free: 7.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.3938, allocations: 79.22 kB / 0.5371 GB, free: 7.598 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3938, allocations: 0 / 0.5371 GB, free: 7.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004765/0.3943, allocations: 136.9 kB / 0.5372 GB, free: 7.555 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.001082/0.3954, allocations: 0.9116 MB / 0.5381 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.3955, allocations: 68.62 kB / 0.5382 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3955, allocations: 0 / 0.5382 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.453e-05/0.3956, allocations: 64.27 kB / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.3958, allocations: 5.109 kB / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.397, allocations: 1.197 MB / 0.5394 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3974, allocations: 0.6713 MB / 0.5401 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.209e-05/0.3974, allocations: 0 / 0.5401 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.593e-05/0.3975, allocations: 9.719 kB / 0.5401 GB, free: 4.688 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3975, allocations: 0 / 0.5401 GB, free: 4.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.424, allocations: 4.536 MB / 0.5445 GB, free: 2.285 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.816/8.24, allocations: 1.984 kB / 0.5445 GB, free: 2.285 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