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.001182/0.001182, allocations: 118.8 kB / 17.79 MB, free: 5.281 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: 201.2 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.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 46.11 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 75.88 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3913, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002062/0.3934, allocations: 0.4948 MB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.3969, allocations: 2.093 MB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.038e-05/0.3969, allocations: 1.906 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.397, allocations: 0 / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.095e-05/0.397, allocations: 3.938 kB / 0.533 GB, free: 11.41 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.002065/0.3991, allocations: 0.4969 MB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.407e-05/0.3992, allocations: 5.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.3992, allocations: 1.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.3992, allocations: 1.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.737e-05/0.3992, allocations: 0 / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.827e-06/0.3993, allocations: 1.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.4007, allocations: 0.6249 MB / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.4007, allocations: 3.938 kB / 0.5342 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.4007, allocations: 1.156 kB / 0.5342 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009972/0.4017, allocations: 391.9 kB / 0.5345 GB, free: 10.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.4017, allocations: 1.094 kB / 0.5345 GB, free: 10.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4017, allocations: 0 / 0.5345 GB, free: 10.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.4018, allocations: 0 / 0.5345 GB, free: 10.52 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.0006923/0.4025, allocations: 417 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.4025, allocations: 14.11 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.894e-05/0.4026, allocations: 30.75 kB / 0.535 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.4026, allocations: 2.062 kB / 0.535 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.4027, allocations: 164.3 kB / 0.5351 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.4028, allocations: 5.469 kB / 0.5351 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.4028, allocations: 1.531 kB / 0.5351 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.4029, allocations: 37.23 kB / 0.5352 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.4029, allocations: 7.969 kB / 0.5352 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-06/0.4029, allocations: 1.062 kB / 0.5352 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.4029, allocations: 4 kB / 0.5352 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.316e-05/0.403, allocations: 2.375 kB / 0.5352 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000254/0.4032, allocations: 228.3 kB / 0.5354 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.791e-05/0.4033, allocations: 28.22 kB / 0.5354 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.34e-05/0.4033, allocations: 8.234 kB / 0.5354 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.4033, allocations: 1.062 kB / 0.5354 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.4034, allocations: 65.58 kB / 0.5355 GB, free: 9.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.904e-06/0.4034, allocations: 0 / 0.5355 GB, free: 9.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002047/0.4036, allocations: 66.17 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.4037, allocations: 86.17 kB / 0.5356 GB, free: 9.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.957e-05/0.4037, allocations: 98.83 kB / 0.5357 GB, free: 9.133 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.4037, allocations: 25.7 kB / 0.5358 GB, free: 9.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.4038, allocations: 80.14 kB / 0.5358 GB, free: 9.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.4038, allocations: 9.219 kB / 0.5359 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.4038, allocations: 13.28 kB / 0.5359 GB, free: 8.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.404, allocations: 318.8 kB / 0.5362 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.404, allocations: 2.469 kB / 0.5362 GB, free: 8.676 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.615e-06/0.404, allocations: 1.094 kB / 0.5362 GB, free: 8.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.34e-05/0.4041, allocations: 65.73 kB / 0.5362 GB, free: 8.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4041, allocations: 3.938 kB / 0.5362 GB, free: 8.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.355e-05/0.4042, allocations: 73.83 kB / 0.5363 GB, free: 8.523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.4042, allocations: 34.2 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4042, allocations: 1.25 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.4043, allocations: 0 / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.822e-05/0.4043, allocations: 1.156 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.4043, allocations: 0 / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.4043, allocations: 1.219 kB / 0.5363 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.4043, allocations: 1.031 kB / 0.5363 GB, free: 8.488 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.773e-05/0.4044, allocations: 141.6 kB / 0.5365 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.4045, allocations: 5.078 kB / 0.5365 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.454e-05/0.4045, allocations: 7.125 kB / 0.5365 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4045, allocations: 1.125 kB / 0.5365 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4045, allocations: 0 / 0.5365 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.4045, allocations: 1 kB / 0.5365 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.4048, allocations: 302.2 kB / 0.5368 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4048, allocations: 3.938 kB / 0.5368 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.362e-06/0.4048, allocations: 1.156 kB / 0.5368 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4048, allocations: 3.938 kB / 0.5368 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.4048, allocations: 0.9688 kB / 0.5368 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4048, allocations: 4.031 kB / 0.5368 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4048, allocations: 5.266 kB / 0.5368 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.405, allocations: 167.1 kB / 0.537 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.405, allocations: 81.09 kB / 0.537 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4051, allocations: 1.531 kB / 0.537 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.202e-05/0.4051, allocations: 0 / 0.537 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.311e-05/0.4051, allocations: 1.219 kB / 0.537 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.4051, allocations: 9.25 kB / 0.537 GB, free: 7.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.177e-05/0.4052, allocations: 75.28 kB / 0.5371 GB, free: 7.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4052, allocations: 1.406 kB / 0.5371 GB, free: 7.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006401/0.4058, allocations: 136.6 kB / 0.5373 GB, free: 7.574 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.001355/0.4072, allocations: 0.9106 MB / 0.5381 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.4073, allocations: 67.02 kB / 0.5382 GB, free: 6.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4074, allocations: 1.125 kB / 0.5382 GB, free: 6.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.757e-05/0.4074, allocations: 59.88 kB / 0.5383 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.4076, allocations: 6.141 kB / 0.5383 GB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.4087, allocations: 1.197 MB / 0.5394 GB, free: 5.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.409, allocations: 0.6788 MB / 0.5401 GB, free: 4.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.265e-05/0.409, allocations: 3.938 kB / 0.5401 GB, free: 4.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.409, allocations: 9.531 kB / 0.5401 GB, free: 4.695 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.409, allocations: 0 / 0.5401 GB, free: 4.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.4345, allocations: 4.51 MB / 0.5445 GB, free: 2.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.359, allocations: 10.08 kB / 0.5445 GB, free: 2.305 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